commit f5264cdb79bf4843fee3f803308cbb499d9d9441 Author: Tommy Parnell Date: Wed May 21 21:36:16 2014 -0400 init commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f6a9e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,185 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ + +# Roslyn cache directories +*.ide/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +#NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding addin-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +## TODO: Comment the next line if you want to checkin your +## web deploy settings but do note that will include unencrypted +## passwords +*.pubxml + +# NuGet Packages Directory +packages/* +## TODO: If the tool you use requires repositories.config +## uncomment the next line +#!packages/repositories.config + +# Enable "build/" folder in the NuGet Packages folder since +# NuGet packages use it for MSBuild targets. +# This line needs to be after the ignore of the build folder +# (and the packages folder if the line above has been uncommented) +!packages/build/ + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ \ No newline at end of file diff --git a/.nuget/packages.config b/.nuget/packages.config new file mode 100644 index 0000000..f0b15e9 --- /dev/null +++ b/.nuget/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..aba1bc5 --- /dev/null +++ b/Gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +gem 'rake' +gem 'os' +gem 'albacore' +gem 'nokogiri' \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..98574c9 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +## Standard Project + +Nancyfx asp.net hosted project, with self hosted other project. + +## Nuget packages + +*Dapper +*Fluent +*Squishit +*Nancy stuff +*NUnit + + +## This has some basic rake tasks as well for building and what not \ No newline at end of file diff --git a/Rakefile.rb b/Rakefile.rb new file mode 100644 index 0000000..8991c74 --- /dev/null +++ b/Rakefile.rb @@ -0,0 +1,44 @@ +require 'albacore' +require 'open-uri' +require 'fileutils' +require 'os' +require 'nokogiri' +import 'assets/rake/tools.rb' +import 'assets/rake/build.rb' +import 'assets/rake/test.rb' +import 'assets/rake/files.rb' + +BUILD_CONFIG = (ARGV.include?('preflight') || ARGV.include?('fly')) ? 'Release' : (ENV['BUILD_CONFIG'] || 'Debug') +PACKAGES = File.expand_path("packages") +TOOLS = File.expand_path("tools") +NUGET = File.expand_path("#{TOOLS}/NuGet") +NUNIT = File.expand_path("#{PACKAGES}/NUnit.Runners.2.6.3/tools") + + +# + +desc 'Bootstrap, fetch, build, test' +task :preflight => [:nuget, :build, :test ] +desc 'Bootstrap, fetch, build, test,' + +desc 'Build the whole solution' +task :build do + # Use msbuild in .net and xbuild in mono + if OS.windows? + Rake::Task["build:net_clean"].execute + Rake::Task["build:net_build"].execute + else + Rake::Task["build:mon_clean"].execute + Rake::Task["build:mon_build"].execute + end +end + +desc 'Clean build artifacts' +task :clean => ["files:clean_artifacts"] + +desc 'Retrieve nuget dependencies' +task :nuget => ["tools:nuget_fetch"] + +desc 'Run the unit tests' +task :test => "test:unit_tests" + diff --git a/StandardStack.sln b/StandardStack.sln new file mode 100644 index 0000000..064eb4c --- /dev/null +++ b/StandardStack.sln @@ -0,0 +1,87 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandardStack", "src\StandardStack\StandardStack.csproj", "{49961075-4B7B-4DD0-92D9-6135AC58EFDA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandardStack.SelfHost", "src\StandardStack.SelfHost\StandardStack.SelfHost.csproj", "{0DD85688-3051-42C9-BBB3-9EAE9D9B473F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandardStack.UnitTest", "src\StandardStack.UnitTest\StandardStack.UnitTest.csproj", "{4524B74E-C639-43F1-9B29-B3EAFAECC0CE}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{EE358CFC-F149-4F41-A52B-B4933F58CBFC}" + ProjectSection(SolutionItems) = preProject + .nuget\packages.config = .nuget\packages.config + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandardStack.Web", "src\StandardStack.Web\StandardStack.Web.csproj", "{B4F9C525-5C56-440E-B4C2-972A33D7C8CD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandardStack.DbMigration", "src\StandardStack.DbMigration\StandardStack.DbMigration.csproj", "{017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Debug|ARM.ActiveCfg = Debug|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Debug|x64.ActiveCfg = Debug|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Debug|x86.ActiveCfg = Debug|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Release|Any CPU.Build.0 = Release|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Release|ARM.ActiveCfg = Release|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Release|x64.ActiveCfg = Release|Any CPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA}.Release|x86.ActiveCfg = Release|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Debug|ARM.ActiveCfg = Debug|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Debug|x64.ActiveCfg = Debug|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Debug|x86.ActiveCfg = Debug|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Release|Any CPU.Build.0 = Release|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Release|ARM.ActiveCfg = Release|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Release|x64.ActiveCfg = Release|Any CPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F}.Release|x86.ActiveCfg = Release|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Debug|ARM.ActiveCfg = Debug|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Debug|x64.ActiveCfg = Debug|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Debug|x86.ActiveCfg = Debug|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Release|Any CPU.Build.0 = Release|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Release|ARM.ActiveCfg = Release|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Release|x64.ActiveCfg = Release|Any CPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE}.Release|x86.ActiveCfg = Release|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Debug|ARM.ActiveCfg = Debug|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Debug|x64.ActiveCfg = Debug|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Debug|x86.ActiveCfg = Debug|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Release|Any CPU.Build.0 = Release|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Release|ARM.ActiveCfg = Release|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Release|x64.ActiveCfg = Release|Any CPU + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}.Release|x86.ActiveCfg = Release|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Debug|ARM.ActiveCfg = Debug|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Debug|x64.ActiveCfg = Debug|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Debug|x86.ActiveCfg = Debug|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Release|Any CPU.Build.0 = Release|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Release|ARM.ActiveCfg = Release|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Release|x64.ActiveCfg = Release|Any CPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}.Release|x86.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/assets/rake/build.rb b/assets/rake/build.rb new file mode 100644 index 0000000..9b2e3b0 --- /dev/null +++ b/assets/rake/build.rb @@ -0,0 +1,27 @@ +namespace :build do + # Build the solution + msbuild :net_build do |b| + b.verbosity = 'normal' + b.solution = "StandardStack.sln" + b.properties = { :Configuration => BUILD_CONFIG } + end + + xbuild :mon_build do |b| + b.verbosity = 'normal' + b.solution = "StandardStack.sln" + b.properties = { :Configuration => BUILD_CONFIG } + end + + # Clean the solution + msbuild :net_clean do |b| + b.verbosity = 'normal' + b.solution = "StandardStack.sln" + b.targets = [:Clean] + end + + xbuild :mon_clean do |b| + b.verbosity = 'normal' + b.solution = 'StandardStack.sln' + b.targets = [:Clean] + end +end \ No newline at end of file diff --git a/assets/rake/files.rb b/assets/rake/files.rb new file mode 100644 index 0000000..fe31f54 --- /dev/null +++ b/assets/rake/files.rb @@ -0,0 +1,9 @@ +namespace :files do + task :clean_artifacts do + puts 'Deleting all build artifacts from src/**/bin and src/**/obj. Removing output directory.' + + + FileUtils.rm_r Dir.glob("src/**/bin") + FileUtils.rm_r Dir.glob("src/**/obj") + end +end \ No newline at end of file diff --git a/assets/rake/test.rb b/assets/rake/test.rb new file mode 100644 index 0000000..2eba538 --- /dev/null +++ b/assets/rake/test.rb @@ -0,0 +1,9 @@ +namespace :test do + # Run unit tests with nunit + nunit :unit_tests do |cmd| + cmd.command = "#{NUNIT}/nunit-console.exe" + cmd.assemblies = FileList[Dir.glob("src/*.UnitTest/bin/#{BUILD_CONFIG}/*UnitTest.dll")] + #cmd.result_path = "output/tests" + #cmd.no_logo + end +end \ No newline at end of file diff --git a/assets/rake/tools.rb b/assets/rake/tools.rb new file mode 100644 index 0000000..9e94cf1 --- /dev/null +++ b/assets/rake/tools.rb @@ -0,0 +1,33 @@ +namespace :tools do + + # If we don't have a copy of nuget, download it + task :nuget_bootstrap do + puts 'Ensuring NuGet exists in tools/NuGet' + + if !FileTest.exist?("#{NUGET}/nuget.exe") + puts 'Downloading nuget from nuget.org' + + FileUtils.mkdir_p("#{NUGET}") + File.open("#{NUGET}/nuget.exe", "wb") do |file| + file.write open('http://nuget.org/nuget.exe').read + end + end + end + + # Fetch nuget dependencies for all packages + task :nuget_fetch => :nuget_bootstrap do + + # If we aren't running under windows, assume we're using mono + CMD_PREFIX = "" + if !OS.windows? + CMD_PREFIX = "mono" + end + + # Make sure we get solution-level deps + sh "#{CMD_PREFIX} #{NUGET}/nuget.exe i .nuget/packages.config -o packages" + + FileList["**/packages.config"].each { |filepath| + sh "#{CMD_PREFIX} #{NUGET}/nuget.exe i #{filepath} -o packages" + } + end +end \ No newline at end of file diff --git a/src/Gemfile b/src/Gemfile new file mode 100644 index 0000000..aba1bc5 --- /dev/null +++ b/src/Gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +gem 'rake' +gem 'os' +gem 'albacore' +gem 'nokogiri' \ No newline at end of file diff --git a/src/Rakefile.rb b/src/Rakefile.rb new file mode 100644 index 0000000..8991c74 --- /dev/null +++ b/src/Rakefile.rb @@ -0,0 +1,44 @@ +require 'albacore' +require 'open-uri' +require 'fileutils' +require 'os' +require 'nokogiri' +import 'assets/rake/tools.rb' +import 'assets/rake/build.rb' +import 'assets/rake/test.rb' +import 'assets/rake/files.rb' + +BUILD_CONFIG = (ARGV.include?('preflight') || ARGV.include?('fly')) ? 'Release' : (ENV['BUILD_CONFIG'] || 'Debug') +PACKAGES = File.expand_path("packages") +TOOLS = File.expand_path("tools") +NUGET = File.expand_path("#{TOOLS}/NuGet") +NUNIT = File.expand_path("#{PACKAGES}/NUnit.Runners.2.6.3/tools") + + +# + +desc 'Bootstrap, fetch, build, test' +task :preflight => [:nuget, :build, :test ] +desc 'Bootstrap, fetch, build, test,' + +desc 'Build the whole solution' +task :build do + # Use msbuild in .net and xbuild in mono + if OS.windows? + Rake::Task["build:net_clean"].execute + Rake::Task["build:net_build"].execute + else + Rake::Task["build:mon_clean"].execute + Rake::Task["build:mon_build"].execute + end +end + +desc 'Clean build artifacts' +task :clean => ["files:clean_artifacts"] + +desc 'Retrieve nuget dependencies' +task :nuget => ["tools:nuget_fetch"] + +desc 'Run the unit tests' +task :test => "test:unit_tests" + diff --git a/src/StandardStack.DbMigration/Class1.cs b/src/StandardStack.DbMigration/Class1.cs new file mode 100644 index 0000000..893ac59 --- /dev/null +++ b/src/StandardStack.DbMigration/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StandardStack.DbMigration +{ + public class Class1 + { + } +} diff --git a/src/StandardStack.DbMigration/Properties/AssemblyInfo.cs b/src/StandardStack.DbMigration/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2f76423 --- /dev/null +++ b/src/StandardStack.DbMigration/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("StandardStack.DbMigration")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StandardStack.DbMigration")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("df966bda-800e-43e0-9420-71cedc907a0d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/StandardStack.DbMigration/StandardStack.DbMigration.csproj b/src/StandardStack.DbMigration/StandardStack.DbMigration.csproj new file mode 100644 index 0000000..fcd4bab --- /dev/null +++ b/src/StandardStack.DbMigration/StandardStack.DbMigration.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {017AC4C0-7BF8-4113-9E41-ADBD6A8B325B} + Library + Properties + StandardStack.DbMigration + StandardStack.DbMigration + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\packages\FluentMigrator.1.1.2.1\lib\40\FluentMigrator.dll + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.DbMigration/packages.config b/src/StandardStack.DbMigration/packages.config new file mode 100644 index 0000000..bfca70c --- /dev/null +++ b/src/StandardStack.DbMigration/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/StandardStack.SelfHost/Program.cs b/src/StandardStack.SelfHost/Program.cs new file mode 100644 index 0000000..beeabf4 --- /dev/null +++ b/src/StandardStack.SelfHost/Program.cs @@ -0,0 +1,23 @@ +namespace StandardStack.SelfHost +{ + using System; + using Nancy.Hosting.Self; + + class Program + { + static void Main(string[] args) + { + var uri = + new Uri("http://localhost:3579"); + + using (var host = new NancyHost(uri)) + { + host.Start(); + + Console.WriteLine("Your application is running on " + uri); + Console.WriteLine("Press any [Enter] to close the host."); + Console.ReadLine(); + } + } + } +} diff --git a/src/StandardStack.SelfHost/Properties/AssemblyInfo.cs b/src/StandardStack.SelfHost/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..561e201 --- /dev/null +++ b/src/StandardStack.SelfHost/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("StandardStack.SelfHost")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StandardStack.SelfHost")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6a86462d-b2a5-4995-8092-47b52745611b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/StandardStack.SelfHost/StandardStack.SelfHost.csproj b/src/StandardStack.SelfHost/StandardStack.SelfHost.csproj new file mode 100644 index 0000000..ab84194 --- /dev/null +++ b/src/StandardStack.SelfHost/StandardStack.SelfHost.csproj @@ -0,0 +1,85 @@ + + + + + Debug + AnyCPU + {0DD85688-3051-42C9-BBB3-9EAE9D9B473F} + Exe + Properties + StandardStack.SelfHost + StandardStack.SelfHost + v4.5 + 512 + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + ..\..\packages\Nancy.0.22.2\lib\net40\Nancy.dll + + + ..\..\packages\Nancy.Hosting.Self.0.22.2\lib\net40\Nancy.Hosting.Self.dll + + + ..\..\packages\Nancy.Viewengines.Razor.0.22.2\lib\net40\Nancy.ViewEngines.Razor.dll + + + + + + ..\..\packages\System.Web.Razor.Unofficial.2.0.2\lib\net40\System.Web.Razor.Unofficial.dll + + + + + + + + + + + + + + + {b4f9c525-5c56-440e-b4c2-972a33d7c8cd} + StandardStack.Web + + + + + +if $(ConfigurationName) == Debug ( +xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.22.2\BuildProviders\Nancy.ViewEngines.Razor.BuildProviders.dll" "$(ProjectDir)bin\" +xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.22.2\lib\Net40\Nancy.ViewEngines.Razor.dll" "$(ProjectDir)bin\" +) + + + \ No newline at end of file diff --git a/src/StandardStack.SelfHost/app.config b/src/StandardStack.SelfHost/app.config new file mode 100644 index 0000000..a3d778f --- /dev/null +++ b/src/StandardStack.SelfHost/app.config @@ -0,0 +1,20 @@ + + + + +
+ + + + + + + + + + + + + + + diff --git a/src/StandardStack.SelfHost/packages.config b/src/StandardStack.SelfHost/packages.config new file mode 100644 index 0000000..d70fad3 --- /dev/null +++ b/src/StandardStack.SelfHost/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.SelfHost/web.config b/src/StandardStack.SelfHost/web.config new file mode 100644 index 0000000..7fdb85f --- /dev/null +++ b/src/StandardStack.SelfHost/web.config @@ -0,0 +1,25 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.UnitTest/Class1.cs b/src/StandardStack.UnitTest/Class1.cs new file mode 100644 index 0000000..7af8ef7 --- /dev/null +++ b/src/StandardStack.UnitTest/Class1.cs @@ -0,0 +1,19 @@ +using NUnit.Framework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StandardStack.UnitTest +{ + [TestFixture] + public class Class1 + { + [Test] + public void Victory() + { + Assert.Pass(); + } + } +} diff --git a/src/StandardStack.UnitTest/Properties/AssemblyInfo.cs b/src/StandardStack.UnitTest/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d4e8657 --- /dev/null +++ b/src/StandardStack.UnitTest/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("StandardStack.UnitTest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StandardStack.UnitTest")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("bec8b3b4-1b9b-4db2-8d25-c61115505f52")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/StandardStack.UnitTest/StandardStack.UnitTest.csproj b/src/StandardStack.UnitTest/StandardStack.UnitTest.csproj new file mode 100644 index 0000000..2616d8e --- /dev/null +++ b/src/StandardStack.UnitTest/StandardStack.UnitTest.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {4524B74E-C639-43F1-9B29-B3EAFAECC0CE} + Library + Properties + StandardStack.UnitTest + StandardStack.UnitTest + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.UnitTest/packages.config b/src/StandardStack.UnitTest/packages.config new file mode 100644 index 0000000..d4e241a --- /dev/null +++ b/src/StandardStack.UnitTest/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/StandardStack.Web/Bootstrapper.cs b/src/StandardStack.Web/Bootstrapper.cs new file mode 100644 index 0000000..f3fe786 --- /dev/null +++ b/src/StandardStack.Web/Bootstrapper.cs @@ -0,0 +1,11 @@ +namespace StandardStack.Web +{ + using Nancy; + + public class Bootstrapper : DefaultNancyBootstrapper + { + // The bootstrapper enables you to reconfigure the composition of the framework, + // by overriding the various methods and properties. + // For more information https://github.com/NancyFx/Nancy/wiki/Bootstrapper + } +} \ No newline at end of file diff --git a/src/StandardStack.Web/Content/nancy-logo.png b/src/StandardStack.Web/Content/nancy-logo.png new file mode 100644 index 0000000..1a64081 Binary files /dev/null and b/src/StandardStack.Web/Content/nancy-logo.png differ diff --git a/src/StandardStack.Web/IndexModule.cs b/src/StandardStack.Web/IndexModule.cs new file mode 100644 index 0000000..9b31c95 --- /dev/null +++ b/src/StandardStack.Web/IndexModule.cs @@ -0,0 +1,15 @@ +namespace StandardStack.Web +{ + using Nancy; + + public class IndexModule : NancyModule + { + public IndexModule() + { + Get["/"] = parameters => + { + return View["index"]; + }; + } + } +} \ No newline at end of file diff --git a/src/StandardStack.Web/Properties/AssemblyInfo.cs b/src/StandardStack.Web/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f1057ec --- /dev/null +++ b/src/StandardStack.Web/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("StandardStack.Web")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StandardStack.Web")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b9962103-4f11-4632-8c83-80174582aafb")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/StandardStack.Web/StandardStack.Web.csproj b/src/StandardStack.Web/StandardStack.Web.csproj new file mode 100644 index 0000000..1c87f51 --- /dev/null +++ b/src/StandardStack.Web/StandardStack.Web.csproj @@ -0,0 +1,143 @@ + + + + + Debug + AnyCPU + + + 2.0 + {B4F9C525-5C56-440E-B4C2-972A33D7C8CD} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + StandardStack.Web + StandardStack.Web + v4.5 + true + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\ + TRACE + prompt + 4 + false + + + + ..\..\packages\AjaxMin.4.48.4489.28432\lib\net20\AjaxMin.dll + + + ..\..\packages\YUICompressor.NET.2.0.0.0\lib\NET20\EcmaScript.NET.dll + + + ..\..\packages\YUICompressor.NET.2.0.0.0\lib\NET20\Iesi.Collections.dll + + + + False + ..\..\packages\Nancy.0.22.2\lib\net40\Nancy.dll + + + False + ..\..\packages\Nancy.Hosting.Aspnet.0.22.2\lib\net40\Nancy.Hosting.Aspnet.dll + + + False + ..\..\packages\Nancy.Viewengines.Razor.0.22.2\lib\net40\Nancy.ViewEngines.Razor.dll + + + ..\..\packages\SquishIt.0.9.5.1\lib\SquishIt.Framework.dll + + + + + + + + + ..\..\packages\System.Web.Razor.Unofficial.2.0.2\lib\net40\System.Web.Razor.Unofficial.dll + + + + + + + ..\..\packages\YUICompressor.NET.2.0.0.0\lib\NET20\Yahoo.Yui.Compressor.dll + + + + + + + + + + + + + + + + Web.config + + + Web.config + + + + + + + + + + + + + True + True + 0 + / + http://localhost:12116/ + False + False + + + False + + + + + + +if $(ConfigurationName) == Debug ( +xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.22.2\BuildProviders\Nancy.ViewEngines.Razor.BuildProviders.dll" "$(ProjectDir)bin\" +xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.22.2\lib\Net40\Nancy.ViewEngines.Razor.dll" "$(ProjectDir)bin\" +) + + + \ No newline at end of file diff --git a/src/StandardStack.Web/Views/index.cshtml b/src/StandardStack.Web/Views/index.cshtml new file mode 100644 index 0000000..fa5b994 --- /dev/null +++ b/src/StandardStack.Web/Views/index.cshtml @@ -0,0 +1,20 @@ + + + + + StandardStack.Web + + + + + + Nancy logo
+ This view was rendered using the Nancy Razor view engine + + diff --git a/src/StandardStack.Web/Web.Debug.config b/src/StandardStack.Web/Web.Debug.config new file mode 100644 index 0000000..24f336c --- /dev/null +++ b/src/StandardStack.Web/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.Web/Web.Release.config b/src/StandardStack.Web/Web.Release.config new file mode 100644 index 0000000..a657981 --- /dev/null +++ b/src/StandardStack.Web/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.Web/Web.config b/src/StandardStack.Web/Web.config new file mode 100644 index 0000000..1a37dda --- /dev/null +++ b/src/StandardStack.Web/Web.config @@ -0,0 +1,49 @@ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack.Web/packages.config b/src/StandardStack.Web/packages.config new file mode 100644 index 0000000..7222490 --- /dev/null +++ b/src/StandardStack.Web/packages.config @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack/Class1.cs b/src/StandardStack/Class1.cs new file mode 100644 index 0000000..f2d59fb --- /dev/null +++ b/src/StandardStack/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StandardStack +{ + public class Class1 + { + } +} diff --git a/src/StandardStack/Properties/AssemblyInfo.cs b/src/StandardStack/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a962827 --- /dev/null +++ b/src/StandardStack/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("StandardStack")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StandardStack")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d8d35b18-2a05-4f14-92cf-d681a99d8e62")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/StandardStack/StandardStack.csproj b/src/StandardStack/StandardStack.csproj new file mode 100644 index 0000000..7dc2dda --- /dev/null +++ b/src/StandardStack/StandardStack.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {49961075-4B7B-4DD0-92D9-6135AC58EFDA} + Library + Properties + StandardStack + StandardStack + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\packages\Dapper.1.25\lib\net45\Dapper.dll + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/StandardStack/packages.config b/src/StandardStack/packages.config new file mode 100644 index 0000000..217d77e --- /dev/null +++ b/src/StandardStack/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/tools/NuGet/nuget.exe b/tools/NuGet/nuget.exe new file mode 100644 index 0000000..3ffdd33 Binary files /dev/null and b/tools/NuGet/nuget.exe differ