dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
https://docs.microsoft.com/visualstudio/msbuild/msbuild
MIT License
5.24k stars 1.35k forks source link

Review/Fix MSBuild ngen registrations #10815

Open JanKrivanek opened 1 month ago

JanKrivanek commented 1 month ago

Context

Reported by @davkean:

Its super unclear why all MSBuild binaries in general are being registered for all architectures too (we only should register 32-bit for 32-bit and 64-bit for 64-bit), those 32-bit vsn.exe are definitely wrong as we don’t ship a 32-bit version of VS, so we’re wasting end-user machine resources.

Goal

Only required registrations are issued

YuliiaKovalova commented 1 month ago

Sub-issue https://github.com/dotnet/msbuild/issues/10847