Kinook Software Forums

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

Thread Tools Rate Thread Display Modes
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.

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"
<File RelativePath=".\my-messages.rc">
<Tool Name="VCResourceCompilerTool"
<FileConfiguration Name="Release|Win32">
<Filter Name="Messages" Filter="">
<File RelativePath=".\">
<Tool Name="VCCustomBuildTool"
CommandLine="&quot;$(VSInstallDir)&quot;\common7\t ools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)"
<Tool Name="VCCustomBuildTool" CommandLine="&quot;$(VSInstallDir)&quot;\common7\t ools\bin\mc.exe $(InputPath) -h $(ProjectDir) -r $(ProjectDir)
Reply With Quote
Old 08-14-2006, 04:45 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,752
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

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 01:24 AM.

Copyright 1999-2019 Kinook Software, Inc.