-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Remove dependencies on non-live illink #91468
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7d03a08
Remove dependencies on non-live illink
sbomer 201713b
Fix properties
sbomer 03940b2
Remove KnownILLinkPack
sbomer cb9f7b5
Merge remote-tracking branch 'origin/main' into liveILLink
sbomer a64cc2a
Don't require illink analyzers for source generator projects
sbomer abc514f
Only enable single-file analyzer for source projects
sbomer 597a012
Separate imports
sbomer e83a2a0
Fix libraries build
sbomer 32e13ab
Add _RequiresLiveILLink flag
sbomer 214038a
Revert "Fix libraries build"
sbomer 7a3362f
Revert "Separate imports"
sbomer 679c0e1
Set _RequiresLiveILLink in illink.targets
sbomer 12dd7dd
Don't restore KnownILLinkPack in trimming tests
sbomer d99b2d6
Import liveILLink.targets in libraries projects
sbomer e0279d2
Fix import path
sbomer a2c519a
Separate imports, PR feedback
sbomer ee2213f
Move liveILlink.targets import to top-level Directory.Build.targets
sbomer c42ad15
Clean up redundant setting
sbomer af28b58
Fix import ordering for nativeaot test build
sbomer 6072a9a
Try removing imports from tests.mobile.targets
sbomer 8cdd176
Keep ILC props/items before ILC targets import
sbomer a239c1a
Move liveILLink.targets import back down
sbomer 59919ce
Fix illink path
sbomer 928e6bb
Merge remote-tracking branch 'origin/main' into liveILLink
sbomer 3b0bf85
Merge branch 'main' into liveILLink
ViktorHofer 07b300f
Merge remote-tracking branch 'origin/main' into liveILLink
sbomer ea87914
Merge remote-tracking branch 'origin/main' into liveILLink
sbomer 0fec310
Merge branch 'main' into liveILLink
ViktorHofer b442dbc
Apply suggestions from code review
sbomer d18a62d
Merge remote-tracking branch 'origin/main' into liveILLink
sbomer be50c35
Fix libs test project that sets PublishTrimmed
sbomer 2c16391
Revert "Fix libs test project that sets PublishTrimmed"
sbomer 96a663d
Revert condition on liveILLink.targets import
sbomer 9b9ed8d
Skip nonexistent targets when copying native binaries
sbomer 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
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
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
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
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
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,44 @@ | ||
<Project> | ||
|
||
<!-- NOTE: these targets should be a no-op, unless _RequiresLiveILLink, computed below, is true. --> | ||
|
||
<PropertyGroup> | ||
<!-- Keep these conditions in sync with _RequiresILLinkPack in | ||
https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets --> | ||
<_RequiresLiveILLink Condition="'$(_RequiresLiveILLink)' == '' And ( | ||
'$(PublishAot)' == 'true' Or | ||
'$(IsAotCompatible)' == 'true' Or '$(EnableAotAnalyzer)' == 'true' Or | ||
'$(PublishTrimmed)' == 'true' Or | ||
'$(IsTrimmable)' == 'true' Or '$(EnableTrimAnalyzer)' == 'true' Or | ||
'$(EnableSingleFileAnalyzer)' == 'true')">true</_RequiresLiveILLink> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(_RequiresLiveILLink)' == 'true'"> | ||
<_ILLinkTasksSourceDir>$(ToolsProjectRoot)illink\src\ILLink.Tasks\</_ILLinkTasksSourceDir> | ||
<ILLinkAnalyzersPropsPath>$(ToolsProjectRoot)illink\src\ILLink.RoslynAnalyzer\build\Microsoft.NET.ILLink.Analyzers.props</ILLinkAnalyzersPropsPath> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(_ILLinkTasksSourceDir)build\Microsoft.NET.ILLink.Tasks.props" Condition="'$(_RequiresLiveILLink)' == 'true'" /> | ||
|
||
<PropertyGroup Condition="'$(_RequiresLiveILLink)' == 'true'"> | ||
<!-- Don't use SDK's trimming functionality. --> | ||
<_RequiresILLinkPack>false</_RequiresILLinkPack> | ||
<!-- Keep in sync with SetTargetFramework metadata on the ProjectReference below. --> | ||
<ILLinkTasksAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(ToolsILLinkDir)$(NetCoreAppToolCurrent)\ILLink.Tasks.dll</ILLinkTasksAssembly> | ||
<ILLinkTasksAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(ToolsILLinkDir)$(NetFrameworkToolCurrent)\ILLink.Tasks.dll</ILLinkTasksAssembly> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(_RequiresLiveILLink)' == 'true'"> | ||
<!-- The assembly shouldn't be referenced, nor promoted to a package dependency, nor copied to the output directory. --> | ||
<ProjectReference Include="$(_ILLinkTasksSourceDir)ILLink.Tasks.csproj" | ||
ReferenceOutputAssembly="false" | ||
PrivateAssets="all" | ||
Private="false" | ||
SetConfiguration="Configuration=$(ToolsConfiguration)"> | ||
<!-- Keep TFMs in sync with ILLink.Tasks.csproj --> | ||
<SetTargetFramework Condition="'$(MSBuildRuntimeType)' == 'Core'">TargetFramework=$(NetCoreAppToolCurrent)</SetTargetFramework> | ||
<SetTargetFramework Condition="'$(MSBuildRuntimeType)' != 'Core'">TargetFramework=$(NetFrameworkToolCurrent)</SetTargetFramework> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
</Project> |
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
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
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
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
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
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.