Skip to content

Commit c227b1b

Browse files
committed
Set up the initial project structure
0 parents  commit c227b1b

8 files changed

+315
-0
lines changed

.gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.gitignore

+162
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# VS 14 temporary folder
5+
*.sln.ide/
6+
target/
7+
.nuget/
8+
.vs/
9+
10+
# User-specific files
11+
*.suo
12+
*.user
13+
*.sln.docstates
14+
project.lock.json
15+
16+
# Build results
17+
18+
[Dd]ebug/
19+
[Rr]elease/
20+
x64/
21+
build/
22+
[Bb]in/
23+
[Oo]bj/
24+
25+
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
26+
!packages/*/build/
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
*_i.c
33+
*_p.c
34+
*.ilk
35+
*.meta
36+
*.obj
37+
*.pch
38+
*.pdb
39+
*.pgc
40+
*.pgd
41+
*.rsp
42+
*.sbr
43+
*.tlb
44+
*.tli
45+
*.tlh
46+
*.tmp
47+
*.tmp_proj
48+
*.log
49+
*.vspscc
50+
*.vssscc
51+
.builds
52+
*.pidb
53+
*.log
54+
*.scc
55+
56+
# Visual C++ cache files
57+
ipch/
58+
*.aps
59+
*.ncb
60+
*.opensdf
61+
*.sdf
62+
*.cachefile
63+
64+
# Visual Studio profiler
65+
*.psess
66+
*.vsp
67+
*.vspx
68+
69+
# Guidance Automation Toolkit
70+
*.gpState
71+
72+
# ReSharper is a .NET coding add-in
73+
_ReSharper*/
74+
*.[Rr]e[Ss]harper
75+
76+
# TeamCity is a build add-in
77+
_TeamCity*
78+
79+
# DotCover is a Code Coverage Tool
80+
*.dotCover
81+
82+
# NCrunch
83+
*.ncrunch*
84+
.*crunch*.local.xml
85+
86+
# Installshield output folder
87+
[Ee]xpress/
88+
89+
# DocProject is a documentation generator add-in
90+
DocProject/buildhelp/
91+
DocProject/Help/*.HxT
92+
DocProject/Help/*.HxC
93+
DocProject/Help/*.hhc
94+
DocProject/Help/*.hhk
95+
DocProject/Help/*.hhp
96+
DocProject/Help/Html2
97+
DocProject/Help/html
98+
99+
# Click-Once directory
100+
publish/
101+
102+
# Publish Web Output
103+
*.Publish.xml
104+
105+
# NuGet Packages Directory
106+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
107+
packages/
108+
109+
# Windows Azure Build Output
110+
csx
111+
*.build.csdef
112+
113+
# Windows Store app package directory
114+
AppPackages/
115+
116+
# Others
117+
sql/
118+
*.Cache
119+
ClientBin/
120+
[Ss]tyle[Cc]op.*
121+
~$*
122+
*~
123+
*.dbmdl
124+
*.[Pp]ublish.xml
125+
*.publishsettings
126+
127+
# RIA/Silverlight projects
128+
Generated_Code/
129+
130+
# Backup & report files from converting an old project file to a newer
131+
# Visual Studio version. Backup files are not needed, because we have git ;-)
132+
_UpgradeReport_Files/
133+
Backup*/
134+
UpgradeLog*.XML
135+
UpgradeLog*.htm
136+
137+
# SQL Server files
138+
*.mdf
139+
*.ldf
140+
141+
142+
#LightSwitch generated files
143+
GeneratedArtifacts/
144+
_Pvt_Extensions/
145+
ModelManifest.xml
146+
147+
# =========================
148+
# Windows detritus
149+
# =========================
150+
151+
# Windows image file caches
152+
Thumbs.db
153+
ehthumbs.db
154+
155+
# Folder config file
156+
Desktop.ini
157+
158+
# Recycle Bin used on file shares
159+
$RECYCLE.BIN/
160+
161+
# Mac desktop service store files
162+
.DS_Store

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: csharp
2+
sudo: false
3+
script:
4+
- ./build.sh --quiet verify
5+
mono:
6+
- alpha
7+
- latest

NuGet.Config

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" />
5+
<add key="WebStack Nightly" value="http://www.myget.org/f/aspnetwebstacknightly/" />
6+
<add key="AzureAd Nightly" value="http://www.myget.org/F/azureadwebstacknightly/" />
7+
<add key="Roslyn" value="https://www.myget.org/F/roslyn-nightly" />
8+
<add key="DotNetFx" value="https://www.myget.org/F/dotnet-corefx" />
9+
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
10+
</packageSources>
11+
</configuration>

build.cmd

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@echo off
2+
cd %~dp0
3+
4+
SETLOCAL
5+
SET CACHED_NUGET="%LocalAppData%\NuGet\NuGet.exe"
6+
7+
IF EXIST %CACHED_NUGET% goto copynuget
8+
echo Downloading latest version of NuGet.exe...
9+
IF NOT EXIST "%LocalAppData%\NuGet" md "%LocalAppData%\NuGet"
10+
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
11+
12+
:copynuget
13+
IF EXIST .nuget\nuget.exe goto restore
14+
md .nuget
15+
copy %CACHED_NUGET% .nuget\nuget.exe > nul
16+
17+
:restore
18+
IF EXIST packages\KoreBuild goto run
19+
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
20+
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion
21+
CALL packages\KoreBuild\build\dnvm upgrade -runtime clr -arch x86
22+
CALL packages\KoreBuild\build\dnvm install default -runtime clr -arch x86
23+
24+
:run
25+
CALL packages\KoreBuild\build\dnvm use default -runtime clr -arch x86
26+
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -I build -f makefile.shade %*

build.sh

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
if test `uname` = Darwin; then
4+
cachedir=~/Library/Caches/KBuild
5+
else
6+
if [ -z $XDG_DATA_HOME ]; then
7+
cachedir=$HOME/.local/share
8+
else
9+
cachedir=$XDG_DATA_HOME;
10+
fi
11+
fi
12+
mkdir -p $cachedir
13+
14+
url=https://www.nuget.org/nuget.exe
15+
16+
if test ! -f $cachedir/nuget.exe; then
17+
wget -O $cachedir/nuget.exe $url 2>/dev/null || curl -o $cachedir/nuget.exe --location $url /dev/null
18+
fi
19+
20+
if test ! -e .nuget; then
21+
mkdir .nuget
22+
cp $cachedir/nuget.exe .nuget/nuget.exe
23+
fi
24+
25+
if test ! -d packages/KoreBuild; then
26+
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
27+
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
28+
fi
29+
30+
if ! type dnvm > /dev/null 2>&1; then
31+
source packages/KoreBuild/build/dnvm.sh
32+
fi
33+
34+
if ! type dnx > /dev/null 2>&1; then
35+
dnvm upgrade
36+
fi
37+
38+
mono packages/Sake/tools/Sake.exe -I packages/KoreBuild/build -f makefile.shade "$@"
39+

global.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "sources": [ "src" ] }

makefile.shade

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var VERSION='1.0.0'
2+
var FULL_VERSION='1.0.0'
3+
var AUTHORS='ASP.NET 5 contributors'
4+
5+
use-standard-lifecycle
6+
k-standard-goals

0 commit comments

Comments
 (0)