mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
21a90da9ff
* Update to .NET 9 GA * update doc * update deps
49 lines
1.9 KiB
XML
49 lines
1.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
|
<BlazorWebAssemblyLoadAllGlobalizationData>false</BlazorWebAssemblyLoadAllGlobalizationData>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="$(EnableAOT) == 'true'">
|
|
<RunAOTCompilation>true</RunAOTCompilation>
|
|
<WasmStripILAfterAOT>true</WasmStripILAfterAOT>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<BlazorWasmPrerenderingLocale>en-US,zh-CN</BlazorWasmPrerenderingLocale>
|
|
<BlazorWasmPrerenderingUrlPathToExplicitFetch>/en-US;/zh-CN</BlazorWasmPrerenderingUrlPathToExplicitFetch>
|
|
<!-- <BlazorWasmPrerenderingOutputStyle>AppendHtmlExtension</BlazorWasmPrerenderingOutputStyle> -->
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="BlazorWasmPreRendering.Build" Version="5.0.0-preview.2" />
|
|
</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> |