jparsons
July 2nd, 2002, 10:50 AM
I have a server that I am writing for my company. The obvious product is an executeable. I also run NUnit for my Unit Test. I don't think it is good style to have the Test Cases be apart of the relase code or in the same project. So I am running a multi project solution in Visual Studio.
Here comes the fun.
I need to reference code in my executeable so that I can test it with NUnit. Visual Stuiod won't let mea dd a reference to an executeable. It says it's not possible. So I wrote a batch file that will go through, copy the executeable into a directory and rename it to a DLL. This works as a temporary solution. Everything works great.
More fun.
I made a change to the actual code and reflected it in the test code. Now my project won't build because the test code has the old DLL. And as far as I can tell there is no way to make Visual Studio compile just one of my projects. If I click on Build it gives me the option to copmpile just one of my projects but it goes ahead and compiles both of them.
Does anybody know hwo to get any of these thngs to work
1) Get Visual STuiod to add a reference to a .exe
2) Compile just one project in a multi project solution
Here comes the fun.
I need to reference code in my executeable so that I can test it with NUnit. Visual Stuiod won't let mea dd a reference to an executeable. It says it's not possible. So I wrote a batch file that will go through, copy the executeable into a directory and rename it to a DLL. This works as a temporary solution. Everything works great.
More fun.
I made a change to the actual code and reflected it in the test code. Now my project won't build because the test code has the old DLL. And as far as I can tell there is no way to make Visual Studio compile just one of my projects. If I click on Build it gives me the option to copmpile just one of my projects but it goes ahead and compiles both of them.
Does anybody know hwo to get any of these thngs to work
1) Get Visual STuiod to add a reference to a .exe
2) Compile just one project in a multi project solution