MSBUILD 命令行编译的时候请注意msbuild文件名称或路经中空格导致出错

在使用MSBUILD 去编译msbuild文件的时候,如果这个方案或者项目的名称或者路经中间有空格符号,需要把这个方案或者项目整个用引号引起来,否则编译的时候会出错.

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild E:\K2 Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Deployment\TcmWorkflow.msbuild /p:Environment=Production

这时候在控制台窗口会报错:

C:\Documents and Settings\geffzhang>c:\WINDOWS\Microsoft.NET\Framework\v2.0.5072 7\msbuild E:\K2 Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Deplo yment\TcmWorkflow.msbuild /p:Environment=Production Microsoft (R) Build Engine Version 2.0.50727.3053 [Microsoft .NET Framework, Version 2.0.50727.3082] Copyright (C) Microsoft Corporation 2005. All rights reserved.

MSBUILD : error MSB1008: Only one project can be specified. Switch: Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Deployment\Tc mWorkflow.msbuild

For switch syntax, type "MSBuild /help" 正确的形式应该是这样的:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild “E:\K2Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Deployment\TcmWorkflow.msbuild” /p:Environment=Production C:\Documents and Settings\geffzhang>c:\WINDOWS\Microsoft.NET\Framework\v2.0.5072 7\msbuild E:\K2Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Deploy ment\TcmWorkflow.msbuild /p:Environment=Production Microsoft (R) Build Engine Version 2.0.50727.3053 [Microsoft .NET Framework, Version 2.0.50727.3082] Copyright (C) Microsoft Corporation 2005. All rights reserved.

Build started 2009-8-10 19:07:27. __________________________________________________ Project "E:\K2Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Deploym ent\TcmWorkflow.msbuild" (default targets):

Target Deploy Processes:     __________________________________________________     Project "E:\K2Workflow\TcmWorkflow-PurchasingContractApproval-Deployment\Dep loyment\TcmWorkflow.msbuild" is building "E:\K2Workflow\TcmWorkflow-PurchasingCo ntractApproval-Deployment\Deployment\TcmWorkflow.msbuild" (InitDeploy target(s)) :

    Deploy Processes: Task Started (2009-8-10 19:07:28)     Adding Process : TcmWorkflow\PurchasingContractApproval     Deploy Process: Task Completed (2009-8-10 19:07:32) Target Create Notifications:     Notification Service: Task Started (2009-8-10 19:07:32)                  Server Connection: Try and Open oa-cherry:5555                  Server Connection: Connected to oa-cherry:5555                  Notification(s):                  Server Connection: Try and Close Any Open Connections to oa-che rry:5555                  Server Connection: Done Closing Any Open Connections to oa-cher ry:5555

                 Summary:                          Notifications Added to Worklist:   0                          Notifications Deleted to Worklist: 18     Notification Service: Task Completed (2009-8-10 19:07:33) Target Create Workflow Reporting Smart Objects:     Workflow Reporting Service: Task Started (2009-8-10 19:07:33)          Server Connection:            Management Server Connection: Try and Open Connection oa-cherry : 555 5            Management Server Connection: Connected to oa-cherry : 5555          Get Existing SmartObjects for Service Item Instance.          Perform GUID integrity check to ensure SmartObjects can be published.          Service Instance: Try and Get Service Instance from Guid ef7310e5-b14f- 464d-b0f3-a37d6c367620          Service Instance: Created Service Instance from Guid ef7310e5-b14f-464d -b0f3-a37d6c367620          SmartObject to Create/Update: Rpt_TcmWorkflow_PurchasingContractApprova l            Extend Object:              Try and Create Extend Object (Service Instance Extender Type:proces s)              Created Extend Object (Service Instance Extender Type: process)              Set Property AssistCount_Int32_ProcDataField              Set Property LawyerAssistCount_Int32_ProcDataField              Set Property VPCount_Int32_ProcDataField              Set Property AreaManagerLimit_Double_ProcDataField              Set Property ManagerLimit_Double_ProcDataField              Set Property EVPLimit_Double_ProcDataField              Set Property CEOLimit_Double_ProcDataField              Set Property TotalApproveAmount_Double_ProcDataField              Set Property CategoryDepartmentId_Int64_ProcDataField              Set Property CategoryDepartmentName_String_ProcDataField              Set Property ContractDepartmentId_Int64_ProcDataField              Set Property ContractDepartmentName_String_ProcDataField              Set Property IsAd_Int32_ProcDataField              Set Property IsArea_Int32_ProcDataField              Set Property IsNeedCEOApproval_Int32_ProcDataField              Set Property IsPurchase_Int32_ProcDataField              Set Property IsWarrant_Int32_ProcDataField              Set Property AssistList_String_ProcDataField              Set Property AreaManagerList_String_ProcDataField              Set Property BusinessGroupList_String_ProcDataField              Set Property CEOReturnToList_String_ProcDataField              Set Property CFOList_String_ProcDataField              Set Property CMTList_String_ProcDataField              Set Property DepartmentManagerList_String_ProcDataField              Set Property EVPList_String_ProcDataField              Set Property LawyerAssistList_String_ProcDataField              Set Property ArchiveStaffList_String_ProcDataField              Set Property StampStaffList_String_ProcDataField              Set Property VPList_String_ProcDataField              Set Property DataScope_String_ProcDataField              Set Property IsStandard_Int32_ProcDataField              Set Property IsImportant_Int32_ProcDataField              Set Property LawyerList_String_ProcDataField              Set Property SubmitCount_Int32_ProcDataField              Set Property ContractId_String_ProcDataField              Set Property ContractNo_String_ProcDataField              Set Property SystemId_Int32_ProcDataField              Set Property AssignToCount_Int32_ProcDataField              Set Property AssignToList_String_ProcDataField              Set Property DefaultAssistCount_Int32_ProcDataField              Set Property ReviewUrl_String_ProcDataField            SmartObject Definition:              Try and Create SmartObject Definition for the Extend Object              Created SmartObject Definition for the Extend Object              SmartObject Associations              SmartObject Default Methods                Read Method: None Specified                List Method: None Specified                Report Method: None Specified              Category Path: Workflow Reports\Workflow Solutions\TcmWorkflow\Purc hasingContractApproval              Adding SmartObjectDefinition to Package with following GUID: 62a534 79-045c-42e8-801a-6c552f89134b            Publish:              Trying to Publish Package to Server.              Done Publish Package to Server.          Server Disconnection:            Management Server Connection: Try and Close Any Open Connection to oa -cherry : 5555            Management Server Connection: Done Closing Any Open Connection to oa- cherry : 5555          SmartObjects Created:     Workflow Reporting Service: Task Completed (2009-8-10 19:07:34)

