Skip to content

Commit 9061357

Browse files
author
azizatif
committed
Closes issue #22 (NuGet packaging)
1 parent 155c6e9 commit 9061357

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

pack.cmd

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
setlocal
3+
chcp 1252
4+
pushd "%~dp0"
5+
if not exist dist md dist
6+
if not %errorlevel%==0 exit /b %errorlevel%
7+
call :packlib && call :packcs
8+
goto :EOF
9+
10+
:packlib
11+
call build /v:m && call :pack LinqBridge
12+
goto :EOF
13+
14+
:packcs
15+
call onefile > dist\LinqBridge.cs && call :pack LinqBridge.Embedded
16+
goto :EOF
17+
18+
:pack
19+
tools\NuGet pack pkg\%1.nuspec -OutputDirectory dist
20+
goto :EOF

packw.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
call "%~dp0pack" %*
3+
pause

pkg/LinqBridge.Embedded.nuspec

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<version>1.3.0</version>
5+
<authors>Atif Aziz</authors>
6+
<owners>Atif Aziz, Joseph Albahari</owners>
7+
<licenseUrl>http://www.opensource.org/licenses/bsd-license.php</licenseUrl>
8+
<projectUrl>http://linqbridge.googlecode.com/</projectUrl>
9+
<id>LinqBridge.Embedded</id>
10+
<title>LINQBridge (Embedded)</title>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<summary>LINQ to Objects for .NET Framework 2.0 as a single C# 4.0 file for embedded scenarios</summary>
13+
<description>With Visual Studio's multi-targeting and LINQBridge, you can write LINQ to Objects (local) queries using the full power of the C# 4.0 compiler and yet create programs that require only Microsoft .NET Framework 2.0. LINQBridge is a re-implementation of all the standard query operators introduced with Microsoft .NET Framework 3.5's System.Linq.Enumerable class.</description>
14+
<copyright>Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.</copyright>
15+
<tags>linq</tags>
16+
</metadata>
17+
<files>
18+
<file src="..\dist\LinqBridge.cs" target="content\LinqBridge.cs" />
19+
</files>
20+
</package>

pkg/LinqBridge.nuspec

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<version>1.3.0</version>
5+
<authors>Atif Aziz</authors>
6+
<owners>Atif Aziz, Joseph Albahari</owners>
7+
<licenseUrl>http://www.opensource.org/licenses/bsd-license.php</licenseUrl>
8+
<projectUrl>http://linqbridge.googlecode.com/</projectUrl>
9+
<id>LinqBridge</id>
10+
<title>LINQBridge</title>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<summary>LINQ to Objects for .NET Framework 2.0</summary>
13+
<description>With Visual Studio's multi-targeting and LINQBridge, you can write LINQ to Objects (local) queries using the full power of the C# 3.0 compiler and yet create programs that require only Microsoft .NET Framework 2.0. LINQBridge is a re-implementation of all the standard query operators introduced with Microsoft .NET Framework 3.5's System.Linq.Enumerable class.</description>
14+
<copyright>Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.</copyright>
15+
<tags>linq</tags>
16+
</metadata>
17+
<files>
18+
<file src="..\COPYING.txt" target="COPYING.txt" />
19+
<file src="..\bin\Release\LinqBridge.dll" target="lib\net20\LinqBridge.dll" />
20+
</files>
21+
</package>

0 commit comments

Comments
 (0)