/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Tools/LinkabilityChecker/LinkabilityChecker.csproj
89 строк
4 KB
Swapnali911
fix(ppc64le): to fix NU1101 on linux-ppc64le (#66383)
30 апр 2026, 23:18
Не верифицирован
30 апр 2026, 23:18
f0cfb58
Код
Авторство
О чём код?
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework> <IsPackable>false</IsPackable> <IsShipping>false</IsShipping> <OutputType>Exe</OutputType> <PublishTrimmed>true</PublishTrimmed> <RuntimeIdentifier Condition="'$(DotNetBuild)' == 'true'">$(TargetRuntimeIdentifier)</RuntimeIdentifier> </PropertyGroup> <Import Project="$(RepoRoot)eng\TrimmableProjects.props" /> <ItemGroup> <Reference Include="@(TrimmableProject)" /> </ItemGroup> <ItemGroup> <!-- Packages required to produce a complete dependency graph for the trimmer --> <Reference Include="System.Configuration.ConfigurationManager" /> <Reference Include="System.Security.Permissions" /> </ItemGroup> <Target Name="ILLinkTrimProjects" DependsOnTargets="ResolveReferences" AfterTargets="Build" Condition="'$(DotNetBuildSourceOnly)' != 'true' AND '$(SkipTestBuild)' != 'true'"> <PropertyGroup> <LibrariesTrimmedArtifactsPath>$(TargetDir)linked\</LibrariesTrimmedArtifactsPath> <!-- Link all assemblies --> <ILLinkArgs>$(ILLinkArgs) --action link</ILLinkArgs> <ILLinkArgs Condition="'$(GenerateLinkerWarningSuppressions)' == 'true'">$(ILLinkArgs) --generate-warning-suppressions xml</ILLinkArgs> </PropertyGroup> <ItemGroup> <_ProjectReferencePaths Include="@(ReferencePath->HasMetadata('ProjectPath'))" /> <RootAssemblies Include="@(_ProjectReferencePaths->'%(Filename)')" RootMode="visible" /> <!-- Create clean items for AssemblyPaths (ITaskItem[] that flows to external task host). Using Remove+Include pattern to strip all inherited metadata. --> <_CleanAssemblyPaths Remove="@(_CleanAssemblyPaths)" /> <_CleanAssemblyPaths Include="@(_ProjectReferencePaths->'%(FullPath)')" /> <_ILLinkSuppressionFile Include="$([System.IO.Path]::GetDirectoryName($([System.String]::new('%(RootAssemblies.ProjectPath)'))))\%(RootAssemblies.Identity).WarningSuppressions.xml" SuppressionFileName="%(RootAssemblies.Identity).WarningSuppressions" /> <ILLinkSuppressionFile Condition="Exists(%(_ILLinkSuppressionFile.Identity))" Include="%(_ILLinkSuppressionFile.Identity)" /> </ItemGroup> <PropertyGroup> <ILLinkArgs Condition="'$(GenerateLinkerWarningSuppressions)' != 'true' AND '@(ILLinkSuppressionFile->Count())' != '0'">$(ILLinkArgs) --link-attributes @(ILLinkSuppressionFile->'%(FullPath)', ' --link-attributes ')</ILLinkArgs> </PropertyGroup> <!-- When running from Desktop MSBuild, DOTNET_HOST_PATH is not set. In this case, explicitly specify the path to the dotnet host. --> <PropertyGroup Condition=" '$(DOTNET_HOST_PATH)' == '' "> <!-- This is defined when building in Visual Studio. --> <_DotNetHostDirectory>$(NetCoreRoot)</_DotNetHostDirectory> <_DotNetHostFileName>$([System.IO.Path]::GetFileName('$(DotNetTool)'))</_DotNetHostFileName> </PropertyGroup> <ILLink AssemblyPaths="@(_CleanAssemblyPaths)" RootAssemblyNames="@(RootAssemblies)" OutputDirectory="$(LibrariesTrimmedArtifactsPath)" ReferenceAssemblyPaths="@(RuntimePackAsset);@(ReferencePath->WithMetadataValue('ExternallyResolved', 'true'))" ExtraArgs="$(ILLinkArgs)" NoWarn="$(NoWarn)" TrimMode="link" ToolExe="$(_DotNetHostFileName)" ToolPath="$(_DotNetHostDirectory)" /> <ItemGroup Condition="'$(GenerateLinkerWarningSuppressions)' == 'true'"> <_UpdatedILLinkSuppressionFile Include="$(LibrariesTrimmedArtifactsPath)\*.WarningSuppressions.xml" /> <_UpdatedILLinkSuppressionFile SourcePath="%(FullPath)" /> </ItemGroup> <JoinItems Left="@(_ILLinkSuppressionFile)" Right="@(_UpdatedILLinkSuppressionFile)" LeftMetadata="*" RightMetadata="SourcePath" LeftKey="SuppressionFileName" RightKey="FileName" ItemSpecToUse="Left"> <Output TaskParameter="JoinResult" ItemName="_ILLinkFileToUpdate" /> </JoinItems> <Copy SourceFiles="%(_ILLinkFileToUpdate.SourcePath)" DestinationFiles="%(_ILLinkFileToUpdate.FullPath)" OverwriteReadOnlyFiles="true" Condition="'$(GenerateLinkerWarningSuppressions)' == 'true'" /> </Target> </Project>