|
14 | 14 | <PropertyGroup> |
15 | 15 | <BaseArtifactsPath>$(MSBuildThisFileDirectory)artifacts/</BaseArtifactsPath> |
16 | 16 | <BaseArtifactsPathSuffix>$(ImageSharpProjectCategory)/$(MSBuildProjectName)</BaseArtifactsPathSuffix> |
17 | | - <RepositoryUrl>https://github.com/SixLabors/ImageSharp/</RepositoryUrl> |
| 17 | + <RepositoryUrl Condition="'$(RepositoryUrl)' == ''">https://github.com/SixLabors/ImageSharp/</RepositoryUrl> |
18 | 18 | </PropertyGroup> |
19 | 19 |
|
20 | 20 | <!-- Default settings that explicitly differ from the Sdk.props defaults --> |
|
31 | 31 |
|
32 | 32 | <!-- |
33 | 33 | https://apisof.net/ |
34 | | - +===================+================+===================+==============================+======================+==========================+ |
35 | | - | Target Framework | SUPPORTS_MATHF | SUPPORTS_HASHCODE | SUPPORTS_EXTENDED_INTRINSICS | SUPPORTS_SPAN_STREAM | SUPPORTS_ENCODING_STRING | |
36 | | - +===================+================+===================+==============================+======================+==========================+ |
37 | | - | netcoreapp3.1 | Y | Y | Y | Y | Y | |
38 | | - | netcoreapp2.1 | Y | Y | Y | Y | Y | |
39 | | - | netcoreapp2.0 | Y | N | N | N | N | |
40 | | - | netstandard2.1 | Y | N | N | Y | Y | |
41 | | - | netstandard2.0 | N | N | N | N | N | |
42 | | - | netstandard1.3 | N | N | N | N | N | |
43 | | - | net472 | N | N | Y | N | N | |
44 | | - +===================+================+===================+==============================+======================+==========================+ |
| 34 | + +===================+=======+==========+=====================+=============+=================+====================+==============+ |
| 35 | + | SUPPORTS | MATHF | HASHCODE | EXTENDED_INTRINSICS | SPAN_STREAM | ENCODING_STRING | RUNTIME_INTRINSICS | CODECOVERAGE | |
| 36 | + +===================+=======+==========+=====================+=============+=================+====================+==============+ |
| 37 | + | netcoreapp3.1 | Y | Y | Y | Y | Y | Y | Y | |
| 38 | + | netcoreapp2.1 | Y | Y | Y | Y | Y | N | Y | |
| 39 | + | netcoreapp2.0 | Y | N | N | N | N | N | Y | |
| 40 | + | netstandard2.1 | Y | Y | N | Y | Y | N | Y | |
| 41 | + | netstandard2.0 | N | N | N | N | N | N | Y | |
| 42 | + | netstandard1.3 | N | N | N | N | N | N | N | |
| 43 | + | net472 | N | N | Y | N | N | N | Y | |
| 44 | + +===================+=======+==========+=====================+=============+=================+====================+==============+ |
45 | 45 | --> |
46 | 46 |
|
47 | | - <!-- TODO: Include additional targets to TargetFrameworks --> |
48 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'"> |
49 | | - <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING</DefineConstants> |
| 47 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'"> |
| 48 | + <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING;SUPPORTS_RUNTIME_INTRINSICS;SUPPORTS_CODECOVERAGE</DefineConstants> |
50 | 49 | </PropertyGroup> |
51 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'"> |
52 | | - <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING</DefineConstants> |
| 50 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> |
| 51 | + <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING;SUPPORTS_CODECOVERAGE</DefineConstants> |
53 | 52 | </PropertyGroup> |
54 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0'"> |
55 | | - <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;</DefineConstants> |
| 53 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'"> |
| 54 | + <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_CODECOVERAGE</DefineConstants> |
56 | 55 | </PropertyGroup> |
57 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1'"> |
58 | | - <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING</DefineConstants> |
| 56 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> |
| 57 | + <DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING;SUPPORTS_CODECOVERAGE</DefineConstants> |
59 | 58 | </PropertyGroup> |
60 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'net472'"> |
61 | | - <DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants> |
| 59 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> |
| 60 | + <DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants> |
62 | 61 | </PropertyGroup> |
63 | | - |
64 | | - <PropertyGroup Condition="'$(Configuration)' == 'Release'"> |
65 | | - <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
66 | | - </PropertyGroup> |
67 | | - |
68 | | - <!--TODO: Check what this is testing for and why does it fail?--> |
69 | | - <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> |
70 | | - <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> |
| 62 | + <PropertyGroup Condition="'$(TargetFramework)' == 'net472'"> |
| 63 | + <DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_CODECOVERAGE</DefineConstants> |
71 | 64 | </PropertyGroup> |
72 | 65 |
|
73 | 66 | <!-- Default settings that explicitly differ from the Sdk.targets defaults--> |
|
88 | 81 | <Copyright>Copyright © Six Labors and Contributors</Copyright> |
89 | 82 | <Features>strict;IOperation</Features> |
90 | 83 | <HighEntropyVA>true</HighEntropyVA> |
91 | | - <LangVersion>7.3</LangVersion> |
| 84 | + <LangVersion>8.0</LangVersion> |
92 | 85 | <NeutralLanguage>en</NeutralLanguage> |
93 | 86 | <OverwriteReadOnlyFiles>true</OverwriteReadOnlyFiles> |
94 | | - <PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/imagesharp/sixlabors.imagesharp.128.png</PackageIconUrl> |
| 87 | + <PackageIcon>icon.png</PackageIcon> |
95 | 88 | <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> |
96 | 89 | <PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl> |
97 | 90 | <ProduceReferenceAssembly>true</ProduceReferenceAssembly> |
|
105 | 98 | <UseSharedCompilation>true</UseSharedCompilation> |
106 | 99 | </PropertyGroup> |
107 | 100 |
|
108 | | - <!-- Package references which are consumed by all projects --> |
| 101 | + <!-- Package references and additional files which are consumed by all projects --> |
109 | 102 | <ItemGroup> |
110 | 103 | <PackageReference Include="Microsoft.Net.Compilers.Toolset" IsImplicitlyDefined="true" /> |
| 104 | + <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" IsImplicitlyDefined="true" /> |
| 105 | + <!--TODO: Enable this once tests Stylecop issues are fixed--> |
| 106 | + <!--<PackageReference Include="StyleCop.Analyzers" IsImplicitlyDefined="true" />--> |
| 107 | + <AdditionalFiles Include="$(MSBuildThisFileDirectory)shared-infrastructure\stylecop.json" /> |
| 108 | + <!--NuGet package icon source--> |
| 109 | + <None Include="$(MSBuildThisFileDirectory)shared-infrastructure\branding\icons\imagesharp\sixlabors.imagesharp.128.png" Pack="true" PackagePath="\icon.png" /> |
111 | 110 | </ItemGroup> |
112 | 111 |
|
113 | 112 | </Project> |
0 commit comments