Skip to content

Commit

Permalink
Update C# language versions for better compat and to match official s…
Browse files Browse the repository at this point in the history
…upport guidance. (#110)
  • Loading branch information
StephenMolloy authored Jul 1, 2020
1 parent 8e864e5 commit 7026e02
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ $packageDirectory = Split-Path $installPath
$compilerPackageFolderName = $package.Id + "." + $compilerVersion
$compilerPackageDirectory = Join-Path $packageDirectory $compilerPackageFolderName
$compilerPackageToolsDirectory = Join-Path $compilerPackageDirectory 'tools\roslyn472'
$csLanguageVersion = 'default'
$csLanguageVersion = '7.3'
$vbLanguageVersion = 'default'
if ($projectTargetFramework -match 'v4\.5')
{
$compilerPackageToolsDirectory = Join-Path $compilerPackageDirectory 'tools\roslyn45'
$csLanguageVersion = '6'
$csLanguageVersion = '6' # Leave this at 6 for compat
$vbLanguageVersion = '14'
}
elseif (($projectTargetFramework -match 'v4\.6') -or ($projectTargetFramework -match 'v4\.7[^\.]') -or ($projectTargetFramework -match 'v4\.7\.[01]'))
{
$compilerPackageToolsDirectory = Join-Path $compilerPackageDirectory 'tools\roslyn46'
$csLanguageVersion = 'default'
$vbLanguageVersion = 'default'
$csLanguageVersion = '7.0' # This was 'default' which is 7.0 for this version of ms.net.compilers
$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
}


Expand Down

0 comments on commit 7026e02

Please sign in to comment.