@ -78,10 +79,18 @@ foreach ($version in $Versions)
# Creating temporary global.json file inside e2e-test-csproj dir and setting exact version of .NET inside allows to override default behavior of .NET and run build and tests on that exact version.
Write-Host"Creating temporary global.json file for $version .NET version."
&$dotnetnewglobaljson--sdk-version$version--force
if(!(Test-Path"./global.json"))
{
throw"An error occured while creating the global.json file. Exit code: $LASTEXITCODE"
}
Write-Host"The global.json file for the version $version is created. Currently used .NET version is: $(&$dotnet--version)."
# Environment variable TEST_TARGET_FRAMEWORK is used inside the test.csproj file to target required framework version