diff options
author | Eric Erhardt <eric.erhardt@microsoft.com> | 2020-06-08 23:20:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 23:20:53 +0300 |
commit | 84abb55039eb7d94b435cd79104901b25ed1e2bd (patch) | |
tree | c4dee4554a85db371c191afa095eded5fde435ba /Directory.Build.targets | |
parent | 3218c668b669725b9d36dc35a5f585cbf7a2efaf (diff) |
Allow individual projects to override LangVersion (#37512)
Setting LangVersion in a .targets file makes it hard to override LangVersion in individual projects. Instead, move the default project setting back to the .props file and condition VB based on $(MSBuildProjectExtension), which is available in the .props file.
ILCompiler.Reflection.ReadyToRun needs to set LangVersion to 7.3 so it doesn't break ILSpy.
Fix #37498
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r-- | Directory.Build.targets | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Directory.Build.targets b/Directory.Build.targets index 2d72cd0f912..f16e04d9b4e 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -20,11 +20,4 @@ <NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion> </PropertyGroup> - <!-- Language configuration --> - <PropertyGroup> - <!-- default to allowing all language features --> - <LangVersion>preview</LangVersion> - <LangVersion Condition="'$(Language)' == 'VB'">latest</LangVersion> - </PropertyGroup> - </Project> |