init commit
This commit is contained in:
185
.gitignore
vendored
Normal file
185
.gitignore
vendored
Normal file
@@ -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/
|
||||||
4
.nuget/packages.config
Normal file
4
.nuget/packages.config
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="NUnit.Runners" version="2.6.3" />
|
||||||
|
</packages>
|
||||||
6
Gemfile
Normal file
6
Gemfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
gem 'rake'
|
||||||
|
gem 'os'
|
||||||
|
gem 'albacore'
|
||||||
|
gem 'nokogiri'
|
||||||
14
README.md
Normal file
14
README.md
Normal file
@@ -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
|
||||||
44
Rakefile.rb
Normal file
44
Rakefile.rb
Normal file
@@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
#<runnable tasks>
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
87
StandardStack.sln
Normal file
87
StandardStack.sln
Normal file
@@ -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
|
||||||
27
assets/rake/build.rb
Normal file
27
assets/rake/build.rb
Normal file
@@ -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
|
||||||
9
assets/rake/files.rb
Normal file
9
assets/rake/files.rb
Normal file
@@ -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
|
||||||
9
assets/rake/test.rb
Normal file
9
assets/rake/test.rb
Normal file
@@ -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
|
||||||
33
assets/rake/tools.rb
Normal file
33
assets/rake/tools.rb
Normal file
@@ -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
|
||||||
6
src/Gemfile
Normal file
6
src/Gemfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
gem 'rake'
|
||||||
|
gem 'os'
|
||||||
|
gem 'albacore'
|
||||||
|
gem 'nokogiri'
|
||||||
44
src/Rakefile.rb
Normal file
44
src/Rakefile.rb
Normal file
@@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
#<runnable tasks>
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
12
src/StandardStack.DbMigration/Class1.cs
Normal file
12
src/StandardStack.DbMigration/Class1.cs
Normal file
@@ -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
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
36
src/StandardStack.DbMigration/Properties/AssemblyInfo.cs
Normal file
36
src/StandardStack.DbMigration/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{017AC4C0-7BF8-4113-9E41-ADBD6A8B325B}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>StandardStack.DbMigration</RootNamespace>
|
||||||
|
<AssemblyName>StandardStack.DbMigration</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="FluentMigrator">
|
||||||
|
<HintPath>..\..\packages\FluentMigrator.1.1.2.1\lib\40\FluentMigrator.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Class1.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
4
src/StandardStack.DbMigration/packages.config
Normal file
4
src/StandardStack.DbMigration/packages.config
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="FluentMigrator" version="1.1.2.1" targetFramework="net45" />
|
||||||
|
</packages>
|
||||||
23
src/StandardStack.SelfHost/Program.cs
Normal file
23
src/StandardStack.SelfHost/Program.cs
Normal file
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
35
src/StandardStack.SelfHost/Properties/AssemblyInfo.cs
Normal file
35
src/StandardStack.SelfHost/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||||
85
src/StandardStack.SelfHost/StandardStack.SelfHost.csproj
Normal file
85
src/StandardStack.SelfHost/StandardStack.SelfHost.csproj
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{0DD85688-3051-42C9-BBB3-9EAE9D9B473F}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>StandardStack.SelfHost</RootNamespace>
|
||||||
|
<AssemblyName>StandardStack.SelfHost</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Nancy">
|
||||||
|
<HintPath>..\..\packages\Nancy.0.22.2\lib\net40\Nancy.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Nancy.Hosting.Self">
|
||||||
|
<HintPath>..\..\packages\Nancy.Hosting.Self.0.22.2\lib\net40\Nancy.Hosting.Self.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Nancy.ViewEngines.Razor">
|
||||||
|
<HintPath>..\..\packages\Nancy.Viewengines.Razor.0.22.2\lib\net40\Nancy.ViewEngines.Razor.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Web.Razor.Unofficial">
|
||||||
|
<HintPath>..\..\packages\System.Web.Razor.Unofficial.2.0.2\lib\net40\System.Web.Razor.Unofficial.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="app.config" />
|
||||||
|
<None Include="packages.config" />
|
||||||
|
<None Include="web.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\StandardStack.Web\StandardStack.Web.csproj">
|
||||||
|
<Project>{b4f9c525-5c56-440e-b4c2-972a33d7c8cd}</Project>
|
||||||
|
<Name>StandardStack.Web</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>
|
||||||
|
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\"
|
||||||
|
)</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
20
src/StandardStack.SelfHost/app.config
Normal file
20
src/StandardStack.SelfHost/app.config
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||||
|
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup><appSettings>
|
||||||
|
<add key="webPages:Enabled" value="false" />
|
||||||
|
</appSettings><system.web.webPages.razor>
|
||||||
|
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
|
||||||
|
<namespaces>
|
||||||
|
<add namespace="Nancy.ViewEngines.Razor" />
|
||||||
|
</namespaces>
|
||||||
|
</pages>
|
||||||
|
</system.web.webPages.razor></configuration>
|
||||||
7
src/StandardStack.SelfHost/packages.config
Normal file
7
src/StandardStack.SelfHost/packages.config
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Nancy" version="0.22.2" targetFramework="net45" />
|
||||||
|
<package id="Nancy.Hosting.Self" version="0.22.2" targetFramework="net45" />
|
||||||
|
<package id="Nancy.Viewengines.Razor" version="0.22.2" targetFramework="net45" />
|
||||||
|
<package id="System.Web.Razor.Unofficial" version="2.0.2" targetFramework="net45" />
|
||||||
|
</packages>
|
||||||
25
src/StandardStack.SelfHost/web.config
Normal file
25
src/StandardStack.SelfHost/web.config
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||||
|
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
<appSettings>
|
||||||
|
<add key="webPages:Enabled" value="false" />
|
||||||
|
</appSettings>
|
||||||
|
<system.web>
|
||||||
|
<compilation>
|
||||||
|
<buildProviders>
|
||||||
|
<add extension=".cshtml" type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
|
||||||
|
<add extension=".vbhtml" type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
|
||||||
|
</buildProviders>
|
||||||
|
</compilation>
|
||||||
|
</system.web>
|
||||||
|
<system.web.webPages.razor>
|
||||||
|
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
|
||||||
|
<namespaces>
|
||||||
|
<add namespace="Nancy.ViewEngines.Razor" />
|
||||||
|
</namespaces>
|
||||||
|
</pages>
|
||||||
|
</system.web.webPages.razor>
|
||||||
|
</configuration>
|
||||||
19
src/StandardStack.UnitTest/Class1.cs
Normal file
19
src/StandardStack.UnitTest/Class1.cs
Normal file
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
src/StandardStack.UnitTest/Properties/AssemblyInfo.cs
Normal file
36
src/StandardStack.UnitTest/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||||
60
src/StandardStack.UnitTest/StandardStack.UnitTest.csproj
Normal file
60
src/StandardStack.UnitTest/StandardStack.UnitTest.csproj
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{4524B74E-C639-43F1-9B29-B3EAFAECC0CE}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>StandardStack.UnitTest</RootNamespace>
|
||||||
|
<AssemblyName>StandardStack.UnitTest</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Class1.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
4
src/StandardStack.UnitTest/packages.config
Normal file
4
src/StandardStack.UnitTest/packages.config
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="NUnit" version="2.6.3" targetFramework="net45" />
|
||||||
|
</packages>
|
||||||
11
src/StandardStack.Web/Bootstrapper.cs
Normal file
11
src/StandardStack.Web/Bootstrapper.cs
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
src/StandardStack.Web/Content/nancy-logo.png
Normal file
BIN
src/StandardStack.Web/Content/nancy-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
15
src/StandardStack.Web/IndexModule.cs
Normal file
15
src/StandardStack.Web/IndexModule.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
namespace StandardStack.Web
|
||||||
|
{
|
||||||
|
using Nancy;
|
||||||
|
|
||||||
|
public class IndexModule : NancyModule
|
||||||
|
{
|
||||||
|
public IndexModule()
|
||||||
|
{
|
||||||
|
Get["/"] = parameters =>
|
||||||
|
{
|
||||||
|
return View["index"];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
35
src/StandardStack.Web/Properties/AssemblyInfo.cs
Normal file
35
src/StandardStack.Web/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||||
143
src/StandardStack.Web/StandardStack.Web.csproj
Normal file
143
src/StandardStack.Web/StandardStack.Web.csproj
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProductVersion>
|
||||||
|
</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{B4F9C525-5C56-440E-B4C2-972A33D7C8CD}</ProjectGuid>
|
||||||
|
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>StandardStack.Web</RootNamespace>
|
||||||
|
<AssemblyName>StandardStack.Web</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<UseIISExpress>true</UseIISExpress>
|
||||||
|
<IISExpressSSLPort />
|
||||||
|
<IISExpressAnonymousAuthentication />
|
||||||
|
<IISExpressWindowsAuthentication />
|
||||||
|
<IISExpressUseClassicPipelineMode />
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="AjaxMin">
|
||||||
|
<HintPath>..\..\packages\AjaxMin.4.48.4489.28432\lib\net20\AjaxMin.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="EcmaScript.NET">
|
||||||
|
<HintPath>..\..\packages\YUICompressor.NET.2.0.0.0\lib\NET20\EcmaScript.NET.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Iesi.Collections">
|
||||||
|
<HintPath>..\..\packages\YUICompressor.NET.2.0.0.0\lib\NET20\Iesi.Collections.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="Nancy, Version=0.22.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\packages\Nancy.0.22.2\lib\net40\Nancy.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Nancy.Hosting.Aspnet, Version=0.22.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\packages\Nancy.Hosting.Aspnet.0.22.2\lib\net40\Nancy.Hosting.Aspnet.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Nancy.ViewEngines.Razor, Version=0.22.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\packages\Nancy.Viewengines.Razor.0.22.2\lib\net40\Nancy.ViewEngines.Razor.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="SquishIt.Framework">
|
||||||
|
<HintPath>..\..\packages\SquishIt.0.9.5.1\lib\SquishIt.Framework.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="System.Web.ApplicationServices" />
|
||||||
|
<Reference Include="System.Web.DynamicData" />
|
||||||
|
<Reference Include="System.Web.Entity" />
|
||||||
|
<Reference Include="System.Web.Extensions" />
|
||||||
|
<Reference Include="System.Web.Razor.Unofficial">
|
||||||
|
<HintPath>..\..\packages\System.Web.Razor.Unofficial.2.0.2\lib\net40\System.Web.Razor.Unofficial.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Web" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Configuration" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="Yahoo.Yui.Compressor">
|
||||||
|
<HintPath>..\..\packages\YUICompressor.NET.2.0.0.0\lib\NET20\Yahoo.Yui.Compressor.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Content\nancy-logo.png" />
|
||||||
|
<Content Include="Web.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Bootstrapper.cs" />
|
||||||
|
<Compile Include="IndexModule.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="packages.config" />
|
||||||
|
<Content Include="Views\index.cshtml" />
|
||||||
|
<None Include="Web.Debug.config">
|
||||||
|
<DependentUpon>Web.config</DependentUpon>
|
||||||
|
</None>
|
||||||
|
<None Include="Web.Release.config">
|
||||||
|
<DependentUpon>Web.config</DependentUpon>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
<PropertyGroup>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
|
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||||
|
<ProjectExtensions>
|
||||||
|
<VisualStudio>
|
||||||
|
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||||
|
<WebProjectProperties>
|
||||||
|
<UseIIS>True</UseIIS>
|
||||||
|
<AutoAssignPort>True</AutoAssignPort>
|
||||||
|
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||||
|
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||||
|
<IISUrl>http://localhost:12116/</IISUrl>
|
||||||
|
<NTLMAuthentication>False</NTLMAuthentication>
|
||||||
|
<UseCustomServer>False</UseCustomServer>
|
||||||
|
<CustomServerUrl>
|
||||||
|
</CustomServerUrl>
|
||||||
|
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||||
|
</WebProjectProperties>
|
||||||
|
</FlavorProperties>
|
||||||
|
</VisualStudio>
|
||||||
|
</ProjectExtensions>
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>
|
||||||
|
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\"
|
||||||
|
)</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
20
src/StandardStack.Web/Views/index.cshtml
Normal file
20
src/StandardStack.Web/Views/index.cshtml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>StandardStack.Web</title>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
|
||||||
|
body {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<img src="~/Content/nancy-logo.png" alt="Nancy logo" /><br />
|
||||||
|
This view was rendered using the Nancy Razor view engine
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
30
src/StandardStack.Web/Web.Debug.config
Normal file
30
src/StandardStack.Web/Web.Debug.config
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||||
|
|
||||||
|
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||||
|
<!--
|
||||||
|
In the example below, the "SetAttributes" transform will change the value of
|
||||||
|
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||||
|
finds an attribute "name" that has a value of "MyDB".
|
||||||
|
|
||||||
|
<connectionStrings>
|
||||||
|
<add name="MyDB"
|
||||||
|
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||||
|
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
|
</connectionStrings>
|
||||||
|
-->
|
||||||
|
<system.web>
|
||||||
|
<!--
|
||||||
|
In the example below, the "Replace" transform will replace the entire
|
||||||
|
<customErrors> section of your web.config file.
|
||||||
|
Note that because there is only one customErrors section under the
|
||||||
|
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||||
|
|
||||||
|
<customErrors defaultRedirect="GenericError.htm"
|
||||||
|
mode="RemoteOnly" xdt:Transform="Replace">
|
||||||
|
<error statusCode="500" redirect="InternalError.htm"/>
|
||||||
|
</customErrors>
|
||||||
|
-->
|
||||||
|
</system.web>
|
||||||
|
</configuration>
|
||||||
31
src/StandardStack.Web/Web.Release.config
Normal file
31
src/StandardStack.Web/Web.Release.config
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||||
|
|
||||||
|
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||||
|
<!--
|
||||||
|
In the example below, the "SetAttributes" transform will change the value of
|
||||||
|
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||||
|
finds an attribute "name" that has a value of "MyDB".
|
||||||
|
|
||||||
|
<connectionStrings>
|
||||||
|
<add name="MyDB"
|
||||||
|
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||||
|
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
|
</connectionStrings>
|
||||||
|
-->
|
||||||
|
<system.web>
|
||||||
|
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||||
|
<!--
|
||||||
|
In the example below, the "Replace" transform will replace the entire
|
||||||
|
<customErrors> section of your web.config file.
|
||||||
|
Note that because there is only one customErrors section under the
|
||||||
|
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||||
|
|
||||||
|
<customErrors defaultRedirect="GenericError.htm"
|
||||||
|
mode="RemoteOnly" xdt:Transform="Replace">
|
||||||
|
<error statusCode="500" redirect="InternalError.htm"/>
|
||||||
|
</customErrors>
|
||||||
|
-->
|
||||||
|
</system.web>
|
||||||
|
</configuration>
|
||||||
49
src/StandardStack.Web/Web.config
Normal file
49
src/StandardStack.Web/Web.config
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
For more information on how to configure your ASP.NET application, please visit
|
||||||
|
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||||
|
-->
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||||
|
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/>
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
<!--
|
||||||
|
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||||
|
|
||||||
|
The following attributes can be set on the <httpRuntime> tag.
|
||||||
|
<system.Web>
|
||||||
|
<httpRuntime targetFramework="4.5.1" />
|
||||||
|
</system.Web>
|
||||||
|
-->
|
||||||
|
<system.web>
|
||||||
|
<compilation debug="true" targetFramework="4.5">
|
||||||
|
<buildProviders>
|
||||||
|
<add extension=".cshtml" type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders"/>
|
||||||
|
<add extension=".vbhtml" type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders"/>
|
||||||
|
</buildProviders>
|
||||||
|
</compilation>
|
||||||
|
<httpHandlers>
|
||||||
|
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/>
|
||||||
|
</httpHandlers>
|
||||||
|
<pages controlRenderingCompatibilityVersion="4.0"/>
|
||||||
|
</system.web>
|
||||||
|
<appSettings>
|
||||||
|
<add key="webPages:Enabled" value="false"/>
|
||||||
|
</appSettings>
|
||||||
|
<system.web.webPages.razor>
|
||||||
|
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
|
||||||
|
<namespaces>
|
||||||
|
<add namespace="Nancy.ViewEngines.Razor"/>
|
||||||
|
</namespaces>
|
||||||
|
</pages>
|
||||||
|
</system.web.webPages.razor>
|
||||||
|
<system.webServer>
|
||||||
|
<validation validateIntegratedModeConfiguration="false"/>
|
||||||
|
<httpErrors existingResponse="PassThrough"/>
|
||||||
|
<handlers>
|
||||||
|
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/>
|
||||||
|
</handlers>
|
||||||
|
</system.webServer>
|
||||||
|
</configuration>
|
||||||
10
src/StandardStack.Web/packages.config
Normal file
10
src/StandardStack.Web/packages.config
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="AjaxMin" version="4.48.4489.28432" targetFramework="net40" />
|
||||||
|
<package id="Nancy" version="0.22.2" targetFramework="net40" />
|
||||||
|
<package id="Nancy.Hosting.Aspnet" version="0.22.2" targetFramework="net40" />
|
||||||
|
<package id="Nancy.Viewengines.Razor" version="0.22.2" targetFramework="net40" />
|
||||||
|
<package id="SquishIt" version="0.9.5.1" targetFramework="net40" />
|
||||||
|
<package id="System.Web.Razor.Unofficial" version="2.0.2" targetFramework="net40" />
|
||||||
|
<package id="YUICompressor.NET" version="2.0.0.0" targetFramework="net40" />
|
||||||
|
</packages>
|
||||||
12
src/StandardStack/Class1.cs
Normal file
12
src/StandardStack/Class1.cs
Normal file
@@ -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
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
36
src/StandardStack/Properties/AssemblyInfo.cs
Normal file
36
src/StandardStack/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||||
59
src/StandardStack/StandardStack.csproj
Normal file
59
src/StandardStack/StandardStack.csproj
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{49961075-4B7B-4DD0-92D9-6135AC58EFDA}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>StandardStack</RootNamespace>
|
||||||
|
<AssemblyName>StandardStack</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Dapper">
|
||||||
|
<HintPath>..\..\packages\Dapper.1.25\lib\net45\Dapper.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Class1.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
4
src/StandardStack/packages.config
Normal file
4
src/StandardStack/packages.config
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Dapper" version="1.25" targetFramework="net45" />
|
||||||
|
</packages>
|
||||||
BIN
tools/NuGet/nuget.exe
Normal file
BIN
tools/NuGet/nuget.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user