@@ -152,11 +152,11 @@ function Process-Arguments() {
152152
153153function Update-Arguments () {
154154 if ($script :noVisualStudio ) {
155- $script :bootstrapTfm = " netcoreapp3.0 "
155+ $script :bootstrapTfm = " netcoreapp3.1 "
156156 $script :msbuildEngine = " dotnet"
157157 }
158158
159- if ($bootstrapTfm -eq " netcoreapp3.0 " ) {
159+ if ($bootstrapTfm -eq " netcoreapp3.1 " ) {
160160 if (-Not (Test-Path " $ArtifactsDir \Bootstrap\fsc\fsc.runtimeconfig.json" )) {
161161 $script :bootstrap = $True
162162 }
@@ -178,7 +178,7 @@ function BuildSolution() {
178178 $officialBuildId = if ($official ) { $env: BUILD_BUILDNUMBER } else { " " }
179179 $toolsetBuildProj = InitializeToolset
180180 $quietRestore = ! $ci
181- $testTargetFrameworks = if ($testCoreClr ) { " netcoreapp3.0 " } else { " " }
181+ $testTargetFrameworks = if ($testCoreClr ) { " netcoreapp3.1 " } else { " " }
182182
183183 # Do not set the property to true explicitly, since that would override value projects might set.
184184 $suppressExtensionDeployment = if (! $deployExtensions ) { " /p:DeployExtension=false" } else { " " }
@@ -264,7 +264,7 @@ function TestUsingNUnit([string] $testProject, [string] $targetFramework) {
264264}
265265
266266function BuildCompiler () {
267- if ($bootstrapTfm -eq " netcoreapp3.0 " ) {
267+ if ($bootstrapTfm -eq " netcoreapp3.1 " ) {
268268 $dotnetPath = InitializeDotNetCli
269269 $dotnetExe = Join-Path $dotnetPath " dotnet.exe"
270270 $fscProject = " $RepoRoot \src\fsharp\fsc\fsc.fsproj"
@@ -277,14 +277,14 @@ function BuildCompiler() {
277277 $logFilePath = Join-Path $LogDir " fscBootstrapLog.binlog"
278278 $args += " /bl:$logFilePath "
279279 }
280- $args = " build $fscProject -c $configuration -v $verbosity -f netcoreapp3.0 " + $argNoRestore + $argNoIncremental
280+ $args = " build $fscProject -c $configuration -v $verbosity -f netcoreapp3.1 " + $argNoRestore + $argNoIncremental
281281 Exec- Console $dotnetExe $args
282282
283283 if ($binaryLog ) {
284284 $logFilePath = Join-Path $LogDir " fsiBootstrapLog.binlog"
285285 $args += " /bl:$logFilePath "
286286 }
287- $args = " build $fsiProject -c $configuration -v $verbosity -f netcoreapp3.0 " + $argNoRestore + $argNoIncremental
287+ $args = " build $fsiProject -c $configuration -v $verbosity -f netcoreapp3.1 " + $argNoRestore + $argNoIncremental
288288 Exec- Console $dotnetExe $args
289289 }
290290}
@@ -448,9 +448,10 @@ try {
448448 $script :BuildCategory = " Test"
449449 $script :BuildMessage = " Failure running tests"
450450 $desktopTargetFramework = " net472"
451- $coreclrTargetFramework = " netcoreapp3.0 "
451+ $coreclrTargetFramework = " netcoreapp3.1 "
452452
453453 if ($testDesktop -and -not $noVisualStudio ) {
454+ TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $desktopTargetFramework
454455 TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" - targetFramework $desktopTargetFramework
455456 TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $desktopTargetFramework
456457 TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $desktopTargetFramework
@@ -459,6 +460,7 @@ try {
459460 }
460461
461462 if ($testCoreClr ) {
463+ TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $coreclrTargetFramework
462464 TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" - targetFramework $coreclrTargetFramework
463465 TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $coreclrTargetFramework
464466 TestUsingNUnit - testProject " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $coreclrTargetFramework
0 commit comments