Skip to content

Commit

Permalink
+ NuGet package contains $rootnamespace$
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Jan 25, 2012
1 parent 73c09a4 commit 8efd89f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ lint.db

# Misc Ignores
Thumbs.db
!libs/*/[Bb]in/
packages/
dist/
dist/
working/
7 changes: 6 additions & 1 deletion Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var helper = {},
task('default', ['dist']);

directory('dist/');
directory('working/');

desc('build')
task('build', function () {
Expand Down Expand Up @@ -37,7 +38,11 @@ task('clean', function () {
namespace('nuget', function () {

desc('create nuget package');
task('pack', ['dist/'], function () {
task('pack', ['working/', 'dist/'], function () {
var file = fs
.readFileSync(path.join(root, 'src/CombinationStream-Net20/CombinationStream.cs'), 'utf-8')
.replace('namespace CombinationStream', 'namespace $rootnamespace$');
fs.writeFileSync(path.join(root, 'working/CombinationStream.cs.pp'), file);
helper.exec(path.join(root, 'src/packages/NuGet.CommandLine.' + nugetVersion, 'tools/NuGet.exe'), [
'pack',
path.join(root, 'src/CombinationStream.nuspec'),
Expand Down
2 changes: 2 additions & 0 deletions src/CombinationStream-Net20.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{8EDEB5
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2AD82F0F-B645-445E-9842-44C04A4B39EA}"
ProjectSection(SolutionItems) = preProject
CombinationStream.nuspec = CombinationStream.nuspec
..\Jakefile = ..\Jakefile
..\VERSION = ..\VERSION
EndProjectSection
EndProject
Global
Expand Down
2 changes: 1 addition & 1 deletion src/CombinationStream.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<tags>stream web REST HTTP API wrapper</tags>
</metadata>
<files>
<file src="CombinationStream-Net20\CombinationStream.cs" target = "content\CombinationStream.cs" />
<file src="..\Working\CombinationStream.cs.pp" target = "content\CombinationStream.cs.pp" />
</files>
</package>

0 comments on commit 8efd89f

Please sign in to comment.