Skip to content

Commit 6fe3c94

Browse files
committed
Convert project to netstandard
1 parent ade2838 commit 6fe3c94

File tree

11 files changed

+355
-495
lines changed

11 files changed

+355
-495
lines changed

.gitignore

Lines changed: 204 additions & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1,204 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
4-
# User-specific files
5-
*.suo
6-
*.user
7-
*.sln.docstates
8-
9-
# Build results
10-
[Dd]ebug/
11-
[Dd]ebugPublic/
12-
[Rr]elease/
13-
x64/
14-
build/
15-
bld/
16-
[Bb]in/
17-
[Oo]bj/
18-
19-
# MSTest test Results
20-
[Tt]est[Rr]esult*/
21-
[Bb]uild[Ll]og.*
22-
23-
#NUNIT
24-
*.VisualState.xml
25-
TestResult.xml
26-
27-
# Build Results of an ATL Project
28-
[Dd]ebugPS/
29-
[Rr]eleasePS/
30-
dlldata.c
31-
32-
*_i.c
33-
*_p.c
34-
*_i.h
35-
*.ilk
36-
*.meta
37-
*.obj
38-
*.pch
39-
*.pdb
40-
*.pgc
41-
*.pgd
42-
*.rsp
43-
*.sbr
44-
*.tlb
45-
*.tli
46-
*.tlh
47-
*.tmp
48-
*.tmp_proj
49-
*.log
50-
*.vspscc
51-
*.vssscc
52-
.builds
53-
*.pidb
54-
*.svclog
55-
*.scc
56-
57-
# Chutzpah Test files
58-
_Chutzpah*
59-
60-
# Visual C++ cache files
61-
ipch/
62-
*.aps
63-
*.ncb
64-
*.opensdf
65-
*.sdf
66-
*.cachefile
67-
68-
# Visual Studio profiler
69-
*.psess
70-
*.vsp
71-
*.vspx
72-
73-
# TFS 2012 Local Workspace
74-
$tf/
75-
76-
# Guidance Automation Toolkit
77-
*.gpState
78-
79-
# ReSharper is a .NET coding add-in
80-
_ReSharper*/
81-
*.[Rr]e[Ss]harper
82-
*.DotSettings.user
83-
84-
# JustCode is a .NET coding addin-in
85-
.JustCode
86-
87-
# TeamCity is a build add-in
88-
_TeamCity*
89-
90-
# DotCover is a Code Coverage Tool
91-
*.dotCover
92-
93-
# NCrunch
94-
*.ncrunch*
95-
_NCrunch_*
96-
.*crunch*.local.xml
97-
98-
# MightyMoose
99-
*.mm.*
100-
AutoTest.Net/
101-
102-
# Web workbench (sass)
103-
.sass-cache/
104-
105-
# Installshield output folder
106-
[Ee]xpress/
107-
108-
# DocProject is a documentation generator add-in
109-
DocProject/buildhelp/
110-
DocProject/Help/*.HxT
111-
DocProject/Help/*.HxC
112-
DocProject/Help/*.hhc
113-
DocProject/Help/*.hhk
114-
DocProject/Help/*.hhp
115-
DocProject/Help/Html2
116-
DocProject/Help/html
117-
118-
# Click-Once directory
119-
publish/
120-
121-
# Publish Web Output
122-
*.[Pp]ublish.xml
123-
*.azurePubxml
124-
125-
# NuGet Packages Directory
126-
packages/
127-
## TODO: If the tool you use requires repositories.config uncomment the next line
128-
#!packages/repositories.config
129-
130-
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
131-
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
132-
!packages/build/
133-
134-
# Windows Azure Build Output
135-
csx/
136-
*.build.csdef
137-
138-
# Windows Store app package directory
139-
AppPackages/
140-
141-
# Others
142-
sql/
143-
*.Cache
144-
ClientBin/
145-
[Ss]tyle[Cc]op.*
146-
~$*
147-
*~
148-
*.dbmdl
149-
*.dbproj.schemaview
150-
*.pfx
151-
*.publishsettings
152-
node_modules/
153-
154-
# RIA/Silverlight projects
155-
Generated_Code/
156-
157-
# Backup & report files from converting an old project file to a newer
158-
# Visual Studio version. Backup files are not needed, because we have git ;-)
159-
_UpgradeReport_Files/
160-
Backup*/
161-
UpgradeLog*.XML
162-
UpgradeLog*.htm
163-
164-
# SQL Server files
165-
*.mdf
166-
*.ldf
167-
168-
# Business Intelligence projects
169-
*.rdl.data
170-
*.bim.layout
171-
*.bim_*.settings
172-
173-
# Microsoft Fakes
174-
FakesAssemblies/
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
build/
21+
bld/
22+
[Bb]in/
23+
[Oo]bj/
24+
25+
# Visual Studo 2015 cache/options directory
26+
.vs/
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
# NUNIT
33+
*.VisualState.xml
34+
TestResult.xml
35+
36+
# Build Results of an ATL Project
37+
[Dd]ebugPS/
38+
[Rr]eleasePS/
39+
dlldata.c
40+
41+
*_i.c
42+
*_p.c
43+
*_i.h
44+
*.ilk
45+
*.meta
46+
*.obj
47+
*.pch
48+
*.pdb
49+
*.pgc
50+
*.pgd
51+
*.rsp
52+
*.sbr
53+
*.tlb
54+
*.tli
55+
*.tlh
56+
*.tmp
57+
*.tmp_proj
58+
*.log
59+
*.vspscc
60+
*.vssscc
61+
.builds
62+
*.pidb
63+
*.svclog
64+
*.scc
65+
66+
# Chutzpah Test files
67+
_Chutzpah*
68+
69+
# Visual C++ cache files
70+
ipch/
71+
*.aps
72+
*.ncb
73+
*.opensdf
74+
*.sdf
75+
*.cachefile
76+
77+
# Visual Studio profiler
78+
*.psess
79+
*.vsp
80+
*.vspx
81+
82+
# TFS 2012 Local Workspace
83+
$tf/
84+
85+
# Guidance Automation Toolkit
86+
*.gpState
87+
88+
# ReSharper is a .NET coding add-in
89+
_ReSharper*/
90+
*.[Rr]e[Ss]harper
91+
*.DotSettings.user
92+
93+
# JustCode is a .NET coding addin-in
94+
.JustCode
95+
96+
# TeamCity is a build add-in
97+
_TeamCity*
98+
99+
# DotCover is a Code Coverage Tool
100+
*.dotCover
101+
102+
# NCrunch
103+
_NCrunch_*
104+
.*crunch*.local.xml
105+
106+
# MightyMoose
107+
*.mm.*
108+
AutoTest.Net/
109+
110+
# Web workbench (sass)
111+
.sass-cache/
112+
113+
# Installshield output folder
114+
[Ee]xpress/
115+
116+
# DocProject is a documentation generator add-in
117+
DocProject/buildhelp/
118+
DocProject/Help/*.HxT
119+
DocProject/Help/*.HxC
120+
DocProject/Help/*.hhc
121+
DocProject/Help/*.hhk
122+
DocProject/Help/*.hhp
123+
DocProject/Help/Html2
124+
DocProject/Help/html
125+
126+
# Click-Once directory
127+
publish/
128+
129+
# Publish Web Output
130+
*.[Pp]ublish.xml
131+
*.azurePubxml
132+
# TODO: Comment the next line if you want to checkin your web deploy settings
133+
# but database connection strings (with potential passwords) will be unencrypted
134+
#*.pubxml
135+
*.publishproj
136+
137+
# NuGet Packages
138+
*.nupkg
139+
# The packages folder can be ignored because of Package Restore
140+
**/packages/*
141+
# except build/, which is used as an MSBuild target.
142+
!**/packages/build/
143+
# Uncomment if necessary however generally it will be regenerated when needed
144+
#!**/packages/repositories.config
145+
146+
# Windows Azure Build Output
147+
csx/
148+
*.build.csdef
149+
150+
# Windows Store app package directory
151+
AppPackages/
152+
153+
# Others
154+
*.[Cc]ache
155+
ClientBin/
156+
[Ss]tyle[Cc]op.*
157+
~$*
158+
*~
159+
*.dbmdl
160+
*.dbproj.schemaview
161+
*.pfx
162+
*.publishsettings
163+
node_modules/
164+
bower_components/
165+
166+
# RIA/Silverlight projects
167+
Generated_Code/
168+
169+
# Backup & report files from converting an old project file
170+
# to a newer Visual Studio version. Backup files are not needed,
171+
# because we have git ;-)
172+
_UpgradeReport_Files/
173+
Backup*/
174+
UpgradeLog*.XML
175+
UpgradeLog*.htm
176+
177+
# SQL Server files
178+
*.mdf
179+
*.ldf
180+
181+
# Business Intelligence projects
182+
*.rdl.data
183+
*.bim.layout
184+
*.bim_*.settings
185+
186+
# Microsoft Fakes
187+
FakesAssemblies/
188+
189+
# Node.js Tools for Visual Studio
190+
.ntvs_analysis.dat
191+
192+
# Visual Studio 6 build log
193+
*.plg
194+
195+
# Visual Studio 6 workspace options file
196+
*.opt
197+
198+
# Web log files
199+
Logs/
200+
201+
# Ignore _CodeDeploy build folder and output
202+
_[Cc]ode[Dd]eploy
203+
*_Revision_*.zip
204+
AppReadme/

Source/BuildNuGetPackage.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
param (
2+
[switch]$Pack = $true,
3+
[switch]$Push
4+
)
5+
6+
Set-StrictMode -Version latest
7+
$ErrorActionPreference = "Stop"
8+
9+
if($pack) {
10+
& dotnet build --configuration Release
11+
if(!$?){throw "NuGet returned exit code $LASTEXITCODE"}
12+
& dotnet test .\Miracle.Macros.Test\ --configuration Release
13+
if(!$?){throw "NuGet returned exit code $LASTEXITCODE"}
14+
}
15+
16+
if($push) {
17+
$filename = Get-ChildItem ".\Miracle.Macros\bin\Release\Miracle.Macros.*" | Sort-Object LastWriteTime -Descending | Select -First 1
18+
echo "Pushing $filename"
19+
& .NuGet\NuGet.exe push "$filename" -Source https://api.nuget.org/v3/index.json
20+
}

0 commit comments

Comments
 (0)