View Single Post
  #1  
Old 11-17-2003, 10:15 AM
DHearn DHearn is online now
Registered User
 
Join Date: 06-02-2001
Posts: 8
Unhappy C# Pre-Build step corrupted by Visual Build

If a C# project (using VS.NET 2003) has a pre-build step defined which contains quotes (e.g. dir "c:\windows") and you have 'Set the base address to a random value if not set' selected in the Visual Build Step Properties on the Versions page, then Visual Build replaces the quotes in the project file with ';quote' (converts to valid xml).

Since the pre-build step is executed as a batch file, you get an invalid syntax.

To get around the problem, I changed the Visual Build setting to 'No' since I don't think the option is doing anything for a C# project anyway. But it could pose a problem if my solution also contained C++ projects.
Reply With Quote