我有一个post build事件,在一台服务器上使用VS时工作正常。我已经在另一台服务器上安装了VS 2010,并尝试在该服务器上构建相同的解决方案。这个解决方案中有3个项目,包括后期构建事件。生成的 dll已合并。 post build事件失败 - 我在尝试构建任何或所有项目时遇到以下错误(如果我构建其中的1个,所有3个都构建并合并):
命令"cd"D:\ TFS \ This Test Sln \Co.CRM.GI.UpgradedSln\Co.CRM.GI.SalesSln.Proxy \" "D:\ TFS \This Test Sln \Co.CRM.GI.UpgradedSln\Co.CRM.GI.SalesSolution.Proxy\generateProxy.bat"" "D:\ TFS \ This Test Solution\Co.CRM.GI.UpgradedSln\Co.CRM.GI.SalesSolution.Proxy\" bin\Debug\"退出代码1.
我知道解决方案名称中有空格,但有"在路径周围。这在另一台服务器上工作正常。
这是post build事件命令,所有3个项目都具有完全相同的post build命令。
cd" $(ProjectDir)" " $(ProjectDir)generateMergedDLL.bat" " $(PROJECTDIR)" $(OutDir)
谢谢。
解决方案
您好b $ b 缔约 ,
您的问题与MSbuild有关,我会将此主题移至相应论坛以获得专业答案。
此致
的奥斯卡
I have a post build event that works fine when using VS on one server. I've installed VS 2010 on a different server and am trying to build the same solution over that on that server. The are 3 projects within this solution with post build events. The resulting dlls are merged. The post build event is failing - I'm getting the following error when trying to build any or all of the projects (if I build 1 of them, all 3 are built and merged):
The command "cd "D:\TFS\This Test Sln\Co.CRM.GI.UpgradedSln\Co.CRM.GI.SalesSln.Proxy\" "D:\TFS\This Test Sln\Co.CRM.GI.UpgradedSln\Co.CRM.GI.SalesSolution.Proxy\generateProxy.bat" "D:\TFS\This Test Solution\Co.CRM.GI.UpgradedSln\Co.CRM.GI.SalesSolution.Proxy\" bin\Debug\" exited with code 1.
I know there are spaces in the solution name, but there are " around the paths. And this works fine on another server.
Here's the post build event command, all 3 projects have the exact same post build command.
cd "$(ProjectDir)" "$(ProjectDir)generateMergedDLL.bat" "$(ProjectDir)" $(OutDir)
Thanks. 解决方案Hi Contracting,
Your issue is related to MSbuild, I will move this thread to corresponding forum for a professional answer.
Sincerely,
Oscar
更多推荐
命令[...]以代码1退出
发布评论