相关文章推荐
叛逆的花生  ·  导出 C++ 函数以用于 C ...·  11 月前    · 
飞奔的山羊  ·  邮件推送常见退信代码及处理方法_邮件推送(D ...·  1 年前    · 
风流的松树  ·  VBA办公自动化 - 知乎·  1 年前    · 
乖乖的生姜  ·  python-07-列表 - 归零19 - 博客园·  1 年前    · 
英勇无比的水煮肉  ·  c++sqlite参数化防注入-掘金·  1 年前    · 
Code  ›  Msbuild的工具集版本开发者社区
msbuild
https://cloud.tencent.com/developer/article/2300631
风流倜傥的豆腐
1 年前
作者头像
用户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
 
推荐文章
叛逆的花生  ·  导出 C++ 函数以用于 C 语言可执行文件 | Microsoft Learn
11 月前
飞奔的山羊  ·  邮件推送常见退信代码及处理方法_邮件推送(Direct Mail)-阿里云帮助中心
1 年前
风流的松树  ·  VBA办公自动化 - 知乎
1 年前
乖乖的生姜  ·  python-07-列表 - 归零19 - 博客园
1 年前
英勇无比的水煮肉  ·  c++sqlite参数化防注入-掘金
1 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号