Skip to content

Commit 38226cc

Browse files
committed
Setup nuget closes #4
1 parent 0d40124 commit 38226cc

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Nuget/AngleSharp.Io.nuspec

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<metadata>
4+
<id>AngleSharp.Io</id>
5+
<version>0.0.1</version>
6+
<authors>AngleSharp</authors>
7+
<owners>Florian Rappl</owners>
8+
<licenseUrl>https://github.com/AngleSharp/AngleSharp.Io/blob/master/LICENSE</licenseUrl>
9+
<projectUrl>https://anglesharp.github.io</projectUrl>
10+
<iconUrl>https://raw.github.com/AngleSharp/AngleSharp.Io/master/logo.png</iconUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Providers additional requesters and IO helpers for AngleSharp.</description>
13+
<releaseNotes>For all changes see: https://github.com/AngleSharp/AngleSharp/wiki/ChangeLog</releaseNotes>
14+
<copyright>Copyright 2015, AngleSharp</copyright>
15+
<tags>html html5 css css3 dom requester http https io filesystem storage httpclient cache</tags>
16+
<dependencies>
17+
<dependency id="AngleSharp" version="0.9.2" />
18+
</dependencies>
19+
</metadata>
20+
</package>

Package.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$dest = "Nuget\lib\net45"
2+
$spec = "Nuget\AngleSharp.Io.nuspec"
3+
New-Item $dest -type directory -Force
4+
Copy-Item "AngleSharp.Io\bin\Release\AngleSharp.Io.dll" $dest
5+
Copy-Item "AngleSharp.Io\bin\Release\AngleSharp.Io.xml" $dest
6+
$file = $dest + "\AngleSharp.Io.dll"
7+
$ver = (Get-Item $file).VersionInfo.FileVersion
8+
$file = "Nuget\AngleSharp.Io." + $ver + ".nupkg"
9+
$repl = '<version>' + $ver + '</version>'
10+
(Get-Content $spec) |
11+
Foreach-Object { $_ -replace "<version>([0-9\.]+)</version>", $repl } |
12+
Set-Content $spec
13+
nuget pack $spec -OutputDirectory "Nuget"
14+
nuget push $file

0 commit comments

Comments
 (0)