craiga
08-14-2006, 12:47 PM
Using Visual Studio 2003, we have a .mc source file that at build time generates a .rc file which the vcproj is configured to run the rc tool against.
Our problem is that when we try to build using VBP, we get an error preprocessing the vcproj file since it cannot find the .rc file, which won't be generated until after the project is compiled.
Pre-processing...
Error pre-processing project file 'C:\test\Core.MessageCatalog.vcproj': Could not find file 'C:\test\my-messages.rc'.
8/14/2006 12:28:35 PM: Step 'Compile Core sln' failed
8/14/2006 12:28:35 PM: Build ended.
It is nice that VBP seems to be trying to help me by pre-processing the Visual Studio file, but is there a way to turn this off and just have it go ahead and build the solution? I have included the sections from the vcproj file below:
<Filter Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jp e;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
<File RelativePath=".\my-messages.rc">
<FileConfiguration
Name="Debug|Win32">
<Tool Name="VCResourceCompilerTool"
ShowProgress="TRUE"/>
</FileConfiguration>
<FileConfiguration Name="Release|Win32">
<Tool
Name="VCResourceCompilerTool"
ShowProgress="TRUE"/>
</FileConfiguration>
</File>
</Filter>
<Filter Name="Messages" Filter="">
<File RelativePath=".\my-messages.mc">
<FileConfiguration
Name="Debug|Win32">
<Tool Name="VCCustomBuildTool"
CommandLine=""$(VSInstallDir)"\common7\tools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)"
Outputs=""$(ProjectDir)"$(InputName).h"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool Name="VCCustomBuildTool" CommandLine=""$(VSInstallDir)"\common7\tools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)
"
Outputs=""$(ProjectDir)"$(InputName).h"/>
</FileConfiguration>
</File>
Our problem is that when we try to build using VBP, we get an error preprocessing the vcproj file since it cannot find the .rc file, which won't be generated until after the project is compiled.
Pre-processing...
Error pre-processing project file 'C:\test\Core.MessageCatalog.vcproj': Could not find file 'C:\test\my-messages.rc'.
8/14/2006 12:28:35 PM: Step 'Compile Core sln' failed
8/14/2006 12:28:35 PM: Build ended.
It is nice that VBP seems to be trying to help me by pre-processing the Visual Studio file, but is there a way to turn this off and just have it go ahead and build the solution? I have included the sections from the vcproj file below:
<Filter Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jp e;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
<File RelativePath=".\my-messages.rc">
<FileConfiguration
Name="Debug|Win32">
<Tool Name="VCResourceCompilerTool"
ShowProgress="TRUE"/>
</FileConfiguration>
<FileConfiguration Name="Release|Win32">
<Tool
Name="VCResourceCompilerTool"
ShowProgress="TRUE"/>
</FileConfiguration>
</File>
</Filter>
<Filter Name="Messages" Filter="">
<File RelativePath=".\my-messages.mc">
<FileConfiguration
Name="Debug|Win32">
<Tool Name="VCCustomBuildTool"
CommandLine=""$(VSInstallDir)"\common7\tools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)"
Outputs=""$(ProjectDir)"$(InputName).h"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool Name="VCCustomBuildTool" CommandLine=""$(VSInstallDir)"\common7\tools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)
"
Outputs=""$(ProjectDir)"$(InputName).h"/>
</FileConfiguration>
</File>