Permalink
Browse files

moving things around and creating a super simple build

  • Loading branch information...
1 parent 34466a4 commit 8b6849cdbc99b36a3e84de104171e27e27003f71 @ferventcoder ferventcoder committed Aug 3, 2011
View
@@ -2,6 +2,7 @@
.hg
build_output
code_drop
+_packaged_output
[Bb]in
obj
_ReSharper.*
View
@@ -0,0 +1,10 @@
+@echo off
+
+SET MSBUILD="%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
+%MSBUILD% build.proj /v:normal /nologo /clp:Summary;ShowTimestamp
+if %ERRORLEVEL% NEQ 0 goto errors
+
+goto :eof
+
+:errors
+EXIT /B %ERRORLEVEL%
View
@@ -0,0 +1,46 @@
+<Project ToolsVersion="4.0"
+ DefaultTargets="Go"
+ xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!--Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /-->
+ <PropertyGroup>
+ <GoDependsOn>PrepareNuGetFiles;Package</GoDependsOn>
+ <Configuration>Release</Configuration>
+ <Platform>Any CPU</Platform>
+ <BuildDirectory>_packaged_output\</BuildDirectory>
+ <BuildPath>$(MSBuildProjectDirectory)\$(BuildDirectory)</BuildPath>
+ <NuGetDirectory>$(MSBuildProjectDirectory)\nuget</NuGetDirectory>
+ <NuGetFilesDirectory>$(MSBuildProjectDirectory)\src</NuGetFilesDirectory>
+ </PropertyGroup>
+
+ <Target Name="Go" DependsOnTargets="$(GoDependsOn)" />
+
+ <Target Name="PrepareNuGetFiles">
+ <ItemGroup>
+ <NuGetFiles Include="$(NuGetDirectory)\**\*" />
+ <NuGetFilesToPack Include="$(NuGetFilesDirectory)\**\*" />
+ </ItemGroup>
+ <Copy SourceFiles="@(NuGetFiles)"
+ DestinationFiles="@(NuGetFiles->'$(BuildPath)\nuget\%(RecursiveDir)%(Filename)%(Extension)')"
+ Retries="3"
+ RetryDelayMilliseconds="300"
+ />
+ <Copy SourceFiles="@(NuGetFilesToPack)"
+ DestinationFiles="@(NuGetFilesToPack->'$(BuildPath)\nuget\tools\chocolateyInstall\%(RecursiveDir)%(Filename)%(Extension)')"
+ Retries="3"
+ RetryDelayMilliseconds="300"
+ />
+ </Target>
+
+ <Target Name="Package">
+ <ItemGroup>
+ <NuspecFiles Include="$(BuildPath)**\*nuspec" />
+ <FilesToDelete Exclude="$(BuildPath)\**\*.nupkg" Include="$(BuildPath)\**\*" />
+ <DirectoriesToDelete Include="$(BuildPath)\nuget" />
+ </ItemGroup>
+ <Exec Command="nuget pack %(NuspecFiles.FullPath)" WorkingDirectory="$(BuildPath)" />
+
+ <Delete Files="@(FilesToDelete)" />
+ <RemoveDir Directories="@(DirectoriesToDelete)" />
+ </Target>
+
+</Project>
View
@@ -0,0 +1,13 @@
+ Copyright 2011 Rob Reynolds
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
View
Binary file not shown.
File renamed without changes.
Oops, something went wrong.

0 comments on commit 8b6849c

Please sign in to comment.