mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
upgrade project tooling to .NET Core 3.1 (#2089)
This commit is contained in:
4
build/.vscode/launch.json
vendored
4
build/.vscode/launch.json
vendored
@@ -10,7 +10,7 @@
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
// If you have changed target frameworks, make sure to update the program path.
|
||||
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/Build.dll",
|
||||
"program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/Build.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
|
||||
@@ -25,4 +25,4 @@
|
||||
"processId": "${command:pickProcess}"
|
||||
}
|
||||
,]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -41,7 +41,7 @@ public class Context : FrostingContext
|
||||
|
||||
if (!this.IsRunningOnWindows())
|
||||
{
|
||||
var testFramework = "netcoreapp2.1";
|
||||
var testFramework = "netcoreapp3.1";
|
||||
|
||||
this.Information($"Running tests against {testFramework} only as we're not on Windows.");
|
||||
settings.Framework = testFramework;
|
||||
|
||||
@@ -21,13 +21,13 @@ public sealed class CodeCoverage : FrostingTask<Context>
|
||||
context.Information("Executing Code Coverage for Project {0}...", project.Name);
|
||||
|
||||
var dotNetCoreCoverage = context.CodeCoverage
|
||||
.CombineWithFilePath(project.Name + "-netcoreapp2.1.xml");
|
||||
.CombineWithFilePath(project.Name + "-netcoreapp3.1.xml");
|
||||
coverageFiles.Add(dotNetCoreCoverage);
|
||||
|
||||
context.Coverlet(project, new CoverletToolSettings()
|
||||
{
|
||||
Configuration = context.Configuration,
|
||||
Framework = "netcoreapp2.1",
|
||||
Framework = "netcoreapp3.1",
|
||||
Output = dotNetCoreCoverage.FullPath
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user