Skip to content

Commit 0e280d6

Browse files
committed
Use FAKE.BuildLib
1 parent 613e163 commit 0e280d6

File tree

11 files changed

+96
-445
lines changed

11 files changed

+96
-445
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*.{cs, py, fsx}]
4+
indent_style = space
5+
indent_size = 4
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[*.{json, xml}]
10+
indent_style = space
11+
indent_size = 2

.gitattributes

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1 @@
1-
###############################################################################
2-
# Set default behavior to automatically normalize line endings.
3-
###############################################################################
41
* 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

Lines changed: 8 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,143 +1,38 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
41
# User-specific files
52
*.suo
63
*.user
74
*.userosscache
85
*.sln.docstates
96

10-
# User-specific files (MonoDevelop/Xamarin Studio)
11-
*.userprefs
12-
137
# Build results
148
[Dd]ebug/
159
[Dd]ebugPublic/
1610
[Rr]elease/
1711
[Rr]eleases/
1812
x64/
1913
x86/
14+
build/
2015
bld/
2116
[Bb]in/
2217
[Oo]bj/
2318

19+
# Coverity output
20+
cov-int/
21+
2422
# Visual Studio 2015 cache/options directory
2523
.vs/
2624

27-
# MSTest test Results
28-
[Tt]est[Rr]esult*/
29-
[Bb]uild[Ll]og.*
30-
31-
# NUNIT
32-
*.VisualState.xml
33-
TestResult.xml
34-
35-
# Build Results of an ATL Project
36-
[Dd]ebugPS/
37-
[Rr]eleasePS/
38-
dlldata.c
39-
4025
# DNX
4126
project.lock.json
4227
artifacts/
4328

44-
*_i.c
45-
*_p.c
46-
*_i.h
47-
*.ilk
48-
*.meta
49-
*.obj
50-
*.pch
51-
*.pdb
52-
*.pgc
53-
*.pgd
54-
*.rsp
55-
*.sbr
56-
*.tlb
57-
*.tli
58-
*.tlh
59-
*.tmp
60-
*.tmp_proj
61-
*.log
62-
*.vspscc
63-
*.vssscc
64-
.builds
65-
*.pidb
66-
*.svclog
67-
*.scc
68-
69-
# Chutzpah Test files
70-
_Chutzpah*
71-
72-
# Visual C++ cache files
73-
ipch/
74-
*.aps
75-
*.ncb
76-
*.opensdf
77-
*.sdf
78-
*.cachefile
79-
8029
# Visual Studio profiler
8130
*.psess
8231
*.vsp
8332
*.vspx
8433

85-
# TFS 2012 Local Workspace
86-
$tf/
87-
88-
# Guidance Automation Toolkit
89-
*.gpState
90-
91-
# ReSharper is a .NET coding add-in
92-
_ReSharper*/
93-
*.[Rr]e[Ss]harper
94-
*.DotSettings.user
95-
96-
# JustCode is a .NET coding add-in
97-
.JustCode
98-
99-
# TeamCity is a build add-in
100-
_TeamCity*
101-
102-
# DotCover is a Code Coverage Tool
103-
*.dotCover
104-
105-
# NCrunch
106-
_NCrunch_*
107-
.*crunch*.local.xml
108-
109-
# MightyMoose
110-
*.mm.*
111-
AutoTest.Net/
112-
113-
# Web workbench (sass)
114-
.sass-cache/
115-
116-
# Installshield output folder
117-
[Ee]xpress/
118-
119-
# DocProject is a documentation generator add-in
120-
DocProject/buildhelp/
121-
DocProject/Help/*.HxT
122-
DocProject/Help/*.HxC
123-
DocProject/Help/*.hhc
124-
DocProject/Help/*.hhk
125-
DocProject/Help/*.hhp
126-
DocProject/Help/Html2
127-
DocProject/Help/html
128-
12934
# Click-Once directory
130-
publish/
131-
132-
# Publish Web Output
133-
*.[Pp]ublish.xml
134-
*.azurePubxml
135-
## TODO: Comment the next line if you want to checkin your
136-
## web deploy settings but do note that will include unencrypted
137-
## passwords
138-
#*.pubxml
139-
140-
*.publishproj
35+
[Pp]ublish/
14136

14237
# NuGet Packages
14338
*.nupkg
@@ -161,52 +56,8 @@ AppPackages/
16156
# but keep track of directories ending in .cache
16257
!*.[Cc]ache/
16358

164-
# Others
165-
ClientBin/
166-
[Ss]tyle[Cc]op.*
167-
~$*
168-
*~
169-
*.dbmdl
170-
*.dbproj.schemaview
171-
*.pfx
172-
*.publishsettings
173-
node_modules/
174-
orleans.codegen.cs
59+
# Fake
17560
.fake/
17661

177-
# RIA/Silverlight projects
178-
Generated_Code/
179-
180-
# Backup & report files from converting an old project file
181-
# to a newer Visual Studio version. Backup files are not needed,
182-
# because we have git ;-)
183-
_UpgradeReport_Files/
184-
Backup*/
185-
UpgradeLog*.XML
186-
UpgradeLog*.htm
187-
188-
# SQL Server files
189-
*.mdf
190-
*.ldf
191-
192-
# Business Intelligence projects
193-
*.rdl.data
194-
*.bim.layout
195-
*.bim_*.settings
196-
197-
# Microsoft Fakes
198-
FakesAssemblies/
199-
200-
# Node.js Tools for Visual Studio
201-
.ntvs_analysis.dat
202-
203-
# Visual Studio 6 build log
204-
*.plg
205-
206-
# Visual Studio 6 workspace options file
207-
*.opt
208-
209-
# LightSwitch generated files
210-
GeneratedArtifacts/
211-
_Pvt_Extensions/
212-
ModelManifest.xml
62+
# No APK
63+
*.apk

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# NetLegacySupport
22

