Skip to content

Commit

Permalink
#310 - Upgrade blazor to net5.0-rc1.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Sep 17, 2020
1 parent 5a7500d commit 00f4ac3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
40 changes: 16 additions & 24 deletions src/Money.Blazor.Host/Money.Blazor.Host.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<RootNamespace>Money</RootNamespace>
<VersionPrefix>1.13.0.0</VersionPrefix>

<PublishDomain>app.money.neptuo.com</PublishDomain>

<TargetFramework>netstandard2.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<RestoreAdditionalProjectSources>
https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;
https://dotnet.myget.org/F/blazor-dev/api/v3/index.json;
</RestoreAdditionalProjectSources>
<TargetFramework>net5.0</TargetFramework>
<UseBlazorWebAssembly>true</UseBlazorWebAssembly>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Blazored.LocalStorage" Version="3.0.0" />
<PackageReference Include="Blazored.SessionStorage" Version="1.0.12" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.1.5" />
<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" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="5.0.0-rc.1.20451.17" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0-rc.1.20451.17" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0-rc.1.20451.17" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="5.0.0-rc.1.20451.17" />
</ItemGroup>

<ItemGroup>
Expand All @@ -33,16 +26,6 @@
<ProjectReference Include="..\Neptuo\Neptuo.csproj" />
</ItemGroup>

<!-- PWA -->
<PropertyGroup>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>
<ItemGroup Condition="'$(DesignTimeBuild)' != 'true'">
<!-- When publishing, swap service-worker.published.js in place of service-worker.js -->
<Content Remove="wwwroot\service-worker.js" />
<Content Update="wwwroot\service-worker.published.js" Link="wwwroot\service-worker.js" />
</ItemGroup>

<ItemGroup>
<Content Update="wwwroot\index.html" CopyToOutputDirectory="PreserveNewest" />
<Content Remove="**\*.svg" />
Expand All @@ -51,6 +34,15 @@
<Watch Include="**\*.razor" />
</ItemGroup>

<!-- PWA -->
<PropertyGroup>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>
<ItemGroup>
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
</ItemGroup>

<!-- GitHubPages publish -->
<Target Name="PublishGitHubFiles" AfterTargets="ComputeFilesToPublish">
<!-- Declare -->
<PropertyGroup>
Expand Down
5 changes: 5 additions & 0 deletions src/Money.Blazor.Host/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "5.0.100-rc.1.20452.10"
}
}

0 comments on commit 00f4ac3

Please sign in to comment.