PDA

View Full Version : Make VS.NET Question


ahouriet
02-16-2009, 11:25 AM
I need to build a specific .exe file as a result of a Make VS.NET step. How can I pass the name of the resulting executable to msbuild and have it pass it to csc?

All of my attempts have ended in the exe name as the project name.

I have tried passing the name of the exe on the command line as a property:

/p:out=newexename.exe

but that seems to have no effect on the result.

Thanks,
Andy

(VBP: 6.7a, VS2005)

kinook
02-16-2009, 11:35 AM
I believe that you must change the assembly name in the VS project (.csproj file) to alter the name of the compiled executable VS creates when building. One option would be to modify the .csproj file accordingly (for instance, using a Replace in File action). Another option would be to rename the executable after it gets built (for instance, using the Rename Files action).

ahouriet
02-16-2009, 11:53 AM
I did the rename thing, that seems to work fine.

It seems odd that there would be no way to instruct the compiler from msbuild.

Thanks,
Andy