Skip to content

Commit b8f6183

Browse files
Add licenses in NuGets
1 parent 9021e6d commit b8f6183

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

src/CouchDB.Driver.DependencyInjection/CouchDB.Driver.DependencyInjection.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<Nullable>enable</Nullable>
1919
<Version>2.0.0</Version>
2020
<PackageIcon>icon.png</PackageIcon>
21+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2122
</PropertyGroup>
2223

2324
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -27,6 +28,7 @@
2728

2829
<ItemGroup>
2930
<None Include="Images\icon.png" Pack="true" PackagePath="\" />
31+
<None Include="License\LICENSE.txt" Pack="true" PackagePath="\" />
3032
</ItemGroup>
3133

3234
<ItemGroup>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Matteo Bortolazzo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/CouchDB.Driver/CouchDB.Driver.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<AssemblyName>CouchDB.NET</AssemblyName>
66
<Authors>Matteo Bortolazzo</Authors>
7-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
7+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
88
<Description>A .NET Standard driver for CouchDB.</Description>
99
<PackageProjectUrl>https://github.com/matteobortolazzo/couchdb-net</PackageProjectUrl>
1010
<RepositoryUrl>https://github.com/matteobortolazzo/couchdb-net</RepositoryUrl>
@@ -18,10 +18,12 @@
1818
<Nullable>enable</Nullable>
1919
<Version>2.0.0</Version>
2020
<PackageIcon>icon.png</PackageIcon>
21+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2122
</PropertyGroup>
2223

2324
<ItemGroup>
24-
<None Include="Images\icon.png" Pack="true" PackagePath="\"/>
25+
<None Include="Images\icon.png" Pack="true" PackagePath="\" />
26+
<None Include="License\LICENSE.txt" Pack="true" PackagePath="\" />
2527
</ItemGroup>
2628

2729
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -35,4 +37,8 @@
3537
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" PrivateAssets="All" Version="3.0.0" />
3638
</ItemGroup>
3739

40+
<ItemGroup>
41+
<Folder Include="License\" />
42+
</ItemGroup>
43+
3844
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Matteo Bortolazzo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)