Skip to content

Commit

Permalink
Drop .NET 5 (still supports .NET 6 which is the latest supported vers…
Browse files Browse the repository at this point in the history
…ion by Microsoft)

https://endoflife.date/dotnet
  • Loading branch information
natemcmaster committed Feb 4, 2023
1 parent 36a9b8c commit ace5b81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/.build/bin/dotnet-serve/Debug/net5.0/dotnet-serve.dll",
"program": "${workspaceFolder}/.build/bin/dotnet-serve/Debug/net6.0/dotnet-serve.dll",
"args": [],
"cwd": "${workspaceFolder}/src/dotnet-serve",
"console": "internalConsole",
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-serve/dotnet-serve.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<RollForward>Major</RollForward>
Expand Down
11 changes: 1 addition & 10 deletions test/dotnet-serve.Tests/DotNetServe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ internal class DotNetServe : IDisposable
private static readonly string s_dotnetServe
= Path.Combine(AppContext.BaseDirectory, "tool", "dotnet-serve.dll");

private static int s_nextPort
// separate port ranges per framework when tests are run in parallel
#if NET5_0
= 9000;
#elif NET6_0
= 10000;
#else
#error Update target frameworks
#endif

private static int s_nextPort = 9000;
private readonly Process _process;
private readonly ITestOutputHelper _output;
private readonly SemaphoreSlim _outputReceived = new(0);
Expand Down

0 comments on commit ace5b81

Please sign in to comment.