mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +08:00
e4834ed1da
* docs: update .NET7 RC2 * fix target framework * update to .net 7 GA * update yaml * fix wasmhost * update document
47 lines
2.1 KiB
XML
47 lines
2.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net7</TargetFrameworks>
|
|
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
|
<BlazorWebAssemblyLoadAllGlobalizationData>false</BlazorWebAssemblyLoadAllGlobalizationData>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="$(EnableAOT) == 'true'">
|
|
<RunAOTCompilation>true</RunAOTCompilation>
|
|
</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" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="6.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
|
</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" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="7.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
|
</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> |