Build events not honoring multiple command-line arguments

前端 未结 3 1816
梦谈多话
梦谈多话 2021-01-07 09:52

I have the following as my post-build event in a C# .NET 4.0 project in Visual Studio 2010:

call \"$(SolutionDir)Publish\\Publish.exe\" \"$(TargetDir)\" \"\\         


        
3条回答
  •  灰色年华
    2021-01-07 10:32

    I hit the same problem - if the argument expands out to something which ends in a backslash, I think the second quote is being escaped and treated as a quote character within the first argument.

    Using "$(OutDir)\" worked for me.

提交回复
热议问题