Skip to content

Commit daa22d3

Browse files
committed
Create the NuGet packages using built-in project features
1 parent cbb2cc8 commit daa22d3

5 files changed

Lines changed: 36 additions & 64 deletions

File tree

CommonMark.Console/CommonMark.Console.csproj

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,21 @@
1818
<Version>1.0.0.0</Version>
1919
<FileVersion>1.0.0.0</FileVersion>
2020

21+
<PackageId>CommonMark.NET.Console</PackageId>
22+
<PackageVersion>0.15.1</PackageVersion>
23+
<Title>CommonMark.NET.Console</Title>
24+
<Authors>Kārlis Gaņģis</Authors>
25+
<PackageLicenseUrl>https://raw.githubusercontent.com/Knagis/CommonMark.NET/master/LICENSE.md</PackageLicenseUrl>
26+
<PackageProjectUrl>https://github.com/Knagis/CommonMark.NET/</PackageProjectUrl>
27+
<PackageIconUrl>https://raw.githubusercontent.com/dcurtis/markdown-mark/master/png/32x20.png</PackageIconUrl>
28+
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
29+
<PackageDescription>.NET library for converting Markdown documents to HTML according to the CommonMark specification. Optimized for maximum performance and targets every .NET version since 2.0, including PCL, Mono and .NET Core.</PackageDescription>
30+
<PackageReleaseNotes>Fixed lists with tab characters and double trailing newlines.</PackageReleaseNotes>
31+
<PackageTags>CommonMark Markdown</PackageTags>
32+
33+
<IsTool>true</IsTool>
34+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
2135
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
22-
<NuspecFile>..\CommonMark.NET.Console.nuspec</NuspecFile>
23-
<NuspecProperties>configuration=$(Configuration)</NuspecProperties>
2436
</PropertyGroup>
2537

2638
<ItemGroup>
@@ -46,9 +58,15 @@
4658
</ItemGroup>
4759

4860
<ItemGroup>
49-
<EmbeddedResource Include="..\CommonMark.NET.Console.nuspec">
50-
<Link>Properties\CommonMark.NET.Console.nuspec</Link>
51-
</EmbeddedResource>
61+
<Content Include="..\LICENSE.md" PackagePath="/" />
62+
<Content Include="App.config" PackagePath="$(BuildOutputTargetFolder)/cmark.exe.config" />
5263
</ItemGroup>
5364

65+
<Target Name="_GetAdditionalPackAssemblyFiles" BeforeTargets="_GetBuildOutputFilesWithTfm">
66+
<ItemGroup>
67+
<BuildOutputInPackage Include="$(OutputPath)CommonMark.dll" />
68+
<BuildOutputInPackage Include="$(OutputPath)CommonMark.xml" />
69+
</ItemGroup>
70+
</Target>
71+
5472
</Project>

CommonMark.NET.Console.nuspec

Lines changed: 0 additions & 24 deletions
This file was deleted.

CommonMark.NET.nuspec

Lines changed: 0 additions & 28 deletions
This file was deleted.

CommonMark.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Other", "Other", "{EC5FFA77-658F-4D2F-A5CE-5F1BD44F3FC0}"
1111
ProjectSection(SolutionItems) = preProject
1212
appveyor.yml = appveyor.yml
13-
CommonMark.NET.Console.nuspec = CommonMark.NET.Console.nuspec
14-
CommonMark.NET.nuspec = CommonMark.NET.nuspec
1513
LICENSE.md = LICENSE.md
1614
README.md = README.md
1715
runtests.pl = runtests.pl

CommonMark/CommonMark.Base.csproj

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,19 @@
2222
<Version>0.1.0.0</Version>
2323
<FileVersion>0.1.0.0</FileVersion>
2424

25+
<PackageId>CommonMark.NET</PackageId>
26+
<PackageVersion>0.15.1</PackageVersion>
27+
<Title>CommonMark.NET</Title>
28+
<Authors>Kārlis Gaņģis</Authors>
29+
<PackageLicenseUrl>https://raw.githubusercontent.com/Knagis/CommonMark.NET/master/LICENSE.md</PackageLicenseUrl>
30+
<PackageProjectUrl>https://github.com/Knagis/CommonMark.NET/</PackageProjectUrl>
31+
<PackageIconUrl>https://raw.githubusercontent.com/dcurtis/markdown-mark/master/png/32x20.png</PackageIconUrl>
32+
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
33+
<PackageDescription>.NET library for converting Markdown documents to HTML according to the CommonMark specification. Optimized for maximum performance and targets every .NET version since 2.0, including PCL, Mono and .NET Core.</PackageDescription>
34+
<PackageReleaseNotes>Fixed lists with tab characters and double trailing newlines.</PackageReleaseNotes>
35+
<PackageTags>CommonMark Markdown</PackageTags>
36+
2537
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
26-
<NuspecFile>..\CommonMark.NET.nuspec</NuspecFile>
27-
<NuspecProperties>configuration=$(Configuration)</NuspecProperties>
2838
</PropertyGroup>
2939

3040
<ItemGroup>
@@ -69,9 +79,7 @@
6979
</Choose>
7080

7181
<ItemGroup>
72-
<EmbeddedResource Include="..\CommonMark.NET.nuspec">
73-
<Link>Properties\CommonMark.NET.nuspec</Link>
74-
</EmbeddedResource>
82+
<Content Include="..\LICENSE.md" PackagePath="/" />
7583
</ItemGroup>
7684

7785
</Project>

0 commit comments

Comments
 (0)