OpenCvSharp.csproj 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFrameworks>net8.0</TargetFrameworks>
  4. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  5. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  6. <AssemblyName>OpenCvSharp</AssemblyName>
  7. <SignAssembly>true</SignAssembly>
  8. <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
  9. <PackageId>OpenCvSharp</PackageId>
  10. <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
  11. <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
  12. <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
  13. <Configurations>Debug;Release</Configurations>
  14. <LangVersion>12</LangVersion>
  15. <ImplicitUsings>enable</ImplicitUsings>
  16. <Nullable>enable</Nullable>
  17. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  18. <IncludeSymbols>true</IncludeSymbols>
  19. <RepositoryUrl>https://github.com/shimat/opencvsharp.git</RepositoryUrl>
  20. <RepositoryType>git</RepositoryType>
  21. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  22. </PropertyGroup>
  23. <PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
  24. <AnalysisMode>AllEnabledByDefault</AnalysisMode>
  25. </PropertyGroup>
  26. <ItemGroup>
  27. <PackageReference Include="System.Memory" Version="4.5.5" />
  28. </ItemGroup>
  29. <ItemGroup>
  30. <None Update="OpenCvSharp.dll.config">
  31. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  32. </None>
  33. </ItemGroup>
  34. <ItemGroup Condition=" '$(TargetFramework)' == 'net48'">
  35. <Reference Include="System.Security" />
  36. <Reference Include="System.Web" />
  37. <Reference Include="System" />
  38. <Reference Include="Microsoft.CSharp" />
  39. <PackageReference Include="System.ValueTuple" Version="4.5.0" />
  40. </ItemGroup>
  41. <PropertyGroup Condition="'$(TargetFramework)' == 'net48'">
  42. <DefineConstants>$(DefineConstants);DOTNET_FRAMEWORK;</DefineConstants>
  43. </PropertyGroup>
  44. <PropertyGroup Condition="$(TargetFramework.Contains('netstandard')) Or $(TargetFramework.Contains('netcoreapp')) ">
  45. <DefineConstants>TRACE;DOTNETCORE;WINRT</DefineConstants>
  46. </PropertyGroup>
  47. <PropertyGroup Condition="$(TargetFramework.Contains('net6.0')) ">
  48. <DefineConstants>TRACE;DOTNETCORE;</DefineConstants>
  49. </PropertyGroup>
  50. <PropertyGroup Condition=" '$(Configuration)' == 'Release-JP' ">
  51. <DefineConstants>$(DefineConstants);LANG_JP</DefineConstants>
  52. </PropertyGroup>
  53. <PropertyGroup>
  54. <NoWarn>1701;1702;CA1303;CA1707;CA1814;CA1401;CA1720;CA2213;</NoWarn>
  55. <PlatformTarget>x64</PlatformTarget>
  56. </PropertyGroup>
  57. <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net480|AnyCPU'">
  58. <DefineConstants>$(DefineConstants);DOTNET_FRAMEWORK</DefineConstants>
  59. </PropertyGroup>
  60. <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net480|AnyCPU'">
  61. <DefineConstants>$(DefineConstants);DOTNET_FRAMEWORK</DefineConstants>
  62. </PropertyGroup>
  63. </Project>