Skip to content

Commit

Permalink
Add TFM .NET6 and .NET7 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames authored Jul 3, 2023
1 parent fc2a95d commit 9fe170d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/UEditor.Docs.Server/UEditor.Docs.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>net7</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/UEditor.Docs.WebAssembly/UEditor.Docs.WebAssembly.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>net7</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<ServiceWorkerAssetsManifest>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="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.0" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/UEditor.Docs/UEditor.Docs.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>net7</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
</PropertyGroup>

Expand Down
10 changes: 9 additions & 1 deletion src/UEditor/UEditor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net5;net6;net7</TargetFrameworks>
<RazorLangVersion>3.0</RazorLangVersion>
<PackageId>UEditorBlazor</PackageId>
<Authors>James Yeung</Authors>
Expand All @@ -19,4 +19,12 @@
<ItemGroup Condition="$(TargetFramework) == 'net5'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.0" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'net6'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'net7'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0" />
</ItemGroup>
</Project>

0 comments on commit 9fe170d

Please sign in to comment.