命令[...]以代码1退出

编程入门 行业动态 更新时间:2024-10-11 11:14:20
本文介绍了命令[...]以代码1退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个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退出

本文发布于:2023-11-13 06:26:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583694.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!