Prebuild event in Visual Studio replacing $(SolutionDir) with *Undefined*

前端 未结 5 1978
猫巷女王i
猫巷女王i 2020-12-17 08:31

I believe the problem is documented here moved here and looks like it might be a bug in visual studio, but I\'m wondering if anyone knows of a workaround.

5条回答
  •  旧时难觅i
    2020-12-17 08:55

    I fixed this by replacing all $(SolutionDir) with $(ProjectDir)..\.

    It was due to MSBuild running each project independently, and thus not the solution. It worked fine in VS2010, but not on the build server.

提交回复
热议问题