I am getting the following error when I try to execute a target in my MS Build file:
error MSB4025: The project file could not be loaded. Name cannot begin with the '"' character, hexadecimal value 0x22. Line 165, position 34.
Here is the offending target:
<Target Name="DeleteVirtualRootFil
es">
<Message Text="Deleting files/directories from $(ClickOnceVirtualRootDir)
..."/>
<Exec Command="del /f /s /q ""$(MSBuildProjectDirector
y)\$(Click
OnceVirtua
lRootDir)\
*.*"""/>
</Target>
The line causing the error is the one that begins with the Exce Command.
I have tried several different combinations of quotes and other characters in this line, but I still cannot get the target to execute. None of the folders in the build structure have spaces in their names (although, I still want this to work if they do).
Any ideas?
Thank You!
Start Free Trial