c# - Visual Studio Build Tools 2017 中缺少 vs_buildtools.exe

标签 c# visual-studio msbuild visual-studio-2017

installed Visual Studio Build Tools 2017 使用链接(位于底部的其他工具和框架下)安装两种工作负载:Visual C++ 构建工具和 Web 开发构建工具。我保留了默认文件夹。

基于相当多的文章,例如 Microsoft Web Application Targets is Missing ,我希望在文件夹中看到 vs_buildtools.exe:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin 文件夹,但没有。我看到了 MSBuild.exe,如您在此屏幕截图中所见。

enter image description here

这是安装程序的屏幕截图。

enter image description here

真的,有很多文章说的完全一样:1 , 2 , 仅举 2 个。

如何获取 vs_buildtools.exe?

显然,解决我的 Microsoft 引起的 Web 应用程序目标丢失问题的唯一方法是使用此可执行文件并运行 vs_buildtools.exe --add Microsoft.VisualStudio.Workload.WebBuildTools<,因为它不再出现在 15.0 中 作为 answer指定。我现在也很生气,应该有的东西没有。 Microsoft 是否在较新版本的构建工具中更改了某些内容?

最佳答案

How do I get vs_buildtools.exe?

您已经获得了 vs_buildtools.exe。

I installed the Visual Studio Build Tools 2017 using the link (at bottom under Other Tools and Frameworks) installing both workloads

您会注意到安装的文件名为vs_buildtools__339506979.1501125082.exe,名称中包含版本信息。您可以将其重命名为 vs_buildtools.exe,这就是您想要的。

vs_buildtools.exe 更新:

enter image description here

使用命令后:

vs_buildtools.exe --add Microsoft.VisualStudio.Workload.WebBuildTools

WebBuildTools 将安装在:

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications

此外,请注意 answer 下的评论:

If you already have downloaded the "Build Tools for Visual Studio 2017" installer (visualstudio.com/thank-you-downloading-visual-studio/…), then you can launch that installer, hit Modify and tick the "Web development build tasks" workload module checkbox. Then click the Modify button and let the installer finish.

关于c# - Visual Studio Build Tools 2017 中缺少 vs_buildtools.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45331976/

相关文章:

msbuild - 尽管已导入证书,但由于 MSBuild ResolveKeySource 错误,CruiseControl.NET 服务仍无法构建

visual-studio-2010 - msbuild 项目引用具有不同配置的项目

c# - 如何最好地在两个 ASP.NET Core 服务器应用程序之间进行通信?

c# - 使用 visual studio 开发单声道应用程序

c# - 如何使用 GitVersion 将提交哈希添加到可执行文件的详细信息

c# - Azure Devops 上的 Net Core 3.0 SDK Preview 9 的 Visual Studio 构建失败

c# - 同时运行 SharpDevelop 3.0 和 Visual Studio 2008 有什么问题吗?

.net - 在运行时运行 MSBuild

c# - 如何在 JavaScript 中加密字符串并在 C# 中解密该字符串

c# - 在 WPF 应用程序中找不到 Shockwave 播放器对象引用