/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Components/WebAssembly/testassets/WasmLinkerTest/WasmLinkerTest.csproj
91 строка
5 KB
dotnet-maestro[bot]
[main] Source code updates from dotnet/dotnet (#65987)
31 мар 2026, 10:38
Не верифицирован
31 мар 2026, 10:38
8d5666c
Код
Авторство
О чём код?
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework> <RuntimeIdentifier>browser-wasm</RuntimeIdentifier> <SelfContained>true</SelfContained> <UseMonoRuntime>true</UseMonoRuntime> <UsingMicrosoftNETSdkBlazorWebAssembly>true</UsingMicrosoftNETSdkBlazorWebAssembly> <UsingMicrosoftNETSdkWebAssembly>true</UsingMicrosoftNETSdkWebAssembly> <PublishTrimmed>true</PublishTrimmed> </PropertyGroup> <ItemGroup> <Reference Include="Microsoft.AspNetCore.Metadata" /> <Reference Include="Microsoft.AspNetCore.Authorization" /> <Reference Include="Microsoft.AspNetCore.Components.Authorization" /> <Reference Include="Microsoft.AspNetCore.Components" /> <Reference Include="Microsoft.AspNetCore.Components.Forms" /> <Reference Include="Microsoft.AspNetCore.Components.Web" /> <Reference Include="Microsoft.AspNetCore.Components.WebAssembly" /> <Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" /> <Reference Include="Microsoft.Authentication.WebAssembly.Msal" /> <Reference Include="Microsoft.JSInterop" /> <Reference Include="Microsoft.JSInterop.WebAssembly" /> </ItemGroup> <Target Name="ILLinkTrimWasmProjects" DependsOnTargets="ResolveReferences" AfterTargets="Build" Condition=" ('$(DotNetBuild)' != true OR '$(DotNetBuildTests)' == 'true') AND '$(SkipTestBuild)' != 'true' "> <PropertyGroup> <LibrariesTrimmedArtifactsPath>$(TargetDir)wasm-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>