mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 13:08:23 +08:00
1409c277b5
* update Blazor to .NET 8 * commont NetAnalyzers * fix bunit bug * fix tests
49 lines
2.0 KiB
XML
49 lines
2.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net8</TargetFrameworks>
|
|
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
|
<BlazorWebAssemblyLoadAllGlobalizationData>false</BlazorWebAssemblyLoadAllGlobalizationData>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="$(EnableAOT) == 'true'">
|
|
<RunAOTCompilation>true</RunAOTCompilation>
|
|
<!--<WasmStripILAfterAOT>true</WasmStripILAfterAOT>-->
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="$(TargetFramework) == 'net6'">
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="$(TargetFramework) == 'net7'">
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="$(TargetFramework) == 'net8'">
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmscriptenEnvVars Include="PYTHONUTF8=1" />
|
|
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\AntDesign.Docs\AntDesign.Docs.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="$(SolutionDir)scripts\gh-pages\**" LinkBase="gh-pages" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<DocFiles Include="$(SolutionDir)docs\**\*.*"></DocFiles>
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyDocs" BeforeTargets="Build">
|
|
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
|
</Target>
|
|
</Project> |