Skip to content

Commit e39864e

Browse files
committed
feat: Bump UWPSyncGenerator version
1 parent 88ce572 commit e39864e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
</ItemGroup>
8383

8484
<PropertyGroup>
85+
<!-- When updating this in the future, please also update CSharpLangVersion constant in src\Uno.UWPSyncGenerator\Generator.cs -->
8586
<LangVersion>11.0</LangVersion>
8687

8788
<!-- Roslyn generation is enabled by default for all uno projects (inside uno.ui only) -->

src/Uno.UWPSyncGenerator/Generator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ namespace Uno.UWPSyncGenerator
1313
{
1414
abstract class Generator
1515
{
16+
private const string CSharpLangVersion = "11.0";
17+
1618
private const string net461Define = "NET461";
1719
private const string AndroidDefine = "__ANDROID__";
1820
private const string iOSDefine = "__IOS__";
@@ -1755,7 +1757,7 @@ private static Compilation InnerLoadProject(string projectFile, string targetFra
17551757
//{ "BuildingInsideVisualStudio", "true" },
17561758
{ "SkipUnoResourceGeneration", "true" }, // Required to avoid loading a non-existent task
17571759
{ "DocsGeneration", "true" }, // Detect that source generation is running
1758-
{ "LangVersion", "8.0" },
1760+
{ "LangVersion", CSharpLangVersion },
17591761
//{ "DesignTimeBuild", "true" },
17601762
//{ "UseHostCompilerIfAvailable", "false" },
17611763
//{ "UseSharedCompilation", "false" },

0 commit comments

Comments
 (0)