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 $(Configuration Name) directory...
mkdir "$(ProjectDir)b in\$(Configurat ionName)\Util"
rem pdf extraction utils
copy /Y "$(ProjectDir)l ib\pdftotext.ex e"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
rem word extraction utils
copy /Y "$(ProjectDir)l ib\freetype.dll "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libiconv.dll "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libjpeg.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libplot.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libpng.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libwmf.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libxml2.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\wv.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\wvText.xml"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\wvWare.exe"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\zlib.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
rem stoplist support for statistics
copy /Y "$(ProjectDir)l ib\StopList.txt "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\execwrap.exe "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
attrib -r "$(ProjectDir)b in\$(Configurat ionName)\Util\* "
echo Registering toolbar...
gacutil /if "$(ProjectDir)o bj\Interop.SHDo cVw.dll"
gacutil /if
"$(ProjectDir)b in\$(Configurat ionName)\AwareT oolbar.dll"
regasm "$(ProjectDir)b in\$(Configurat ionName)\AwareT oolbar.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\Tem p\BAT000011.bat "
with contents
[
@echo off
ec:\products\aw are\adam\dev\bi n\NUnitDebug +
Unit\AwareToolb ar.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\Tem p\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.
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 $(Configuration Name) directory...
mkdir "$(ProjectDir)b in\$(Configurat ionName)\Util"
rem pdf extraction utils
copy /Y "$(ProjectDir)l ib\pdftotext.ex e"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
rem word extraction utils
copy /Y "$(ProjectDir)l ib\freetype.dll "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libiconv.dll "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libjpeg.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libplot.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libpng.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libwmf.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\libxml2.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\wv.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\wvText.xml"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\wvWare.exe"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\zlib.dll"
"$(ProjectDir)b in\$(Configurat ionName)\Util"
rem stoplist support for statistics
copy /Y "$(ProjectDir)l ib\StopList.txt "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
copy /Y "$(ProjectDir)l ib\execwrap.exe "
"$(ProjectDir)b in\$(Configurat ionName)\Util"
attrib -r "$(ProjectDir)b in\$(Configurat ionName)\Util\* "
echo Registering toolbar...
gacutil /if "$(ProjectDir)o bj\Interop.SHDo cVw.dll"
gacutil /if
"$(ProjectDir)b in\$(Configurat ionName)\AwareT oolbar.dll"
regasm "$(ProjectDir)b in\$(Configurat ionName)\AwareT oolbar.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\Tem p\BAT000011.bat "
with contents
[
@echo off
ec:\products\aw are\adam\dev\bi n\NUnitDebug +
Unit\AwareToolb ar.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\Tem p\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.