-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use SkiaSharp to support SvgQRCode in .NET6 #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JimmyPun610
wants to merge
2
commits into
codebude:master
Choose a base branch
from
JimmyPun610:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,80 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net35;net40;netstandard1.3;netstandard2.0;net5.0;net5.0-windows;net6.0;net6.0-windows</TargetFrameworks> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<DefineConstants Condition="'$(TargetFramework)' == 'net5.0-windows'">$(DefineConstants);NET5_0_WINDOWS</DefineConstants> | ||
<DefineConstants Condition="'$(TargetFramework)' == 'net6.0-windows'">$(DefineConstants);NET6_0_WINDOWS</DefineConstants> | ||
<CheckEolTargetFramework>false</CheckEolTargetFramework> | ||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<NoWarn /> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<PackageId>QRCoder</PackageId> | ||
<Version>1.4.3</Version> | ||
<Authors>Raffael Herrmann</Authors> | ||
<PackageOwners>Raffael Herrmann</PackageOwners> | ||
<AssemblyName>QRCoder</AssemblyName> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/codebude/QRCoder/</PackageProjectUrl> | ||
<PackageIcon>nuget-icon.png</PackageIcon> | ||
<PackageReadmeFile>nuget-readme.md</PackageReadmeFile> | ||
<PackageTags>c# csharp qr qrcoder qrcode qr-generator qr-code-generator</PackageTags> | ||
<RepositoryUrl>https://github.com/codebude/QRCoder.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Description>QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.</Description> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="Assets\nuget-icon.png" Pack="true" PackagePath="\" /> | ||
<None Include="Assets\nuget-readme.md" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' or '$(TargetFramework)' == 'net40' "> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
<Reference Include="WindowsBase" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' or '$(TargetFramework)' == 'netstandard2.0' "> | ||
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net5.0' or '$(TargetFramework)' == 'net5.0-windows' "> | ||
<PackageReference Include="System.Drawing.Common" Version="5.0.3" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net35;net40;netstandard1.3;netstandard2.0;net5.0;net5.0-windows;net6.0;net6.0-windows</TargetFrameworks> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<DefineConstants Condition="'$(TargetFramework)' == 'net5.0-windows'">$(DefineConstants);NET5_0_WINDOWS</DefineConstants> | ||
<DefineConstants Condition="'$(TargetFramework)' == 'net6.0-windows'">$(DefineConstants);NET6_0_WINDOWS</DefineConstants> | ||
<CheckEolTargetFramework>false</CheckEolTargetFramework> | ||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<NoWarn /> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<PackageId>QRCoder</PackageId> | ||
<Version>1.4.3</Version> | ||
<Authors>Raffael Herrmann</Authors> | ||
<PackageOwners>Raffael Herrmann</PackageOwners> | ||
<AssemblyName>QRCoder</AssemblyName> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/codebude/QRCoder/</PackageProjectUrl> | ||
<PackageIcon>nuget-icon.png</PackageIcon> | ||
<PackageReadmeFile>nuget-readme.md</PackageReadmeFile> | ||
<PackageTags>c# csharp qr qrcoder qrcode qr-generator qr-code-generator</PackageTags> | ||
<RepositoryUrl>https://github.com/codebude/QRCoder.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Description>QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.</Description> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="Assets\nuget-icon.png" Pack="true" PackagePath="\" /> | ||
<None Include="Assets\nuget-readme.md" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' or '$(TargetFramework)' == 'net40' "> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
<Reference Include="WindowsBase" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' or '$(TargetFramework)' == 'netstandard2.0' "> | ||
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net5.0' or '$(TargetFramework)' == 'net5.0-windows' "> | ||
<PackageReference Include="System.Drawing.Common" Version="5.0.3" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-windows' "> | ||
<PackageReference Include="System.Drawing.Common" Version="6.0.0" /> | ||
<PackageReference Include="SkiaSharp"> | ||
<Version>2.88.3</Version> | ||
</PackageReference> | ||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0-windows'"> | ||
<PackageReference Include="SkiaSharp"> | ||
<Version>2.88.3</Version> | ||
</PackageReference> | ||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"> | ||
<PackageReference Include="SkiaSharp"> | ||
<Version>2.88.3</Version> | ||
</PackageReference> | ||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.1" /> | ||
</ItemGroup> | ||
|
||
|
||
<PropertyGroup> | ||
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride> | ||
<AutomaticallyUseReferenceAssemblyPackages Condition=" '$(TargetFramework)' == 'net35' ">false</AutomaticallyUseReferenceAssemblyPackages> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>QRCoderStrongName.snk</AssemblyOriginatorKeyFile> | ||
<DelaySign>false</DelaySign> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride> | ||
<AutomaticallyUseReferenceAssemblyPackages Condition=" '$(TargetFramework)' == 'net35' ">false</AutomaticallyUseReferenceAssemblyPackages> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>QRCoderStrongName.snk</AssemblyOriginatorKeyFile> | ||
<DelaySign>false</DelaySign> | ||
</PropertyGroup> | ||
|
||
</Project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ImageSharp 3.0.1 has a conditionally commercial license, can this be a problem?
https://github.com/SixLabors/ImageSharp/blob/v3.0.1/LICENSE
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting question, I am not an expert about this but below is my thought
For my understanding, QRCoder is a open source package under MIT license, which is able to apply apache license.
For developer using QRCoder, ImageSharp is serve as Transitive Package so it may also apply apache license.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The guy in medium says that if the dependency depends on something with the license that isn't compliant it is a reason to worry https://medium.com/@vovabilonenko/licenses-of-npm-dependencies-bacaa00c8c65. So, the commercial project won't be able to safely use QRCoder with this dependency. Probably it will be good to move the potentially dangerous dependency to the separate package. Or to downgrade image sharp to 2.*, because it is under apache 2.0. Probably it is something that maintainers will decide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might be a concern, I just committed another one that remove ImageSharp and use SkiaSharp only.