29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.11" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.11" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Faraon.Core\Faraon.Core.csproj" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyDotnetJsAfterPublish" AfterTargets="Publish">
|
|
<ItemGroup>
|
|
<_DotnetJsFiles Include="$(PublishDir)wwwroot\_framework\dotnet.*.js" Exclude="$(PublishDir)wwwroot\_framework\dotnet.native.*;$(PublishDir)wwwroot\_framework\dotnet.runtime.*" />
|
|
<_BlazorJsFiles Include="$(PublishDir)wwwroot\_framework\blazor.webassembly.*.js" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(_DotnetJsFiles)" DestinationFiles="$(PublishDir)wwwroot\_framework\dotnet.js" Condition="'@(_DotnetJsFiles)' != ''" />
|
|
<Copy SourceFiles="@(_BlazorJsFiles)" DestinationFiles="$(PublishDir)wwwroot\_framework\blazor.webassembly.js" Condition="'@(_BlazorJsFiles)' != ''" />
|
|
</Target>
|
|
|
|
</Project>
|