-
Notifications
You must be signed in to change notification settings - Fork 1.1k
make the workload resolver only light up for the specific entrypoint SDKs we control #41268
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
base: main
Are you sure you want to change the base?
make the workload resolver only light up for the specific entrypoint SDKs we control #41268
Conversation
773d911
to
8618076
Compare
…full framework resolver
afed12e
to
aeb2680
Compare
<_VSMSBuildExtensionsContentDestinations Include="@(VSMSBuildExtensionsContent->'%(DestinationPath)')" /> | ||
</ItemGroup> | ||
|
||
<Copy SourceFiles="@(VSMSBuildExtensionsContent)" DestinationFiles="@(_VSMSBuildExtensionsContentDestinations)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reduces the number of Copy task calls from num_content_files to 1.
Worst-case is "unzip the |
src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/Microsoft.DotNet.MSBuildSdkResolver.csproj
Show resolved
Hide resolved
Compared to the previous .swr, are we running NGEN on anything new? Just asking in case it sets off a DDRIT tripwire. |
That's easy to do and if we don't test with a proper insertion, we may miss some of the NGEN actions and perf impacts. I can help Chet to do this. |
notes:
no - the net change here should just be a XML file in the VS insertion next to an already-existing dll. That xml file is read by MSBuild itself, after assembly loading has occurred. |
Ok, this is looking good in my local testing (laying the xml file down in a VS install root and then using MSbuild.exe):
Things to follow up on:
|
I don't think so today. |
Should we be merging this @baronfel? |
It would be great to work on this, but we need to schedule some time with @joeloff to do a full-VS run to make sure I didn't break anything. Would be great to partner with an SDK engineer to help push this forward - SDK resolver perf and error message cleanups are a pain point for users. |
You mean an insertion to trigger the tests VS runs? You'll need to stage in insertion, or that the very least push your branch to |
</ItemGroup> | ||
|
||
<Copy SourceFiles="@(VSMSBuildExtensionsContent)" DestinationFiles="%(VSMSBuildExtensionsContent.DestinationPath)" /> | ||
<Copy SourceFiles="@(VSMSBuildExtensionsContent)" DestinationFiles="@(VSMSBuildExtensionsContent->'%(DestinationPath)')" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This coalesces the N Copy Task calls into a single call - this is way faster and the task internally handles up to date checking and such.
So many people unintentionally batch over this Task, we should probably have a build check for it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm...batching was my first thought, but I thought it would batch in either case. Batching is confusing.
This is part of #26009
This makes NuGet/Home#13471 easier to diagnose because it removes the workload resolver from the list of resolvers - you can see the before and after here:
before:
after:
We save one line here, and with additional work on the MSBuild side we may be able to reduce the MSBuild resolver wrapper noise in this message.