Jint.csproj 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <LangVersion>latest</LangVersion>
  9. <ImplicitUsings>enable</ImplicitUsings>
  10. <Nullable>enable</Nullable>
  11. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  12. <AnalysisLevel>latest-Recommended</AnalysisLevel>
  13. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  14. <PackageReadmeFile>README.md</PackageReadmeFile>
  15. <NoWarn>$(NoWarn);1591</NoWarn>
  16. <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
  17. <PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.IsExternalInit;System.Runtime.CompilerServices.RequiresLocationAttribute</PolySharpExcludeGeneratedTypes>
  18. <PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>
  19. </PropertyGroup>
  20. <PropertyGroup Condition=" '$(TargetFramework)' != 'net462' and '$(TargetFramework)' != 'netstandard2.0' ">
  21. <DefineConstants>$(DefineConstants);SUPPORTS_SPAN_PARSE;SUPPORTS_WEAK_TABLE_ADD_OR_UPDATE;SUPPORTS_WEAK_TABLE_CLEAR</DefineConstants>
  22. </PropertyGroup>
  23. <ItemGroup>
  24. <None Include="../README.md" Pack="true" PackagePath="\"/>
  25. </ItemGroup>
  26. <ItemGroup>
  27. <PackageReference Include="Esprima" />
  28. <PackageReference Include="Meziantou.Analyzer" PrivateAssets="all" />
  29. </ItemGroup>
  30. <ItemGroup>
  31. <Using Remove="System.Linq" />
  32. <Using Remove="System.Net.Http" />
  33. <Using Remove="System.Threading" />
  34. </ItemGroup>
  35. </Project>