Skip to content

Commit

Permalink
bump to .NET 6 only
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Mar 11, 2022
1 parent 377b244 commit 046ab6f
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 135 deletions.
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_debug_netcore",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net5.0/fsautocomplete.dll",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net6.0/fsautocomplete.dll",
"args": [
"--mode",
"lsp"
Expand All @@ -24,7 +24,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_lsp_tests",
"program": "${workspaceFolder}/test/FsAutoComplete.Tests.Lsp/bin/Debug/net5.0/FsAutoComplete.Tests.Lsp.dll",
"program": "${workspaceFolder}/test/FsAutoComplete.Tests.Lsp/bin/Debug/net6.0/FsAutoComplete.Tests.Lsp.dll",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
Expand Down Expand Up @@ -59,4 +59,4 @@
"justMyCode": false
}
]
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"taskName": "build_debug_netcore",
"type": "shell",
"command": "dotnet build src/FsAutoComplete -f net5.0",
"command": "dotnet build src/FsAutoComplete -f net6.0",
"group": {
"kind": "build",
"isDefault": true
Expand Down
16 changes: 8 additions & 8 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Target.create "LocalRelease" (fun _ ->
DotNet.publish (fun p ->
{ p with
OutputPath = Some (__SOURCE_DIRECTORY__ </> "bin/release_netcore")
Framework = Some "net5.0"
Framework = Some "net6.0"
Configuration = DotNet.BuildConfiguration.fromString configuration }) "src/FsAutoComplete"

Directory.ensure "bin/release_as_tool"
Expand Down Expand Up @@ -114,16 +114,16 @@ Target.create "Test" ignore
Target.create "All" ignore
Target.create "Release" ignore

type SemverBump =
| Major | Minor | Patch
static member Combine l r =
type SemverBump =
| Major | Minor | Patch
static member Combine l r =
match l, r with
| Major, _ | _, Major -> Major
| Minor, _ | _, Minor -> Minor
| _ -> Patch

let determineBump (currentBump: SemverBump) (c: Changelog.Change) =
let thisChange =
let thisChange =
match c with
| Changelog.Change.Added _ -> Minor
| Changelog.Change.Removed _ -> Major
Expand All @@ -134,7 +134,7 @@ let determineBump (currentBump: SemverBump) (c: Changelog.Change) =
| Changelog.Change.Security _ -> Patch
SemverBump.Combine currentBump thisChange

let bumpVersion (ver: SemVerInfo) bump =
let bumpVersion (ver: SemVerInfo) bump =
match bump with
| Major -> { ver with Major = ver.Major + 1u; Minor = 0u; Patch = 0u; PreRelease = None; Original = None }
| Minor -> { ver with Minor = ver.Minor + 1u; Patch = 0u; PreRelease = None; Original = None }
Expand All @@ -143,10 +143,10 @@ let bumpVersion (ver: SemVerInfo) bump =
Target.create "PromoteUnreleasedToVersion" (fun _ ->
match changelogs.Unreleased with
| None -> failwith "No unreleased changes to be promoted"
| Some unreleased ->
| Some unreleased ->
let nextReleaseNumber =
Trace.tracefn $"Determining bump for version %O{currentRelease.SemVer}"
let bump =
let bump =
(Minor, unreleased.Changes)
||> List.fold determineBump
Trace.tracefn $"Bump type is %O{bump}"
Expand Down
2 changes: 1 addition & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version 6.2.1

framework: netstandard2.0, net5.0
framework: netstandard2.0, net6.0

source https://api.nuget.org/v3/index.json
# this is the FCS nightly feed, re-enable at your own risk!
Expand Down
209 changes: 101 additions & 108 deletions paket.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>fsautocomplete.backgroundservices</AssemblyName>
<ServerGarbageCollection>true</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
Expand Down
2 changes: 1 addition & 1 deletion src/FsAutoComplete.Core/DotnetNewTemplate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module DotnetNewTemplate =
Options =
[ { ParameterName = "--framework";
ShortName = "-f";
ParameterType = TemplateParameterType.Choice ["net5.0 - Target .net 5";"netstandard2.0 - Target netstandard2.0"];
ParameterType = TemplateParameterType.Choice ["net6.0 - Target .net 6";"netstandard2.0 - Target netstandard2.0"];
ParameterDescription = "The target framework for the project.";
DefaultValue = "netstandard2.0" };

Expand Down
2 changes: 1 addition & 1 deletion src/FsAutoComplete.Core/FsAutoComplete.Core.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/FsAutoComplete/FsAutoComplete.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>fsautocomplete</AssemblyName>
<ServerGarbageCollection>true</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
Expand Down Expand Up @@ -57,9 +57,9 @@
<Target Name="CopyBackgroundServiceJsonToOutputDir"
AfterTargets="ComputeFilesToPublish">
<ItemGroup>
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\net5.0\fsautocomplete.backgroundservices.deps.json"
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\net6.0\fsautocomplete.backgroundservices.deps.json"
RelativePath="fsautocomplete.backgroundservices.deps.json" />
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\net5.0\fsautocomplete.backgroundservices.runtimeconfig.json"
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\net6.0\fsautocomplete.backgroundservices.runtimeconfig.json"
RelativePath="fsautocomplete.backgroundservices.runtimeconfig.json" />
</ItemGroup>
</Target>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
<RollForward>LatestMajor</RollForward>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions test/FsAutoComplete.Tests.Lsp/decode.fsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#r "../../src/FsAutoComplete/bin/Debug/net5.0/fsautocomplete.dll"
#r "../../src/FsAutoComplete/bin/Debug/net5.0/LanguageServerProtocol.dll"
#r "../../src/FsAutoComplete/bin/Debug/net6.0/fsautocomplete.dll"
#r "../../src/FsAutoComplete/bin/Debug/net6.0/LanguageServerProtocol.dll"

open FsAutoComplete
open FsAutoComplete.LspHelpers
Expand Down
2 changes: 1 addition & 1 deletion test/OptionAnalyzer/OptionAnalyzer.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../src/FsAutoComplete.Logging/FsAutoComplete.Logging.fsproj">
Expand Down

0 comments on commit 046ab6f

Please sign in to comment.