Commits

Michael Sumerano  committed b228575

Added nuspec files for building NuGet package. Updated packing batch files.

  • Participants
  • Parent commits 9115b28

Comments (0)

Files changed (7)

 *.user
 FedEx-Test-Credentials.txt
 SeeSharpShip.Tests/sumerano.config
+SeeSharpShip.nuspec
+*.nupkg

File NuGet/pack.bat

 @echo off
 
+setlocal
+
 pushd ..
 pushd SeeSharpShip
 
-nuget pack SeeSharpShip.csproj -Prop Configuration=Release %1
+set config=Release
+
+copy SeeSharpShip.nuspec.%config% SeeSharpShip.nuspec
+nuget pack SeeSharpShip.csproj -Build -IncludeReferencedProjects -Properties Configuration=%config%;OutputPath=.\bin\%config%
+del SeeSharpShip.nuspec
 
 popd
 popd

File NuGet/packWithSymbols.bat

 @echo off
 
-call pack.bat -Symbols
+setlocal
+
+pushd ..
+pushd SeeSharpShip
+
+set config=Debug
+
+copy SeeSharpShip.nuspec.%config% SeeSharpShip.nuspec
+nuget pack SeeSharpShip.csproj -Build -Symbols -Properties Configuration=%config%;OutputPath=.\bin\%config%
+del SeeSharpShip.nuspec
+
+popd
+popd

File SeeSharpShip/SeeSharpShip.csproj

     <None Include="app.config">
       <SubType>Designer</SubType>
     </None>
+    <None Include="SeeSharpShip.nuspec.Release">
+      <SubType>Designer</SubType>
+    </None>
     <None Include="license.txt" />
-    <None Include="SeeSharpShip.nuspec">
+    <None Include="SeeSharpShip.nuspec.Debug">
       <SubType>Designer</SubType>
     </None>
   </ItemGroup>

File SeeSharpShip/SeeSharpShip.nuspec

-<?xml version="1.0"?>
-<package>
-    <metadata>
-        <id>$id$</id>
-        <version>$version$</version>
-        <title>$title$</title>
-        <authors>Michael J. Sumerano</authors>
-        <owners>Michael J. Sumerano</owners>
-        <licenseUrl>http://www.gnu.org/licenses/gpl-3.0.html</licenseUrl>
-        <projectUrl>http://www.seesharpship.com/</projectUrl>
-        <requireLicenseAcceptance>false</requireLicenseAcceptance>
-        <description>$description$</description>
-        <releaseNotes></releaseNotes>
-        <copyright>2011-2013 Michael J. Sumerano</copyright>
-        <tags>seesharpship usps ups fedex dhl</tags>
-        <frameworkAssemblies>
-            <frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.0" />
-            <frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.0" />
-            <frameworkAssembly assemblyName="System.ServiceModel" targetFramework=".NETFramework4.0" />
-            <frameworkAssembly assemblyName="System.Web" targetFramework=".NETFramework4.0" />
-            <frameworkAssembly assemblyName="System.Xml" targetFramework=".NETFramework4.0" />
-            <frameworkAssembly assemblyName="System.Xml.Linq" targetFramework=".NETFramework4.0" />
-        </frameworkAssemblies>
-    </metadata>
-    <files>
-        <file src="..\NuGet\Transforms\*.config.transform" target="content\" />
-        <file src=".\bin\Release\SeeSharpShip.dll" target="lib\net40\SeeSharpShip.dll" />
-        <file src=".\bin\Release\SeeSharpShip.pdb" target="lib\net40\SeeSharpShip.pdb" />
-    </files>
-</package>

File SeeSharpShip/SeeSharpShip.nuspec.Debug

+<?xml version="1.0"?>
+<package>
+    <metadata>
+        <id>$id$</id>
+        <version>$version$</version>
+        <title>$title$</title>
+        <authors>Michael J. Sumerano</authors>
+        <owners>Michael J. Sumerano</owners>
+        <licenseUrl>http://www.gnu.org/licenses/gpl-3.0.html</licenseUrl>
+        <projectUrl>http://www.seesharpship.com/</projectUrl>
+        <requireLicenseAcceptance>false</requireLicenseAcceptance>
+        <description>$description$</description>
+        <releaseNotes></releaseNotes>
+        <copyright>2011-2013 Michael J. Sumerano</copyright>
+        <tags>seesharpship usps ups fedex dhl</tags>
+        <frameworkAssemblies>
+            <frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.ServiceModel" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Web" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Xml" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Xml.Linq" targetFramework=".NETFramework4.0" />
+        </frameworkAssemblies>
+    </metadata>
+    <files>
+        <file src="..\NuGet\Transforms\*.config.transform" target="content\" />
+        <file src=".\bin\Debug\SeeSharpShip*.dll" target="lib\net40\" />
+        <file src=".\bin\Debug\SeeSharpShip*.pdb" target="lib\net40\" />
+    </files>
+</package>

File SeeSharpShip/SeeSharpShip.nuspec.Release

+<?xml version="1.0"?>
+<package>
+    <metadata>
+        <id>$id$</id>
+        <version>$version$</version>
+        <title>$title$</title>
+        <authors>Michael J. Sumerano</authors>
+        <owners>Michael J. Sumerano</owners>
+        <licenseUrl>http://www.gnu.org/licenses/gpl-3.0.html</licenseUrl>
+        <projectUrl>http://www.seesharpship.com/</projectUrl>
+        <requireLicenseAcceptance>false</requireLicenseAcceptance>
+        <description>$description$</description>
+        <releaseNotes></releaseNotes>
+        <copyright>2011-2013 Michael J. Sumerano</copyright>
+        <tags>seesharpship usps ups fedex dhl</tags>
+        <frameworkAssemblies>
+            <frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.ServiceModel" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Web" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Xml" targetFramework=".NETFramework4.0" />
+            <frameworkAssembly assemblyName="System.Xml.Linq" targetFramework=".NETFramework4.0" />
+        </frameworkAssemblies>
+    </metadata>
+    <files>
+        <file src="..\NuGet\Transforms\*.config.transform" target="content\" />
+    </files>
+</package>