Sicherung
This commit is contained in:
16
Notification-Popup-Window/Nuget/Build.ps1
Normal file
16
Notification-Popup-Window/Nuget/Build.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..'
|
||||
Write-Output "Downloading nuget.exe from nuget.org"
|
||||
Invoke-WebRequest "https://nuget.org/nuget.exe" -OutFile $root\Nuget.exe
|
||||
|
||||
|
||||
$version = [System.Reflection.Assembly]::LoadFile("$root\Tulpep.NotificationWindow\bin\Release\Tulpep.NotificationWindow.dll").GetName().Version
|
||||
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)
|
||||
Write-Host "Setting .nuspec version tag to $versionStr"
|
||||
$content = (Get-Content $root\NuGet\specs.nuspec)
|
||||
$content = $content -replace '\$version\$',$versionStr
|
||||
|
||||
$content | Out-File $root\nuget\specs.nuspec
|
||||
|
||||
|
||||
Write-Output "Creating Nuget Package"
|
||||
& $root\Nuget.exe pack $root\Nuget\specs.nuspec
|
||||
18
Notification-Popup-Window/Nuget/specs.nuspec
Normal file
18
Notification-Popup-Window/Nuget/specs.nuspec
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Tulpep.NotificationWindow</id>
|
||||
<version>$version$</version>
|
||||
<title>Notification Popup Window</title>
|
||||
<authors>Simon Baer; Tulpep</authors>
|
||||
<licenseUrl>https://raw.githubusercontent.com/Tulpep/Notification-Popup-Window/master/LICENSE</licenseUrl>
|
||||
<projectUrl>https://github.com/Tulpep/Notification-Popup-Window</projectUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Notification Popup Window</description>
|
||||
<summary>Notification Popup Window</summary>
|
||||
<tags>WinForms Windows Forms NotificationWindow Notification Notifications Popup Popups</tags>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="..\Tulpep.NotificationWindow\bin\Release\Tulpep.NotificationWindow.dll" target="lib\net40\Tulpep.NotificationWindow.dll" />
|
||||
</files>
|
||||
</package>
|
||||
Reference in New Issue
Block a user