Skip to content

Commit

Permalink
upgraded to .net 7 and respective packages, all tests ok
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianhuang committed Nov 11, 2022
1 parent 075a715 commit c610b71
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Core3Mvc/Core3Mvc.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fonlow.WebApiClientGenCore" Version="6.8.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Core3WebApi/Core3WebApi.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -13,8 +13,8 @@
<PackageReference Include="Fonlow.WebApiClientGenCore" Version="6.8.0" />
<PackageReference Include="Fonlow.WebApiClientGenCore.Axios" Version="3.2.1" />
<PackageReference Include="Fonlow.WebApiClientGenCore.Fetch" Version="3.2.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.6" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions CoreNG3/CoreNG3.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
Expand All @@ -15,8 +15,8 @@
<ItemGroup>
<PackageReference Include="Fonlow.WebApiClientGenCore" Version="6.8.0" />
<PackageReference Include="Fonlow.WebApiClientGenCore.NG2" Version="3.2.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="7.0.0" />
</ItemGroup>

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

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion CreateCoreNG3ClientApi.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cd $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
$path = "$PSScriptRoot\CoreNG3\bin\Debug\net6.0"
$path = "$PSScriptRoot\CoreNG3\bin\Debug\net7.0"
$procArgs = @{
FilePath = "dotnet.exe"
ArgumentList = "$path\CoreNG3.dll"
Expand Down
2 changes: 1 addition & 1 deletion CreateMvc3ClientApi.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cd $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
$path = "$PSScriptRoot\Core3Mvc\bin\Debug\net6.0"
$path = "$PSScriptRoot\Core3Mvc\bin\Debug\net7.0"
$procArgs = @{
FilePath = "dotnet.exe"
ArgumentList = "$path\Core3Mvc.dll"
Expand Down
2 changes: 1 addition & 1 deletion CreateWebApiClientApi3.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cd $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
$path = "$PSScriptRoot\Core3WebApi\bin\Debug\net6.0"
$path = "$PSScriptRoot\Core3WebApi\bin\Debug\net7.0"
$procArgs = @{
FilePath = "dotnet.exe"
ArgumentList = "$path\Core3WebApi.dll"
Expand Down
2 changes: 1 addition & 1 deletion DemoWebApi.DemoDataCore/DemoWebApi.DemoDataCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion StartCoreMvc.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Launch WebApi Website and POST a request for generating client APIs
cd $PSScriptRoot
$path = "$PSScriptRoot\Core3MVC\bin\Debug\net6.0"
$path = "$PSScriptRoot\Core3MVC\bin\Debug\net7.0"
$procArgs = @{
FilePath = "dotnet.exe"
ArgumentList = "$path\Core3MVC.dll"
Expand Down
2 changes: 1 addition & 1 deletion StartCoreNG.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Launch WebApi Website and POST a request for generating client APIs
cd $PSScriptRoot
$path = "$PSScriptRoot\CoreNG3\bin\Debug\net6.0"
$path = "$PSScriptRoot\CoreNG3\bin\Debug\net7.0"
$procArgs = @{
FilePath = "dotnet.exe"
ArgumentList = "$path\CoreNG3.dll"
Expand Down
2 changes: 1 addition & 1 deletion StartCoreWebApi.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Launch WebApi Website and POST a request for generating client APIs
cd $PSScriptRoot
$path = "$PSScriptRoot\Core3WebApi\bin\Debug\net6.0"
$path = "$PSScriptRoot\Core3WebApi\bin\Debug\net7.0"
$procArgs = @{
FilePath = "dotnet.exe"
ArgumentList = "$path\Core3WebApi.dll"
Expand Down
4 changes: 2 additions & 2 deletions Tests/IntegrationTestsCore/IntegrationTestsCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>

<IsPackable>false</IsPackable>

Expand Down Expand Up @@ -29,7 +29,7 @@
<ItemGroup>
<PackageReference Include="Fonlow.DateOnlyExtensions" Version="1.2.0" />
<PackageReference Include="Fonlow.Testing.ServiceCore" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
Expand Down

0 comments on commit c610b71

Please sign in to comment.