Skip to content

Commit

Permalink
Upgrade dotnet framework version to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
djvelimir committed Nov 9, 2022
1 parent 32e9524 commit 38419e1
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 6 deletions.
28 changes: 28 additions & 0 deletions DemoDotnetWebApi.Tests/DemoDotnetWebApi.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DemoDotnetWebApi\DemoDotnetWebApi.csproj" />
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions DemoDotnetWebApi.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace DemoDotnetWebApi.Tests;

public class UnitTest1
{
[Fact]
public void Test1()
{

}
}
1 change: 1 addition & 0 deletions DemoDotnetWebApi.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using Xunit;
28 changes: 28 additions & 0 deletions DemoDotnetWebApi.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemoDotnetWebApi", "DemoDotnetWebApi\DemoDotnetWebApi.csproj", "{C23DC6F9-ADB7-4FFF-B864-53B8FD077ED0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemoDotnetWebApi.Tests", "DemoDotnetWebApi.Tests\DemoDotnetWebApi.Tests.csproj", "{BD52DB82-803A-41E4-985E-9D3D0CBF4A41}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C23DC6F9-ADB7-4FFF-B864-53B8FD077ED0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C23DC6F9-ADB7-4FFF-B864-53B8FD077ED0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C23DC6F9-ADB7-4FFF-B864-53B8FD077ED0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C23DC6F9-ADB7-4FFF-B864-53B8FD077ED0}.Release|Any CPU.Build.0 = Release|Any CPU
{BD52DB82-803A-41E4-985E-9D3D0CBF4A41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BD52DB82-803A-41E4-985E-9D3D0CBF4A41}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BD52DB82-803A-41E4-985E-9D3D0CBF4A41}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BD52DB82-803A-41E4-985E-9D3D0CBF4A41}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>DemoDotnetWebApi</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,27 @@
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:42697",
"sslPort": 44395
"applicationUrl": "http://localhost:58469",
"sslPort": 44379
}
},
"profiles": {
"DemoDotnetWebApi": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:7145;http://localhost:5012",
"applicationUrl": "http://localhost:5144",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:7292;http://localhost:5144",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 38419e1

Please sign in to comment.