Jint.csproj 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <NeutralLanguage>en-US</NeutralLanguage>
  4. <TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks>
  5. <AssemblyOriginatorKeyFile>Jint.snk</AssemblyOriginatorKeyFile>
  6. <SignAssembly>true</SignAssembly>
  7. <IsPackable>true</IsPackable>
  8. <Nullable>enable</Nullable>
  9. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  10. <AnalysisLevel>latest-Recommended</AnalysisLevel>
  11. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  12. <PackageReadmeFile>README.md</PackageReadmeFile>
  13. <NoWarn>$(NoWarn);1591</NoWarn>
  14. <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
  15. <PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.RequiresLocationAttribute</PolySharpExcludeGeneratedTypes>
  16. <PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>
  17. </PropertyGroup>
  18. <PropertyGroup Condition=" '$(TargetFramework)' != 'net462' and '$(TargetFramework)' != 'netstandard2.0' ">
  19. <DefineConstants>$(DefineConstants);SUPPORTS_SPAN_PARSE;SUPPORTS_WEAK_TABLE_ADD_OR_UPDATE;SUPPORTS_WEAK_TABLE_CLEAR</DefineConstants>
  20. </PropertyGroup>
  21. <PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
  22. <DefineConstants>$(DefineConstants);SUPPORTS_HALF</DefineConstants>
  23. </PropertyGroup>
  24. <ItemGroup>
  25. <None Include="../README.md" Pack="true" PackagePath="\"/>
  26. </ItemGroup>
  27. <ItemGroup>
  28. <PackageReference Include="Acornima" />
  29. <PackageReference Include="Meziantou.Analyzer" PrivateAssets="all" />
  30. </ItemGroup>
  31. <ItemGroup>
  32. <Using Remove="System.Linq" />
  33. <Using Remove="System.Net.Http" />
  34. <Using Remove="System.Threading" />
  35. </ItemGroup>
  36. </Project>