Skip to content

Commit

Permalink
Add PolySharp and change LangVersion=latest
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 31, 2024
1 parent c25ccfe commit 50cea48
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Tomlyn/Tomlyn.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net7.0</TargetFrameworks>
<LangVersion>10.0</LangVersion>
<LangVersion>latest</LangVersion>
<Description>Tomlyn is a TOML parser, validator and authoring library for .NET.</Description>
<Copyright>Alexandre Mutel</Copyright>
<Authors>Alexandre Mutel</Authors>
Expand All @@ -21,6 +21,12 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>




</PropertyGroup>

<ItemGroup>
Expand All @@ -35,6 +41,12 @@
</PackageReference>
<!--Add support for sourcelink-->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.*" PrivateAssets="All" />
<!--Polyfill language features for .NET Standard 2.0 et all, generating internal
items only for the compiler. Enables langversion=latest-->
<PackageReference Include="PolySharp" Version="1.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="PatchVersion" AfterTargets="MinVer">
Expand Down

0 comments on commit 50cea48

Please sign in to comment.