-
Notifications
You must be signed in to change notification settings - Fork 437
DRAFT: Patch for missing TFM trimming change in Roslyn #15961
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
src/SourceBuild/patches/roslyn/0001-Use-Content-for-non-TFM-specific-items.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| From: Nikola Milosavljevic <[email protected]> | ||
| Date: Thu, 30 Mar 2023 22:30:25 +0000 | ||
| Subject: [PATCH] Use Content for non-TFM specific items | ||
|
|
||
| --- | ||
| .../AnyCpu/Microsoft.Net.Compilers.Toolset.Package.csproj | 8 +++++--- | ||
| 1 file changed, 5 insertions(+), 3 deletions(-) | ||
|
|
||
| diff --git a/src/NuGet/Microsoft.Net.Compilers.Toolset/AnyCpu/Microsoft.Net.Compilers.Toolset.Package.csproj b/src/NuGet/Microsoft.Net.Compilers.Toolset/AnyCpu/Microsoft.Net.Compilers.Toolset.Package.csproj | ||
| index 2ff9bc9edd3..690c01ea4ef 100644 | ||
| --- a/src/NuGet/Microsoft.Net.Compilers.Toolset/AnyCpu/Microsoft.Net.Compilers.Toolset.Package.csproj | ||
| +++ b/src/NuGet/Microsoft.Net.Compilers.Toolset/AnyCpu/Microsoft.Net.Compilers.Toolset.Package.csproj | ||
| @@ -42,6 +42,11 @@ | ||
| SetTargetFramework="TargetFramework=net6.0" /> | ||
| </ItemGroup> | ||
|
|
||
| + <ItemGroup> | ||
| + <Content Include="build\**\*.*" PackagePath="build\" /> | ||
| + <Content Include="buildMultiTargeting\**\*.*" PackagePath="buildMultiTargeting\" /> | ||
| + </ItemGroup> | ||
| + | ||
| <Target Name="_GetFilesToPackage" DependsOnTargets="$(_DependsOn)"> | ||
| <ItemGroup> | ||
| <_File Include="@(DesktopCompilerArtifact)" TargetDir="tasks/net472"/> | ||
| @@ -51,9 +56,6 @@ | ||
| <_File Include="@(CoreClrCompilerBinArtifact)" TargetDir="tasks/net6.0/bincore"/> | ||
| <_File Include="@(CoreClrCompilerBinRuntimesArtifact)" TargetDir="tasks/net6.0/bincore/runtimes"/> | ||
|
|
||
| - <_File Include="$(MSBuildProjectDirectory)\build\**\*.*" Condition="'$(TargetFramework)' == 'net472'" TargetDir="build" /> | ||
| - <_File Include="$(MSBuildProjectDirectory)\buildMultiTargeting\**\*.*" Condition="'$(TargetFramework)' == 'net472'" TargetDir="buildMultiTargeting" /> | ||
| - | ||
| <TfmSpecificPackageFile Include="@(_File)" PackagePath="%(_File.TargetDir)/%(_File.RecursiveDir)%(_File.FileName)%(_File.Extension)" /> | ||
| </ItemGroup> | ||
| </Target> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please include a "Backport: <PR/Issue>" comment on all patches. This is very helpful for tracking purposes.
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.
Fixed with commit: a112d4d