File tree Expand file tree Collapse file tree
src/Packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,19 +30,19 @@ $packageDirectory = Split-Path $installPath
3030$compilerPackageFolderName = $package.Id + " ." + $compilerVersion
3131$compilerPackageDirectory = Join-Path $packageDirectory $compilerPackageFolderName
3232$compilerPackageToolsDirectory = Join-Path $compilerPackageDirectory ' tools\roslyn472'
33- $csLanguageVersion = ' default '
33+ $csLanguageVersion = ' 7.3 '
3434$vbLanguageVersion = ' default'
3535if ($projectTargetFramework -match ' v4\.5' )
3636{
3737 $compilerPackageToolsDirectory = Join-Path $compilerPackageDirectory ' tools\roslyn45'
38- $csLanguageVersion = ' 6'
38+ $csLanguageVersion = ' 6' # Leave this at 6 for compat
3939 $vbLanguageVersion = ' 14'
4040}
4141elseif (($projectTargetFramework -match ' v4\.6' ) -or ($projectTargetFramework -match ' v4\.7[^\.]' ) -or ($projectTargetFramework -match ' v4\.7\.[01]' ))
4242{
4343 $compilerPackageToolsDirectory = Join-Path $compilerPackageDirectory ' tools\roslyn46'
44- $csLanguageVersion = ' default'
45- $vbLanguageVersion = ' default'
44+ $csLanguageVersion = ' 7.0 ' # This was ' default' which is 7.0 for this version of ms.net.compilers
45+ $vbLanguageVersion = ' default' # Is 15 for this ms.net.compilers... but will leave as 'default' for upgrades since that is still valid in .Net 4.8
4646}
4747
4848
You can’t perform that action at this time.
0 commit comments