Skip to content

Commit

Permalink
Remove References to Net6 & Net7 (#1349)
Browse files Browse the repository at this point in the history
* Updated test case projects to net8

* Updated some misc instance of net6 & net7

* Removed reference to net6 & 7 frameworks in paket.dependencies. Ran `dotnet paket update --keep-minor`

* Updated devcontainer dotnet versions

* Added `DOTNET_INSTALL_DIR' to build.yml

* Renamed test directories: net6 -> net8 & net7 -> net9

* Added `DOTNET_INSTALL_DIR` to other yml files. Removed `BuildNet7` environment variable from nightly.

* Update dotnet version in dockerfile
  • Loading branch information
1eyewonder authored Jan 22, 2025
1 parent db1f44b commit ed1bcf7
Show file tree
Hide file tree
Showing 38 changed files with 459 additions and 457 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

ARG DOTNETCORE_VERSION=7.0.400
ARG DOTNETCORE_VERSION=8.0.405
FROM mcr.microsoft.com/dotnet/sdk:${DOTNETCORE_VERSION}

# Avoid warnings by switching to noninteractive
Expand Down
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "8.0",
"dotnetRuntimeVersions": "6.0, 7.0",
"aspNetCoreRuntimeVersions": "6.0, 7.0"
"dotnetRuntimeVersions": "8.0, 9.0",
"aspNetCoreRuntimeVersions": "8.0, 9.0"
}
},
"customizations": {
Expand All @@ -22,4 +22,4 @@
}
},
"onCreateCommand": "dotnet tool restore && dotnet restore"
}
}
6 changes: 3 additions & 3 deletions .github/workflows/build-and-pack-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
branches:
- nightly

env:
BuildNet7: true

jobs:
pack-nightly:
env:
DOTNET_INSTALL_DIR: ".dotnet"

runs-on: ubuntu-latest

steps:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
TEST_TIMEOUT_MINUTES: 40
FSAC_TEST_DEFAULT_TIMEOUT : 120000 #ms, individual test timeouts
DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 # needed to allow .NET RCs to participate in rollforward as expected.
DOTNET_INSTALL_DIR: ".dotnet"
timeout-minutes: 40 # we have a locking issue, so cap the runs at ~20m to account for varying build times, etc
strategy:
matrix:
Expand Down Expand Up @@ -60,12 +61,12 @@ jobs:

# setup .NET per the repo global.json
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4

# setup .NET per test session
- name: Setup .NET
id : setup-dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}

Expand Down Expand Up @@ -113,7 +114,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4

- name: Restore tools
run: dotnet tool restore
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bump-fcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
bump-fcs:
name: bump FCS to latest nightly
runs-on: ubuntu-latest

env:
DOTNET_INSTALL_DIR: ".dotnet"

steps:
- name: checkout nightly branch
uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
release:
env:
DOTNET_INSTALL_DIR: ".dotnet"

runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": ".NET Core mode lsp (debug)",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net6.0/fsautocomplete.dll",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net8.0/fsautocomplete.dll",
"args": ["--mode", "lsp"],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
Expand Down Expand Up @@ -77,8 +77,8 @@
{
"id": "tfm",
"description": "The TFM of the test to run",
"options": ["net6.0", "net7.0"],
"default": "net7.0",
"options": ["net8.0", "net9.0"],
"default": "net8.0",
"type": "pickString"
},
{
Expand Down
4 changes: 2 additions & 2 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version 7.2.1

framework: netstandard2.0, netstandard2.1, net6.0, net7.0, net8.0, net9.0
framework: netstandard2.0, netstandard2.1, net8.0, net9.0

source https://api.nuget.org/v3/index.json
# this is the FCS nightly feed, re-enable at your own risk!
Expand Down Expand Up @@ -34,7 +34,7 @@ nuget Serilog.Sinks.Async >= 1.5
nuget Destructurama.FSharp
nuget FSharp.UMX >= 1.1
nuget FSharp.Formatting >= 14.0
nuget FsToolkit.ErrorHandling.TaskResult >= 4.4 framework: netstandard2.1 ,net6.0, net7.0, net8.0, net9.0
nuget FsToolkit.ErrorHandling.TaskResult >= 4.4 framework: netstandard2.1, net8.0, net9.0
nuget IcedTasks >= 0.11.7
nuget FSharpx.Async >= 1.14
nuget CliWrap >= 3.0
Expand Down
663 changes: 331 additions & 332 deletions paket.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/FsAutoComplete.Core/DotnetNewTemplate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module DotnetNewTemplate =
ShortName = "-f"
ParameterType =
TemplateParameterType.Choice
[ "net6.0 - Target .net 6"; "netstandard2.0 - Target netstandard2.0" ]
[ "net8.0 - Target .net 8"; "netstandard2.0 - Target netstandard2.0" ]
ParameterDescription = "The target framework for the project."
DefaultValue = "netstandard2.0" }

Expand Down
4 changes: 1 addition & 3 deletions src/FsAutoComplete.Logging/FsAutoComplete.Logging.fsproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks Condition="'$(BuildNet7)' == 'true'">net6.0;net7.0</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions test/FsAutoComplete.Tests.Lsp/DependentFileCheckingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ let tests state =
let sameProjectRoot = Path.Combine(__SOURCE_DIRECTORY__, "TestCases", "DependentFileChecking", "SameProject")
let crossProjectRoot tfm = Path.Combine(__SOURCE_DIRECTORY__, "TestCases", "DependentFileChecking", $"CrossProject-{tfm}")
let tfms = [
#if NET6_0_OR_GREATER
"net6.0"
#if NET8_0_OR_GREATER
"net8.0"
#endif
#if NET7_0_OR_GREATER
"net7.0"
#if NET9_0_OR_GREATER
"net9.0"
#endif
]
let aFile, bFile = "A.fs", "B.fs"
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>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<Compile Include="InsideProjectInsideWorkspace.fs" />
<Compile Include="../InsideProjectOutsideWorkspace.fs" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<Compile Include="InsideProjectInsideWorkspace.fs" />
<Compile Include="../InsideProjectOutsideWorkspace.fs" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="Code.fsi" />
<Compile Include="Code.fs" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\..\..\DependentFileCheckingTests.fs" />
<Compile Include="B.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Library1\Library1.fsproj" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</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>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="MyModule1.fs" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="MyModule1.fs" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="MyModule1.fs" />
<Compile Include="WorkingModule.fs" />
<Compile Include="MyModule3.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\A\A.fsproj" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="MyModule1.fs" />
<Compile Include="WorkingModule.fs" />
<Compile Include="MyModule3.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\A\A.fsproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="MyModule1.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\B\B.fsproj" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="MyModule1.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\B\B.fsproj" />
</ItemGroup>

</Project>
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>net6.0</TargetFramework>
<TargetFramework>net8.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>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Loading

0 comments on commit ed1bcf7

Please sign in to comment.