dotnet / dotnet/aspnetcore

build has dependencies on VS2022 build tools

Open
#68,273 29 comments 0 reactions 0 assignees View on GitHub
area-infrastructure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

when running the build.cmd (for the src\Components folder in my case) it fails with the info that build tools for VS2022 are required (or upgrading the project) for a couple of .vcxproj files, like
\src\Servers\IIS\AspNetCoreModuleV2\gtest\gtest.vcxproj

Image

since VS2022 build tools are only available to VS subscribers according to
https://visualstudio.microsoft.com/vs/older-downloads/
Image
it's time that those projects are updated to use the VS2026 build tools.

### Expected Behavior

no dependencies on VS versions that are not publicly available to download

### Steps To Reproduce

follow the process in the src\Components\README.md, observe that `src\Components\build.cmd` fails

### Exceptions (if any)

C:\Program Files\Microsoft Visual Studio\18\Insiders\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(473,5): error
MSB8020: The build tools for Visual Studio 2022 (Platform Toolset = 'v143') cannot be found. To build using the v143 b
uild tools, please install Visual Studio 2022 build tools. Alternatively, you may upgrade to the current Visual Studio
tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [X:\aspnetcor
e-10.0.10\aspnetcore-10.0.10\src\Servers\IIS\AspNetCoreModuleV2\gtest\gtest.vcxproj]

### .NET Version

10.0.10 - but it automatically downloaded the ones it wanted.

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with src\Components\README.md and src\Components\build.cmd, then inspect the failing src\Servers\IIS\AspNetCoreModuleV2\gtest\gtest.vcxproj and related native project files. Run the documented Components build to reproduce MSB8020. Done means the affected projects build without requiring unavailable Visual Studio 2022 tools.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.