Skip to content

Commit 03e1718

Browse files
committed
v2.1.0 - netcoreapp2.0;net462 compatibility
- use build.ps1 and build.cmd - add NFig.Redis.Tests project - remove SampleApplication project
1 parent 7869e69 commit 03e1718

35 files changed

+594
-12522
lines changed

.gitignore

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

SampleApplication/NfigAttributes.cs NFig.Redis.Tests/NfigAttributes.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-

2-
3-
41
using NFig;
52

6-
namespace SampleApplication
3+
namespace NFig.Redis.Tests
74
{
85
public class DataCenterDefaultValueAttribute : DefaultSettingValueAttribute
96
{

SampleApplication/NfigAttributes.tt NFig.Redis.Tests/NfigAttributes.tt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<#@ template debug="false" hostspecific="false" language="C#" #>
1+
<#@ template debug="false" hostspecific="false" language="C#" #>
22
<#@ output extension=".cs" #>
33
<#
4-
var _namespace = "SampleApplication";
4+
var _namespace = "NFig.Redis.Tests";
55
var _tierEnum = "Tier";
66
var _dataCenterEnum = "DataCenter";
77
#>

0 commit comments

Comments
 (0)