mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 13:08:23 +08:00
40 lines
1.6 KiB
XML
40 lines
1.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.1</TargetFramework>
|
|
<RazorLangVersion>3.0</RazorLangVersion>
|
|
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0" PrivateAssets="all" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<!-- When publishing, swap service-worker.published.js in place of service-worker.js -->
|
|
<ItemGroup Condition="'$(Configuration)' != 'Debug' And '$(DesignTimeBuild)' != 'true'">
|
|
<Content Remove="wwwroot\service-worker.js" />
|
|
<Content Update="wwwroot\service-worker.published.js" Link="wwwroot\service-worker.js" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
|
|
<SolutionDir>../../</SolutionDir>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="$(SolutionDir)scripts\gh-pages\**" LinkBase="gh-pages" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<DocFiles Include="$(SolutionDir)docs\**\*.*" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyDocs" BeforeTargets="Build">
|
|
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
|
</Target>
|
|
</Project> |