Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-14-2006, 12:47 PM
craiga craiga is online now
Registered User
 
Join Date: 08-14-2006
Posts: 2
Pre-processing of vcproj file is failing (rc file)

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;jpe;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="&quot;$(VSInstallDir)&quot;\common7\t ools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)"
Outputs="&quot;$(ProjectDir)&quot;$(InputName).h"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool Name="VCCustomBuildTool" CommandLine="&quot;$(VSInstallDir)&quot;\common7\t ools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)
"
Outputs="&quot;$(ProjectDir)&quot;$(InputName).h"/>
</FileConfiguration>
</File>
Reply With Quote
  #2  
Old 08-14-2006, 04:45 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Don't use any options that would cause the Make VS.NET action to modify the .rc file (set/increment versions or set properties).
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:05 AM.


Copyright © 1999-2023 Kinook Software, Inc.