Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid ngen for amd64\ folder DLLs #11180

Open
rainersigwald opened this issue Dec 20, 2024 · 0 comments
Open

Avoid ngen for amd64\ folder DLLs #11180

rainersigwald opened this issue Dec 20, 2024 · 0 comments
Assignees
Milestone

Comments

@rainersigwald
Copy link
Member

We should not load assemblies from the bin\amd64 subfolder of MSBuild in normal operation--VS, MSBuild.exe, and MSBuildLocator should load the single copies from bin\ instead.

Some tools load MSBuild assemblies directly from bin\amd64 and as a result we've had to ship should-be-redundant copies of assemblies there in several cases. We should avoid this where possible.

Today, most of those assemblies are marked for ngen, and further with the default ngen that uses vsn.exe.config (the in-VS binding redirects) AND FURTHER for all architectures:

folder InstallDir:\MSBuild\Current\Bin\amd64
file source=$(X64BinPath)MSBuild.exe vs.file.ngenArchitecture=x64
file source=$(TaskHostX64BinPath)MSBuildTaskHost.exe
file source=$(X64BinPath)MSBuild.exe.config
file source=$(TaskHostX64BinPath)MSBuildTaskHost.exe.config
file source=$(X86BinPath)Microsoft.Build.dll vs.file.ngenArchitecture=all
file source=$(X86BinPath)Microsoft.Build.Framework.dll vs.file.ngenArchitecture=all
file source=$(FrameworkBinPath)x64\Microsoft.Build.Framework.tlb
file source=$(X86BinPath)Microsoft.Build.Tasks.Core.dll vs.file.ngenArchitecture=all
file source=$(X86BinPath)Microsoft.Build.Utilities.Core.dll vs.file.ngenArchitecture=all

@rainersigwald rainersigwald added this to the VS 17.14 milestone Dec 20, 2024
@rainersigwald rainersigwald self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant