|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project> |
3 | | - <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> |
4 | | - <Import Project="..\netfx.props" /> |
| 3 | + <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk"/> |
| 4 | + <Import Project="..\netfx.props"/> |
5 | 5 | <PropertyGroup> |
6 | 6 | <Version>2.0.0</Version> |
7 | 7 | <Authors>Oxide Team and Contributors</Authors> |
|
17 | 17 | <RootNamespace>$(MSBuildProjectName.Replace(" ", "_").Replace(".Common", ""))</RootNamespace> |
18 | 18 | <PackageId>Oxide.Common</PackageId> |
19 | 19 | <LangVersion>Latest</LangVersion> |
| 20 | + <PolySharpUsePublicAccessibilityForGeneratedTypes>True</PolySharpUsePublicAccessibilityForGeneratedTypes> |
| 21 | + <PolySharpIncludeRuntimeSupportedAttributes>True</PolySharpIncludeRuntimeSupportedAttributes> |
| 22 | + </PropertyGroup> |
| 23 | + <PropertyGroup Condition="'$(TargetFramework)' == 'net48'"> |
| 24 | + <PolySharpExcludeGeneratedTypes> |
| 25 | + System.Diagnostics.CodeAnalysis.AllowNullAttribute; |
| 26 | + System.Diagnostics.CodeAnalysis.DisallowNullAttribute; |
| 27 | + System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute; |
| 28 | + System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute; |
| 29 | + System.Diagnostics.CodeAnalysis.MaybeNullAttribute; |
| 30 | + System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute; |
| 31 | + System.Diagnostics.CodeAnalysis.NotNullAttribute; |
| 32 | + System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute; |
| 33 | + System.Diagnostics.CodeAnalysis.NotNullWhenAttribute; |
| 34 | + System.Range; |
| 35 | + System.Index; |
| 36 | + </PolySharpExcludeGeneratedTypes> |
20 | 37 | </PropertyGroup> |
21 | 38 | <ItemGroup> |
22 | 39 | <PackageReference Include="Oxide.References" Version="2.0.*"> |
23 | 40 | <PrivateAssets>contentfiles;analyzers;build</PrivateAssets> |
24 | 41 | </PackageReference> |
25 | | - <None Include="..\resources\icon.png" Pack="true" PackagePath="\" /> |
| 42 | + <None Include="..\resources\icon.png" Pack="true" PackagePath="\"/> |
| 43 | + <PackageReference Include="PolySharp" Version="1.15.0"> |
| 44 | + <PrivateAssets>all</PrivateAssets> |
| 45 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 46 | + </PackageReference> |
26 | 47 | </ItemGroup> |
27 | | - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> |
| 48 | + <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk"/> |
28 | 49 | <Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
29 | 50 | <ItemGroup> |
30 | 51 | <ReferencePath Condition="'%(FileName)' == 'Oxide.References'"> |
|
0 commit comments