Skip to content

Commit

Permalink
Exclude InlineArrayAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Dec 5, 2023
1 parent 686d0a3 commit 120cfe9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion GW2SDK/GW2SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net462</TargetFrameworks>
<PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>
<RootNamespace>GuildWars2</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyTitle>GW2 Client SDK</AssemblyTitle>
Expand All @@ -17,6 +16,15 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<!-- Polyfills -->
<PropertyGroup>
<!-- Add support for OSPlatform attributes (net5.0+) -->
<PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>

<!-- InlineArrayAttribute polyfill has a problem with type visibility (visible outside assembly) -->
<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.InlineArrayAttribute</PolySharpExcludeGeneratedTypes>
</PropertyGroup>

<!-- NuGet properties -->
<PropertyGroup>
<PackageId>GW2SDK</PackageId>
Expand Down

0 comments on commit 120cfe9

Please sign in to comment.