diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml
index 6556bb7ac..69ea57095 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -23,7 +23,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.x
+ dotnet-version: 5.0.x
- name: Install Noted
run: dotnet tool install -g noted
diff --git a/Directory.Build.props b/Directory.Build.props
index fa711a23d..3cba3975c 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -27,7 +27,7 @@
False
obj\
-
+
True
diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml
index 8f09e9951..bcb9e541f 100644
--- a/build-tools/automation/azure-pipelines.yaml
+++ b/build-tools/automation/azure-pipelines.yaml
@@ -16,7 +16,7 @@ pr:
# Global variables
variables:
- DotNetCoreVersion: 3.1.300
+ DotNetCoreVersion: 5.0.100
HostedMac: Hosted Mac Internal
HostedWinVS2019: Hosted Windows 2019 with VS2019
diff --git a/build-tools/automation/templates/core-build.yaml b/build-tools/automation/templates/core-build.yaml
index b631aed7c..503d84a08 100644
--- a/build-tools/automation/templates/core-build.yaml
+++ b/build-tools/automation/templates/core-build.yaml
@@ -6,10 +6,10 @@ steps:
displayName: Prepare Solution
inputs:
projects: Java.Interop.sln
- arguments: '-c $(Build.Configuration) -target:Prepare'
+ arguments: '-v:diag -c $(Build.Configuration) -target:Prepare'
- task: DotNetCoreCLI@2
displayName: Build Solution
inputs:
projects: Java.Interop.sln
- arguments: '-c $(Build.Configuration) -m:1'
+ arguments: '-v:diag -c $(Build.Configuration) -m:1'
diff --git a/build-tools/automation/templates/install-dependencies.yaml b/build-tools/automation/templates/install-dependencies.yaml
index 8bd8bf2f4..dd773964f 100644
--- a/build-tools/automation/templates/install-dependencies.yaml
+++ b/build-tools/automation/templates/install-dependencies.yaml
@@ -7,6 +7,12 @@ steps:
inputs:
version: $(DotNetCoreVersion)
+- task: UseDotNet@2
+ displayName: Use .NET Core 3.1.201 for Mono
+ inputs:
+ version: 3.1.201
+ condition: eq(variables['agent.os'], 'Darwin')
+
- script: |
dotnet tool install --global boots
boots --stable Mono
diff --git a/build-tools/jnienv-gen/jnienv-gen.csproj b/build-tools/jnienv-gen/jnienv-gen.csproj
index 11caad93f..b90d10886 100644
--- a/build-tools/jnienv-gen/jnienv-gen.csproj
+++ b/build-tools/jnienv-gen/jnienv-gen.csproj
@@ -2,7 +2,7 @@
Exe
- net472;netcoreapp3.1
+ net472;net5.0
false
$(BaseIntermediateOutputPath)$(Configuration)\$(TargetFramework.ToLowerInvariant())\
diff --git a/src/Java.Interop.Export/Java.Interop.Export.csproj b/src/Java.Interop.Export/Java.Interop.Export.csproj
index d608d87ee..61c732613 100644
--- a/src/Java.Interop.Export/Java.Interop.Export.csproj
+++ b/src/Java.Interop.Export/Java.Interop.Export.csproj
@@ -1,7 +1,7 @@
- netstandard2.0;netcoreapp3.1
+ netstandard2.0;net5.0
8.0
{B501D075-6183-4E1D-92C9-F7B5002475B1}
true
diff --git a/src/Java.Interop/Directory.Build.targets b/src/Java.Interop/Directory.Build.targets
index c91706ab8..b0ae7b1ed 100644
--- a/src/Java.Interop/Directory.Build.targets
+++ b/src/Java.Interop/Directory.Build.targets
@@ -14,7 +14,7 @@
+ Outputs="Java.Interop\JniEnvironment.g.cs;$(IntermediateOutputPath)jni.c">
- netstandard2.0;netcoreapp3.1
+ netstandard2.0;net5.0
1591
true
..\..\product.snk
diff --git a/tools/class-parse/class-parse.csproj b/tools/class-parse/class-parse.csproj
index 43f43f3de..d1921fccc 100644
--- a/tools/class-parse/class-parse.csproj
+++ b/tools/class-parse/class-parse.csproj
@@ -1,7 +1,7 @@
-
+
- net472;netcoreapp3.1
+ net472;net5.0
Exe
diff --git a/tools/generator/generator.csproj b/tools/generator/generator.csproj
index 80bcf2b0f..d97c0aa24 100644
--- a/tools/generator/generator.csproj
+++ b/tools/generator/generator.csproj
@@ -1,7 +1,7 @@
-
+
- net472;netcoreapp3.1
+ net472;net5.0
Exe
$(DefineConstants);GENERATOR;HAVE_CECIL;JCW_ONLY_TYPE_NAMES
8.0
diff --git a/tools/jcw-gen/jcw-gen.csproj b/tools/jcw-gen/jcw-gen.csproj
index 16ae9a47e..b50a456ef 100644
--- a/tools/jcw-gen/jcw-gen.csproj
+++ b/tools/jcw-gen/jcw-gen.csproj
@@ -1,7 +1,7 @@
- net472;netcoreapp3.1
+ net472;net5.0
Exe
diff --git a/tools/logcat-parse/logcat-parse.csproj b/tools/logcat-parse/logcat-parse.csproj
index e189818e2..77d7c6141 100644
--- a/tools/logcat-parse/logcat-parse.csproj
+++ b/tools/logcat-parse/logcat-parse.csproj
@@ -1,7 +1,7 @@
- net472;netcoreapp3.1
+ net472
Exe
diff --git a/tools/param-name-importer/param-name-importer.csproj b/tools/param-name-importer/param-name-importer.csproj
index e2105d242..288ee1198 100644
--- a/tools/param-name-importer/param-name-importer.csproj
+++ b/tools/param-name-importer/param-name-importer.csproj
@@ -1,6 +1,6 @@
-
+
- net472;netcoreapp3.1
+ net472;net5.0
Exe