Skip to content

Commit

Permalink
LangVersion 12 (#115)
Browse files Browse the repository at this point in the history
Also fixing some links and adding source generator emit commented code.
  • Loading branch information
Keboo authored Jan 16, 2024
1 parent 1c874b7 commit a539210
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 7 additions & 1 deletion templates/Console/ConsoleApp/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ See: https://learn.microsoft.com/visualstudio/msbuild/customize-your-build
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<LangVersion>12</LangVersion>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>

<!--
If you you like to see source generated files saved to disk you can enable the following:
https://learn.microsoft.com/dotnet/csharp/roslyn-sdk/source-generators-overview?WT.mc_id=DT-MVP-5003472
-->
<!--<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>-->
</PropertyGroup>

<!--
Expand Down
5 changes: 3 additions & 2 deletions templates/Library/NuGet/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ See: https://learn.microsoft.com/visualstudio/msbuild/customize-your-build
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<LangVersion>12</LangVersion>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<!--
If you you like to see source generated files saved to disk you can enable the following:
https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview
https://learn.microsoft.com/dotnet/csharp/roslyn-sdk/source-generators-overview?WT.mc_id=DT-MVP-5003472
-->
<!--<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>-->
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions templates/WPF/WpfApp/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ See: https://learn.microsoft.com/visualstudio/msbuild/customize-your-build
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<LangVersion>12</LangVersion>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<!--
If you you like to see source generated files saved to disk you can enable the following:
https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview
https://learn.microsoft.com/dotnet/csharp/roslyn-sdk/source-generators-overview?WT.mc_id=DT-MVP-5003472
-->
<!--<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>-->
</PropertyGroup>
Expand Down

0 comments on commit a539210

Please sign in to comment.