3+
[![Build status](https://ci.appveyor.com/api/projects/status/0v2wraqkyyltgyg1?svg=true)](https://ci.appveyor.com/project/veblush/netlegacysupport)
4+
[![Coverage Status](https://coveralls.io/repos/github/SaladLab/AsyncWorker/badge.svg?branch=master)](https://coveralls.io/github/SaladLab/NetLegacySupport?branch=master)
5+
36
Library helps supporting old .NET frameworks like .NET 2.0 and 3.5.
47
This is a backport from .NET Core. Following classes are provided:
58

appveyor.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
version: 1.1.0.{build}
22
os: Visual Studio 2015
3-
configuration: Debug
4-
before_build:
5-
- cmd: nuget restore
6-
build:
7-
project: NetLegacySupport.sln
8-
verbosity: minimal
9-
test: on
103
environment:
114
NUGETKEY:
125
secure: z2fJQckgBQJ7IKfjOyrZYPM2+xDj4xYuqaUDBG7MrJs+b1bNc0vzYMTxpF6Sb1mA
13-
deploy_script:
14-
- cmd: build.cmd nuget nugetkey=%NUGETKEY% nugetpublishurl=https://www.myget.org/F/saladbowlcreative/api/v2/package nugetprerelease=%APPVEYOR_BUILD_NUMBER%
6+
COVERALLSKEY:
7+
secure: Zyppdxjp/FCADlmcIWWEz+hDqNLwdUYXoI0gOkqs2M9ZRXOeRDdEHp8ALb3Mr+CD
8+
test: off
9+
build_script:
10+
- cmd: build.cmd ci nugetkey=%NUGETKEY% nugetpublishurl=https://www.myget.org/F/saladlab/api/v2/package nugetprerelease=%APPVEYOR_BUILD_NUMBER% coverallskey=%COVERALLSKEY%

build.cmd

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22

33
pushd %~dp0
44

5-
tools\nuget\NuGet.exe update -self
6-
tools\nuget\NuGet.exe install FAKE -ConfigFile tools\nuget\Nuget.Config -OutputDirectory packages -ExcludeVersion -Version 4.10.3
7-
tools\nuget\NuGet.exe install nunit.runners -ConfigFile tools\nuget\Nuget.Config -OutputDirectory packages\FAKE -ExcludeVersion -Version 3.0.1
5+
SET PACKAGEPATH=.\packages\
6+
SET NUGET=.\tools\nuget\NuGet.exe
7+
SET NUGETOPTIONS=-ConfigFile .\tools\nuget\NuGet.Config -OutputDirectory %PACKAGEPATH% -ExcludeVersion
8+
9+
IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.23.0 (
10+
%NUGET% install FAKE -Version 4.23.0 %NUGETOPTIONS%
11+
COPY NUL %PACKAGEPATH%FAKE\Ver_4.23.0
12+
)
13+
14+
IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.5 (
15+
%NUGET% install FAKE.BuildLib -Version 0.1.5 %NUGETOPTIONS%
16+
COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.5
17+
)
818

919
set encoding=utf-8
10-
packages\FAKE\tools\FAKE.exe build.fsx %*
20+
"%PACKAGEPATH%FAKE\tools\FAKE.exe" build.fsx %*
1121

1222
popd

0 commit comments

Comments
 (0)