相关文章推荐
另类的紫菜汤  ·  美国最火的摇滚乐队外号 - 抖音·  6 月前    · 
豁达的小摩托  ·  聂马”是不是师徒关系吗,有网友在质疑,马晓春 ...·  1 年前    · 
玩滑板的野马  ·  一般问题联系人及方式·  2 年前    · 
善良的牛腩  ·  十大最值得收藏的国摇专辑 - 知乎·  2 年前    · 
拉风的保温杯  ·  边芹:我爱你,祖国!·  2 年前    · 
Code  ›  Msbuild的工具集版本开发者社区
msbuild
https://cloud.tencent.com/developer/article/2300631
风流倜傥的豆腐
2 年前
作者头像
用户3519280
0 篇文章

Msbuild的工具集版本

前往专栏
腾讯云
开发者社区
文档 意见反馈 控制台
首页
学习
活动
专区
工具
TVP
文章/答案/技术大牛
发布
首页
学习
活动
专区
工具
TVP
返回腾讯云官网
社区首页 > 专栏 > c++ 学习分享 > Msbuild的工具集版本

Msbuild的工具集版本

作者头像
用户3519280
发布 于 2023-07-08 11:20:59
130 0
发布 于 2023-07-08 11:20:59
举报

已经安装了VS2013,但用MSbuild编译的时候一直选择的是V11的设置,原来是这个环境变量的设置所致。如下设置就用的是V12(VS2013)的编译器。

Set VCTargetsPath = C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120

Setting environment for using Microsoft Visual Studio 2010 x64 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>C:>dir /s /b /d MSBuild ‘C:’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>msbuild Microsoft® 生成引擎版本 4.7.2053.0 [Microsoft .NET Framework 版本 4.0.30319.42000] 决方案文件。

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>msbuild Microsoft® 生成引擎版本 4.7.2053.0 [Microsoft .NET Framework 版本 4.0.30319.42000] 决方案文件。

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>

Setting environment for using Microsoft Visual Studio 2010 x64 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>C:\>dir /s /b /d  MSBuild
'C:\' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>msbuild
Microsoft(R) 生成引擎版本 4.7.2053.0
[Microsoft .NET Framework 版本 4.0.30319.42000]
MSBUILD : error MSB1003: 请指定项目或解决方案文件。当前工作目录中未包含项目或解
决方案文件。
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>msbuild
Microsoft(R) 生成引擎版本 4.7.2053.0
[Microsoft .NET Framework 版本 4.0.30319.42000]
MSBUILD : error MSB1003: 请指定项目或解决方案文件。当前工作目录中未包含项目或解
决方案文件。
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>
@echo off
set Msbuild=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
set ObjCurrent=D:\01multiVersionARXDBGplus\multiVersionArxDbg.verproj
set arxpath =D:\01multiVersionARXDBGplus\ARXDBG2008\Release\ArxComLib\Win32\ArxComLib.arx
set Arrpath32=D:\work\hui zuhao\Dwg\CommonLib.Arx
Set Arrpath64=D:\work\huizuhao\Dwg\CommonLib\Ary05mLib\ArxComLib\x64\ArxConLib.arx
setlocal enabledelayedexpansion
for /l %%i in (0,1,0) do (
echo !ObjCurrent%%i!
del %ArxPath32%
	%Msbuild% !ObjCurrent%%i! /t:build /p:Configuration-Release /p:Platform=Win32 /p:PlatformToolset=v80 /p:PrecompiledHeader=NotUsing /n
if not exist %ArxPath32%
	(%Msbuild% !ObjCurrent%%i! /t:build /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v80 /p:PrecompiledHeader=NotUsing /n
if not exist %ArxPath32%
	(%Msbuild% !ObjCurrent%%i! /t:clean
	%Msbuild% !%ObjCurrent%%i% /t:rebuild/ p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v80 /p:PrecompiledHeader=NotUsing /n)
if not exlst %ArxPath32%
(echo v80
Pause)
del %ArxPath32%
%Msbuild% !ObjCurrent%%i!/t:build /p:Configuration-Release /p:Platform=Win32 /p:PlatformToolset=v90 /p:PrecompiledHeader=NotUsing /n
if not exist %ArxPath32%
	(%Msbuild% !ObjCurrent%%i! /t:build /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v90 /p:PrecompiledHeader=NotUsing /n
if not exist %ArxPath32%
	(%Msbuild% !ObjCurrent%%i! /t:clean
	%Msbuild% !%ObjCurrent%%i% /t:rebuild/ p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v90 /p:PrecompiledHeader=NotUsing /n)
if not exlst %ArxPath32%
(echo v90
Pause)
del %ArxPath64%
%Msbuild% !ObjCurrent%%i!/t:build /p:Configuration-Release /p:Platform=x64 /p:PlatformToolset=v90 /p:PrecompiledHeader=NotUsing /n
if not exist %ArxPath32%
	(%Msbuild% !ObjCurrent%%i! /t:build /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v90 /p:PrecompiledHeader=NotUsing /n
if not exist %ArxPath32%
	(%Msbuild% !ObjCurrent%%i! /t:clean
 
推荐文章
另类的紫菜汤  ·  美国最火的摇滚乐队外号 - 抖音
6 月前
豁达的小摩托  ·  聂马”是不是师徒关系吗,有网友在质疑,马晓春九段其实已经说明_聂卫平_棋圣_围棋
1 年前
玩滑板的野马  ·  一般问题联系人及方式
2 年前
善良的牛腩  ·  十大最值得收藏的国摇专辑 - 知乎
2 年前
拉风的保温杯  ·  边芹:我爱你,祖国!
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号