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

make the workload resolver only light up for the specific entrypoint SDKs we control #41268

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<ItemGroup>
<ManifestLines Include="&lt;SdkResolver&gt;" />
<ManifestLines Include="&lt;Path&gt;$(_TargetPathRelativePath)&lt;/Path&gt;" />
<ManifestLines Include="&lt;ResolvableSdkPattern&gt;FSharp\.NET\.Sdk|Microsoft\.Build\.Tasks\.Git|Microsoft\.Docker\.Sdk|Microsoft\.NET\.Sdk|Microsoft\.NET\.Sdk\.BlazorWebAssembly|Microsoft\.NET\.Sdk\.Publish|Microsoft\.NET\.Sdk\.Razor|Microsoft\.NET\.Sdk\.StaticWebAssets|Microsoft\.NET\.Sdk\.Web|Microsoft\.NET\.Sdk\.Web\.ProjectSystem|Microsoft\.NET\.Sdk\.WebAssembly|Microsoft\.NET\.Sdk\.WindowsDesktop|Microsoft\.NET\.Sdk\.Worker|Microsoft\.SourceLink\.AzureRepos\.Git|Microsoft\.SourceLink\.Bitbucket\.Git|Microsoft\.SourceLink\.Common|Microsoft\.SourceLink\.GitHub|Microsoft\.SourceLink\.GitLab|NuGet\.Build\.Tasks\.Pack&lt;/ResolvableSdkPattern&gt;" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is every SDK that's included in-box today, matched explicitly for ease of review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of them except FSharp.NET.Sdk and NuGet.Build.Tasks.Pack start with Microsoft. anyway. Do you think it's worth listing all those separately? It also means there will be more regexes to match.

<ManifestLines Include="&lt;/SdkResolver&gt;" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<ItemGroup>
<ManifestLines Include="&lt;SdkResolver&gt;" />
<ManifestLines Include="&lt;Path&gt;$(_TargetPathRelativePath)&lt;/Path&gt;" />
<ManifestLines Include="&lt;ResolvableSdkPattern&gt;Microsoft\..*|Samsung\..*|GtkSharp\..*&lt;/ResolvableSdkPattern&gt;" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the content from the xml, just replicated in this 'generation' step for the .NET framework version of this resolver.

<ManifestLines Include="&lt;/SdkResolver&gt;" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<SdkResolver>
<Path>..\..\Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.dll</Path>
<ResolvableSdkPattern>Microsoft\..*|Samsung\..*|GtkSharp\..*</ResolvableSdkPattern>
</SdkResolver>
Loading