Advertisement

04.09.2008 at 05:54AM PDT, ID: 23307917
[x]
Attachment Details

MS Build Error

Asked by marmaxx in .Net Editors & IDEs, Microsoft Visual C#.Net, .NET Framework 2.x

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="DeleteVirtualRootFiles">
    <Message Text="Deleting files/directories from $(ClickOnceVirtualRootDir)..."/>
    <Exec Command="del /f /s /q ""$(MSBuildProjectDirectory)\$(ClickOnceVirtualRootDir)\*.*"""/>
  </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
[+][-]04.09.2008 at 07:32AM PDT, ID: 21315309

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:55PM PDT, ID: 21321315

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.16.2008 at 08:24AM PDT, ID: 21368795

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 10:46AM PDT, ID: 21370213

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:41AM PDT, ID: 21554922

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual C#.Net, .NET Framework 2.x
Sign Up Now!
Solution Provided By: marmaxx
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628