Build succeeded.     0 Warning(s)     0 Error(s)

Time Elapsed 00:00:06.40

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏菩提树下的杨过

JAVA CDI 学习(5) - 如何向RESTFul Service中注入EJB实例

RESTFul Service中如果要注入EJB实例,常规的@Inject将不起作用,在Jboss中,应用甚至都启动不起来(因为@Inject注入失败),解决方...

23170
来自专栏Android相关

Android使用MultiDex发生ClassNotFoundException

在Method与Filed数超限的背景下,我们将多工程拆分成多个Dex打到Apk中解决该问题,但是在使用MultiDex的时候,还会遇到一些问题。 在启动的时...

27520
来自专栏hbbliyong

5步搭建GO环境

Easy Go Programming Setup for Windows Dec 23, 2014 I’ve had to do this more t...

42470
来自专栏开发与安全

《dive into python3》 笔记摘录

0、In Python 2, the / operator usually meant integer division, but you could make...

28500
来自专栏服务端技术杂谈

dubbo源码学习笔记----registry

注册工厂 public interface RegistryFactory { Registry getRegistry(URL url); } ...

26840
来自专栏石奈子的Java之路

原 荐 SpringBoot 2.0 系列0

57930
来自专栏ml

hduoj1073--Online Judge

做道题,并没有太多的技巧,关键在与对Accepted,presented error 和wa的判断,第一步如果两者完全一样,那么很定是AC了 ...

39470
来自专栏张善友的专栏

从 WebAPI Beta 更新到WebAPI RC

The official word on changes from Beta to RC for Web API-related topics (filtere...

20060
来自专栏Java与Android技术栈

使用 Kotlin + Spring Boot 进行后端开发Kotlin示例一:结合 Redis 进行数据存储和查询示例二:结合 RxJava 模拟顺序、并发地执行任务总结

Kotlin 是一个基于 JVM 的编程语言,它的简洁、便利早已不言而喻。Kotlin 能够胜任 Java 做的所有事。目前,我们公司 C 端 的 Androi...

17630
来自专栏Jerry的SAP技术分享

使用SAP云平台 + JNDI访问Internet Service

以Internet Service http://maps.googleapis.com/maps/api/distancematrix/xml?origins...

35430

扫码关注云+社区

领取腾讯云代金券