diff --git a/Engine/Engine.csproj b/Engine/Engine.csproj
index 10ebf1222..ac8f389e7 100644
--- a/Engine/Engine.csproj
+++ b/Engine/Engine.csproj
@@ -2,7 +2,7 @@
1.21.0
- netcoreapp3.1;net462
+ net6;net462
Microsoft.Windows.PowerShell.ScriptAnalyzer
1.21.0
Engine
@@ -18,11 +18,11 @@
portable
-
+
$(DefineConstants);CORECLR
-
+
@@ -63,10 +63,10 @@
-
+
-
+
$(DefineConstants);PSV7;CORECLR
diff --git a/README.md b/README.md
index 75dd8668b..c52591b12 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ To install **PSScriptAnalyzer** from source code:
### Requirements
-- [.NET Core 3.1.424 SDK](https://www.microsoft.com/net/download/dotnet-core/3.1#sdk-3.1.424) or
+- [.NET 6.0.11 containing 6.0.403 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) or
newer patch release
* If building for Windows PowerShell versions, then the .NET Framework 4.6.2 [targeting pack](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net462) (also referred to as developer/targeting pack) need to be installed. This is only possible on Windows.
* Optionally but recommended for development: [Visual Studio 2017/2019](https://www.visualstudio.com/downloads)
diff --git a/Rules/Rules.csproj b/Rules/Rules.csproj
index 038d4b149..c52b04ad2 100644
--- a/Rules/Rules.csproj
+++ b/Rules/Rules.csproj
@@ -2,7 +2,7 @@
1.21.0
- netcoreapp3.1;net462
+ net6;net462
Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
1.21.0
Rules
@@ -16,7 +16,7 @@
-
+
@@ -57,7 +57,7 @@
$(DefineConstants);PSV3;PSV4
-
+
$(DefineConstants);PSV7;CORECLR
diff --git a/appveyor.yml b/appveyor.yml
index e311eaa3a..4ba8d02c8 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -36,7 +36,7 @@ build_script:
if ($env:PowerShellEdition -eq 'PowerShellCore') {
Set-Location $env:APPVEYOR_BUILD_FOLDER
./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion 7
- ./PSCompatibilityCollector/build.ps1 -Configuration "$env:BuildConfiguration" -Framework 'netcoreapp3.1'
+ ./PSCompatibilityCollector/build.ps1 -Configuration "$env:BuildConfiguration" -Framework 'net6'
}
test_script:
diff --git a/build.psm1 b/build.psm1
index 9f27d99a8..86dfbd763 100644
--- a/build.psm1
+++ b/build.psm1
@@ -203,7 +203,7 @@ function Start-ScriptAnalyzerBuild
$framework = 'net462'
if ($PSVersion -eq 7) {
- $framework = 'netcoreapp3.1'
+ $framework = 'net6'
}
# build the appropriate assembly
diff --git a/global.json b/global.json
index e758de528..6d86a5b04 100644
--- a/global.json
+++ b/global.json
@@ -1,5 +1,5 @@
{
"sdk": {
- "version": "3.1.424"
+ "version": "6.0.403"
}
}