/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj
86 строк
4 KB
Youssef Fahmy
Move the abstract `Validatable*Info` from Microsoft.Extensions.Validation to be source-generated (#67956)
23 июл 2026, 11:45
Не верифицирован
23 июл 2026, 11:45
0ae3b02
Код
Авторство
О чём код?
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> <PropertyGroup> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework> <!-- Must be defined before ReferenceFromSource.props is imported --> <AdditionalRunArguments>--pathbase /subdir</AdditionalRunArguments> <!-- Resx generation on Resources.resx only --> <GenerateResxSource>false</GenerateResxSource> <!-- Project supports more than one language --> <BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <InterceptorsNamespaces>$(InterceptorsNamespaces);Microsoft.Extensions.Validation.Generated</InterceptorsNamespaces> <!-- QuickGridAnchorModeComponent intentionally consumes QuickGrid's experimental AnchorMode/ItemComparer APIs. --> <NoWarn>$(NoWarn);ASP0030</NoWarn> </PropertyGroup> <PropertyGroup Condition="'$(TestTrimmedApps)' == 'true'"> <!-- Avoid spending time brotli compression publish output.--> <_BlazorBrotliCompressionLevel>NoCompression</_BlazorBrotliCompressionLevel> <MetricsSupport>false</MetricsSupport> </PropertyGroup> <PropertyGroup Condition="'$(TestTrimmedApps)' != 'true'"> <!-- Temporarily disabled to test hypothesis that MetadataUpdaterSupport=true (from PR #65903) causes intermittent MIME type failures for _framework/dotnet.js in E2E tests. See: https://github.com/dotnet/aspnetcore/pull/65903 --> <MetadataUpdaterSupport>false</MetadataUpdaterSupport> </PropertyGroup> <!-- Allow publishing to be skipped when building via Microsoft.AspNetCore.Components.E2ETests.csproj. This avoids a race condition where the build tries to publish this project twice concurrently. --> <PropertyGroup Condition="'$(_SkipReferencedProjectPublishAssets)' == 'true'"> <StaticWebAssetsGetPublishAssetsTargets>_SkipGetPublishAssetsForTrimmedBuild</StaticWebAssetsGetPublishAssetsTargets> </PropertyGroup> <!-- No-op target used to prevent the Static Web Assets SDK from triggering a redundant ILLink run. --> <Target Name="_SkipGetPublishAssetsForTrimmedBuild" /> <ItemGroup> <Reference Include="Microsoft.AspNetCore.Components.WebAssembly" /> <Reference Include="Microsoft.AspNetCore.Components.CustomElements" /> <Reference Include="Microsoft.AspNetCore.Components.Authorization" /> <Reference Include="Microsoft.AspNetCore.Components.Media" /> <Reference Include="Microsoft.AspNetCore.Components.QuickGrid" /> <Reference Include="Microsoft.AspNetCore.SignalR.Client" /> <Reference Include="Microsoft.Extensions.Logging.Configuration" /> <Reference Include="Newtonsoft.Json" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestContentPackage\TestContentPackage.csproj" /> <ProjectReference Include="..\LazyTestContentPackage\LazyTestContentPackage.csproj" /> <ProjectReference Include="$(RepoRoot)src\Validation\gen\Microsoft.Extensions.Validation.ValidationsGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> </ItemGroup> <ItemGroup> <EmbeddedResource Update="Resources.resx" GenerateSource="true" /> </ItemGroup> <ItemGroup> <BlazorWebAssemblyLazyLoad Include="Newtonsoft.Json.wasm" /> <BlazorWebAssemblyLazyLoad Include="LazyTestContentPackage.wasm" /> </ItemGroup> <!-- Workaround for https://github.com/dotnet/aspnetcore/issues/30791 --> <Target Name="_FixupPublishBug" AfterTargets="_ProcessPublishFilesForBlazor" BeforeTargets="_BlazorCompressPublishFiles" Condition="'$(TestTrimmedApps)' == 'true'"> <ItemGroup> <ResolvedFileToPublish RelativePath="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('subdir\subdir', 'subdir').Replace('subdir/subdir', 'subdir'))" /> <ResolvedFileToPublish Include="@(ResolvedFileToPublish)" RelativePath="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('subdir\_content', '_content').Replace('subdir/subdir', '_content'))" Condition="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('subdir\_content', 'subdir/_content').Contains('subdir/_content'))" /> </ItemGroup> </Target> </Project>