-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nuspec file and surrounding build files for creating a nuget pa…
…ckage
- Loading branch information
Lee Walker
committed
May 12, 2015
1 parent
56f2b37
commit 47c76c3
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
!Artifacts/ | ||
Artifacts/* | ||
!Build/ | ||
Build/* | ||
!packages/ | ||
packages/* | ||
SSQLib/bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>SSQLib</id> | ||
<version>$version$</version> | ||
<title></title> | ||
<authors>Lee Walker, Elliott Spencer</authors> | ||
<owners>Lee Walker</owners> | ||
<licenseUrl>https://github.com/leewalkergm/ssqlib/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>http://leewalkergm.github.io/ssqlib/</projectUrl> | ||
<iconUrl>https://nuget.org/Content/Images/packageDefaultIcon.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>A Source Server Query Library</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright © Lee Walker. All rights reserved.</copyright> | ||
<tags>Source Server Query Library Valve Counterstrike Global Offensive</tags> | ||
</metadata> | ||
<files> | ||
<file src="Artifacts\bin\SSQLib\SSQLib.dll" target="lib\net40\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo Off | ||
set config=%1 | ||
if "%config%" == "" ( | ||
set config=Release | ||
) | ||
|
||
set version=1.0.0 | ||
if not "%PackageVersion%" == "" ( | ||
set version=%PackageVersion% | ||
) | ||
|
||
set nuget= | ||
if "%nuget%" == "" ( | ||
set nuget=nuget | ||
) | ||
|
||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild SSQLib.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false | ||
|
||
mkdir Build | ||
mkdir Build\lib | ||
mkdir Build\lib\net40 | ||
|
||
%nuget% pack "SSQLib.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%" |