By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 2,933 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

postbuild bug?

P: n/a
Hi,

I just converted a project to VS.NET 2003 (.NET 1.1) and
can't seem to fix this odd error in the postbuild step. The
steps work in one configuration but not in another, and
with the exception of the output directory name, the
commands are exactly the same! If I remove the regasm line
from the "broken" configuration, it works. The error I get is:

The filename, directory name, or volume label syntax is
incorrect.
Project : error PRJ0019: A tool returned an error code from
"Performing Makefile project actions"

I am completely at a loss...

Any help you can give will be appreciated. Pasting details
below.

Lynn
---
What works: "Debug" configuration.
Build command line:

echo Copying utilities to the $(ConfigurationName) directory...
mkdir "$(ProjectDir)bin\$(ConfigurationName)\Util"

rem pdf extraction utils
copy /Y "$(ProjectDir)lib\pdftotext.exe"
"$(ProjectDir)bin\$(ConfigurationName)\Util"

rem word extraction utils
copy /Y "$(ProjectDir)lib\freetype.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\libiconv.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\libjpeg.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\libplot.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\libpng.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\libwmf.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\libxml2.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\wv.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\wvText.xml"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\wvWare.exe"
"$(ProjectDir)bin\$(ConfigurationName)\Util"
copy /Y "$(ProjectDir)lib\zlib.dll"
"$(ProjectDir)bin\$(ConfigurationName)\Util"

rem stoplist support for statistics
copy /Y "$(ProjectDir)lib\StopList.txt"
"$(ProjectDir)bin\$(ConfigurationName)\Util"

copy /Y "$(ProjectDir)lib\execwrap.exe"
"$(ProjectDir)bin\$(ConfigurationName)\Util"

attrib -r "$(ProjectDir)bin\$(ConfigurationName)\Util\*"

echo Registering toolbar...
gacutil /if "$(ProjectDir)obj\Interop.SHDocVw.dll"
gacutil /if
"$(ProjectDir)bin\$(ConfigurationName)\AwareToolba r.dll"
regasm "$(ProjectDir)bin\$(ConfigurationName)\AwareToolba r.dll"

<end Build command line>

The log shows that this info was copied to the batch file
and run.

What _doesn't_ work: "NUnitDebug + Unit" configuration.
(it's not the spaces in the dir name; a different
configuration that also has spaces works just fine!)

The build command line is exactly the same, but the log
shows this for the generated batch file:

<start>
Creating temporary file "C:\Windows\Temp\BAT000011.bat"
with contents
[
@echo off
ec:\products\aware\adam\dev\bin\NUnitDebug +
Unit\AwareToolbar.dll"
if errorlevel 1 goto VCReportError
goto VCEnd
:VCReportError
echo Project : error PRJ0019: A tool returned an error code
from "Performing Makefile project actions"
exit 1
:VCEnd
]
Creating command line "C:\Windows\Temp\BAT000011.bat"
<end>

You can see where the volume label "ec:\" is wrong -- but
why is the batch file getting mangled? If I remove the
regasm line, it works. If I move the regasm line up, the
batch file is still mangled, just in a different place.
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.