forked from dotnet/sdk
/
blazorwasm.csproj
40 lines (31 loc) · 1.79 KB
/
blazorwasm.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>$(AspNetTestTfm)</TargetFramework>
<ServiceWorkerAssetsManifest>custom-service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\razorclasslibrary\RazorClassLibrary.csproj" />
</ItemGroup>
<ItemGroup>
<!-- These assets should be treated as static web assets for publish purposes -->
<Content Include="..\LinkBaseToWebRoot\**\*.js">
<LinkBase>wwwroot\</LinkBase>
</Content>
<!-- This asset should be ignored as a static web assets as it defines CopyToPublishDirectory="Never" -->
<Content Update="wwwroot\css\app.css" CopyToPublishDirectory="Never" />
<!-- This asset should be treated as a static web asset and copied into the right location defined by its link attribute. -->
<Content Include="LinkToWebRoot\css\app.css" Link="wwwroot\css\app.css" />
<!-- The content from my-prod-service-worker.js should be published under the name my-service-worker.js -->
<ServiceWorker Include="wwwroot\serviceworkers\my-service-worker.js" PublishedContent="wwwroot\serviceworkers\my-prod-service-worker.js" />
</ItemGroup>
<!-- Enabling compression increases build time. We want to avoid this for tests so we
disable it here. This doesn't affect any test assertions. -->
<PropertyGroup>
<_BlazorBrotliCompressionLevel>NoCompression</_BlazorBrotliCompressionLevel>
</PropertyGroup>
</Project>