相关文章推荐
稳重的李子  ·  《百闻牌》松狐的主角应该是妖狐吧?没错正是。 ...·  1 年前    · 
细心的汤圆  ·  马朝旭亲切看望筹建小组全体成员 — ...·  1 年前    · 
风度翩翩的麦片  ·  CAD2017下载语言包_ed2k ...·  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
 
推荐文章
稳重的李子  ·  《百闻牌》松狐的主角应该是妖狐吧?没错正是。。呜_百闻牌
1 年前
细心的汤圆  ·  马朝旭亲切看望筹建小组全体成员 — 中华人民共和国驻阿德莱德总领事馆
1 年前
风度翩翩的麦片  ·  CAD2017下载语言包_ed2k autocad 2017 sfx-CSDN博客
2 年前
心软的鼠标  ·  中共银川市委办公厅银川市人民政府办公厅印发《银川市属国有企业负责人经营业绩考核实施办法》的通知-银川市人民政府门户网站
2 年前
精明的荔枝  ·  万隆会议与新中国外交---党建网
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号