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

[release/8.0.2xx] NGEN Microsoft.DotNet.MSBuildSdkResolver.dll and its dependencies #17750

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Nov 9, 2023

Backport of #17732 to release/8.0.2xx

/cc @baronfel @ladipro

@ladipro
Copy link
Member

ladipro commented Nov 13, 2023

I was finally able to validate this in VS.

MSBuild.exe 64-bit

*** Assembly Binder Log Entry  (11/13/2023 @ 10:16:08 AM) ***
...
Running under executable  C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\MSBuild.exe
...
LOG: Bind to native image succeeded.
Attempting to use native image C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\Microsoft.D18aced83#\afe3216b766bd6e8c687dd89837440b4\Microsoft.DotNet.MSBuildSdkResolver.ni.dll.
Native image successfully used.

MSBuild.exe 32-bit

*** Assembly Binder Log Entry  (11/13/2023 @ 10:35:52 AM) ***
...
Running under executable  C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\MSBuild.exe
...
LOG: Bind to native image succeeded.
Attempting to use native image C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\Microsoft.D18aced83#\8d8d28991fbd8a8898c6a9a2674179e4\Microsoft.DotNet.MSBuildSdkResolver.ni.dll.
Native image successfully used.

devenv.exe

*** Assembly Binder Log Entry  (11/13/2023 @ 10:24:26 AM) ***
...
Running under executable  C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe
...
LOG: Bind to native image succeeded.
Attempting to use native image C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\Microsoft.D18aced83#\7b1f9ac7d1adbaf704e155f3657a9129\Microsoft.DotNet.MSBuildSdkResolver.ni.dll.
Native image successfully used.

@joeloff @baronfel may I please get an approval?

@ladipro ladipro merged commit f0c4e4e into release/8.0.2xx Nov 14, 2023
16 checks passed
@ladipro ladipro deleted the backport/pr-17732-to-release/8.0.2xx branch November 14, 2023 09:49
ladipro added a commit to ladipro/installer that referenced this pull request Mar 20, 2024
ladipro added a commit that referenced this pull request Mar 20, 2024
…l and its dependencies (#17750)" (#19112)

This reverts commit f0c4e4e.

Fixes [AB#1994786](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1994786/)

The MSBuild change which took advantage of this was reverted in 17.9 because it introduced issues in installations that don't have the .NET SDK component installed. We are fixing the bug in 9.0 by making changes to the dependencies of `Microsoft.DotNet.MSBuildSdkResolver` (see dotnet/sdk#39573) so this should stay in main. I am reverting it only in 8.0.3xx / 17.10 to fix the `Build_Ngen_InvalidAssemblyCount` counter which was flagged as a regression by PerfDDRITs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants