简体   繁体   English

Delphi XE2:使用msbuild在命令行提示符错误MSB4067中生成项目

[英]Delphi XE2: Use msbuild to build a project in command line prompt error MSB4067

I have a project that build fine with Delphi XE2 IDE. 我有一个使用Delphi XE2 IDE构建良好的项目。

I try to build the project using msbuild in command line console: 我尝试在命令行控制台中使用msbuild来构建项目:

SET BDS=C:\Program Files (x86)\Embarcadero\RAD Studio\9.0
c:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild /p:config=Debug /target:Build /verbosity:diag myproj.dproj

MSBuild prompt the following error: MSBuild提示以下错误:

C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin\CodeGear.Common.Targets(674,9): error MSB4067: The element <__ShouldBuildVersion> beneath element <PropertyGroup> is unrecognized.

I compared both msbuild output from IDE and command line and found that the IDE msbuild output has extra output line: Building with tools version "2.0". 我比较了来自IDE和命令行的msbuild输出,发现IDE msbuild输出具有额外的输出行:使用工具版本“ 2.0”进行构建。

Perhaps there are some parameters I didn't setup properly in command line usage. 也许有些参数在命令行用法中没有正确设置。

Delphi XE2 use MsBuild from .NET Framework v3.5 Delphi XE2使用.NET Framework v3.5中的MsBuild

See rsvars.bat in bin directory. 请参阅bin目录中的rsvars.bat。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM