Skip to content

Commit 4089e95

Browse files
committed
build: Add UnitsNet.Signed.nuspec
1 parent 2676b53 commit 4089e95

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

Build/UnitsNet.Signed.nuspec

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>UnitsNet.Signed</id>
5+
<version>3.48.1</version>
6+
<title>Units.NET (signed)</title>
7+
<authors>Andreas Gullberg Larsen</authors>
8+
<owners>Andreas Gullberg Larsen</owners>
9+
<licenseUrl>https://github.com/anjdreas/UnitsNet/blob/master/LICENSE</licenseUrl>
10+
<projectUrl>https://github.com/anjdreas/UnitsNet</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Strong name signed edition of Units.NET. Only use this if you need a signed version.</description>
13+
<summary>Strong name signed edition of Units.NET.</summary>
14+
<iconUrl>https://raw.githubusercontent.com/anjdreas/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</iconUrl>
15+
<releaseNotes>
16+
</releaseNotes>
17+
<copyright>Copyright © 2015 Andreas Gullberg Larsen</copyright>
18+
<language>en-US</language>
19+
<tags>unit units measurement si metric imperial abbreviation abbreviations convert conversion parse c# .net immutable</tags>
20+
</metadata>
21+
<files>
22+
<file src="Artifacts\Bin\Src-signed\AnyCPU_Release\**\UnitsNet.dll" target="lib" />
23+
<file src="UnitsNet\**\*.cs" exclude="UnitsNet\**\obj\**\*.cs" target="src" />
24+
</files>
25+
</package>

Build/pack-nuget.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@echo off
22
SET ROOT=%~dp0..
33
SET MainNuspec=%ROOT%\Build\UnitsNet.nuspec
4+
SET MainSignedNuspec=%ROOT%\Build\UnitsNet.Signed.nuspec
45
SET UwpNuspec=%ROOT%\Build\UnitsNet.WindowsRuntimeComponent.nuspec
56
SET SerializationNuspec=%ROOT%\Build\UnitsNet.Serialization.JsonNet.nuspec
67
SET NuGetExe=%ROOT%\Tools\NuGet.exe
@@ -10,7 +11,12 @@ mkdir "%NuGetOutDir%"
1011

1112
%NuGetExe% pack %MainNuspec% -Verbosity detailed -OutputDirectory "%NuGetOutDir%" -BasePath "%ROOT%" -Symbols
1213
if %errorlevel% neq 0 exit /b %errorlevel%
14+
15+
%NuGetExe% pack %MainSignedNuspec% -Verbosity detailed -OutputDirectory "%NuGetOutDir%" -BasePath "%ROOT%" -Symbols
16+
if %errorlevel% neq 0 exit /b %errorlevel%
17+
1318
%NuGetExe% pack %UwpNuspec% -Verbosity detailed -OutputDirectory "%NuGetOutDir%" -BasePath "%ROOT%" -Symbols
1419
if %errorlevel% neq 0 exit /b %errorlevel%
20+
1521
%NuGetExe% pack %SerializationNuspec% -Verbosity detailed -OutputDirectory "%NuGetOutDir%" -BasePath "%ROOT%" -Symbols
1622
if %errorlevel% neq 0 exit /b %errorlevel%

0 commit comments

Comments
 (0)