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

Refactor code around obsolete AssemblyName members #7902

Open benvillalobos opened 2 years ago

benvillalobos commented 2 years ago

Issue Description

Porting MSBuild to net7.0 unfortunately runs into deprecated AssemblyName members errors. It looks like resolving these newly-obsolete members is going to be an involved change. @Forgind has started a thread asking about how we can get a dll's processor architecture in a safe .net sort of way: https://github.com/dotnet/runtime/issues/74040

benvillalobos commented 2 years ago

Relevant code: https://github.com/forgind/msbuild/tree/net7.0-here-we-go

The current pain point is figuring out a way to correctly check processor architecture of files in a multi-platform sort of way.