netcoreapp3.0 -> netcoreapp5.0 for new files

This commit is contained in:
wtgodbe 2019-08-28 15:28:18 -07:00
parent 48374ca8bb
commit a6a7f36150
7 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<DefaultItemExcludes>$(DefaultItemExcludes);TestProjects\**\*</DefaultItemExcludes> <DefaultItemExcludes>$(DefaultItemExcludes);TestProjects\**\*</DefaultItemExcludes>
<TestGroupName>ApiDescriptionClientTests</TestGroupName> <TestGroupName>ApiDescriptionClientTests</TestGroupName>
</PropertyGroup> </PropertyGroup>

View File

@ -4,7 +4,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<IsTestAssetProject>true</IsTestAssetProject> <IsTestAssetProject>true</IsTestAssetProject>
</PropertyGroup> </PropertyGroup>

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<OutputType>exe</OutputType> <OutputType>exe</OutputType>
<Description>Command line tool to add an OpenAPI service reference</Description> <Description>Command line tool to add an OpenAPI service reference</Description>
<RootNamespace>Microsoft.DotNet.Openapi.Tools</RootNamespace> <RootNamespace>Microsoft.DotNet.Openapi.Tools</RootNamespace>

View File

@ -25,13 +25,13 @@ namespace Microsoft.DotNet.OpenApi.Add.Tests
{ {
var project1 = refProj1.WithCSharpProject("refProj"); var project1 = refProj1.WithCSharpProject("refProj");
project1 project1
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.Create(); .Create();
var project2 = refProj2.WithCSharpProject("refProj2"); var project2 = refProj2.WithCSharpProject("refProj2");
project2 project2
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.Create(); .Create();
@ -64,7 +64,7 @@ namespace Microsoft.DotNet.OpenApi.Add.Tests
var refProjName = "refProj"; var refProjName = "refProj";
var csproj = refProj.WithCSharpProject(refProjName); var csproj = refProj.WithCSharpProject(refProjName);
csproj csproj
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.Create(); .Create();
@ -98,7 +98,7 @@ namespace Microsoft.DotNet.OpenApi.Add.Tests
var refProjName = "refProj"; var refProjName = "refProj";
refProj refProj
.WithCSharpProject(refProjName) .WithCSharpProject(refProjName)
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.Create(); .Create();

View File

@ -20,7 +20,7 @@ namespace Microsoft.DotNet.OpenApi.Remove.Tests
var nswagJsonFile = "openapi.json"; var nswagJsonFile = "openapi.json";
_tempDir _tempDir
.WithCSharpProject("testproj") .WithCSharpProject("testproj")
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.WithContentFile(nswagJsonFile) .WithContentFile(nswagJsonFile)
.WithContentFile("Startup.cs") .WithContentFile("Startup.cs")
@ -66,7 +66,7 @@ namespace Microsoft.DotNet.OpenApi.Remove.Tests
{ {
_tempDir _tempDir
.WithCSharpProject("testproj") .WithCSharpProject("testproj")
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.WithContentFile("Startup.cs") .WithContentFile("Startup.cs")
.Create(); .Create();
@ -108,7 +108,7 @@ namespace Microsoft.DotNet.OpenApi.Remove.Tests
{ {
_tempDir _tempDir
.WithCSharpProject("testproj") .WithCSharpProject("testproj")
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.WithContentFile("Startup.cs") .WithContentFile("Startup.cs")
.Create(); .Create();
@ -117,7 +117,7 @@ namespace Microsoft.DotNet.OpenApi.Remove.Tests
var refProjName = "refProj"; var refProjName = "refProj";
refProj refProj
.WithCSharpProject(refProjName) .WithCSharpProject(refProjName)
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.Create(); .Create();
@ -160,7 +160,7 @@ namespace Microsoft.DotNet.OpenApi.Remove.Tests
var swagFile2 = "swag2.json"; var swagFile2 = "swag2.json";
_tempDir _tempDir
.WithCSharpProject("testproj") .WithCSharpProject("testproj")
.WithTargetFrameworks("netcoreapp3.0") .WithTargetFrameworks("netcoreapp5.0")
.Dir() .Dir()
.WithContentFile(nswagJsonFile) .WithContentFile(nswagJsonFile)
.WithFile(swagFile2) .WithFile(swagFile2)

View File

@ -61,7 +61,7 @@ namespace Microsoft.DotNet.OpenApi.Tests
var nswagJsonFile = "openapi.json"; var nswagJsonFile = "openapi.json";
var project = _tempDir var project = _tempDir
.WithCSharpProject("testproj", sdk: "Microsoft.NET.Sdk.Web") .WithCSharpProject("testproj", sdk: "Microsoft.NET.Sdk.Web")
.WithTargetFrameworks("netcoreapp3.0"); .WithTargetFrameworks("netcoreapp5.0");
var tmp = project.Dir(); var tmp = project.Dir();
if (withOpenApi) if (withOpenApi)

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<AssemblyName>Microsoft.DotNet.Open.Api.Tools.Tests</AssemblyName> <AssemblyName>Microsoft.DotNet.Open.Api.Tools.Tests</AssemblyName>
<DefaultItemExcludes>$(DefaultItemExcludes);TestProjects\**\*</DefaultItemExcludes> <DefaultItemExcludes>$(DefaultItemExcludes);TestProjects\**\*</DefaultItemExcludes>
<TestGroupName>DotNetAddOpenAPIReferenceToolsTests</TestGroupName> <TestGroupName>DotNetAddOpenAPIReferenceToolsTests</TestGroupName>