Skip to content

Commit 3c35658

Browse files
committed
TemplateRenamer moved to .NET Core 3.1
1 parent 23f8828 commit 3c35658

File tree

6 files changed

+166
-128
lines changed

6 files changed

+166
-128
lines changed

tools/TemplateRenamer/.gitignore

Lines changed: 142 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
3+
##
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
35

46
# User-specific files
7+
*.rsuser
58
*.suo
69
*.user
710
*.userosscache
@@ -10,47 +13,72 @@
1013
# User-specific files (MonoDevelop/Xamarin Studio)
1114
*.userprefs
1215

16+
# Mono auto generated files
17+
mono_crash.*
18+
1319
# Build results
1420
[Dd]ebug/
1521
[Dd]ebugPublic/
1622
[Rr]elease/
1723
[Rr]eleases/
1824
x64/
1925
x86/
26+
[Ww][Ii][Nn]32/
27+
[Aa][Rr][Mm]/
28+
[Aa][Rr][Mm]64/
2029
bld/
2130
[Bb]in/
2231
[Oo]bj/
32+
[Ll]og/
33+
[Ll]ogs/
2334

24-
# Visual Studio 2015 cache/options directory
35+
# Visual Studio 2015/2017 cache/options directory
2536
.vs/
2637
# Uncomment if you have tasks that create the project's static files in wwwroot
2738
#wwwroot/
2839

40+
# Visual Studio 2017 auto generated files
41+
Generated\ Files/
42+
2943
# MSTest test Results
3044
[Tt]est[Rr]esult*/
3145
[Bb]uild[Ll]og.*
3246

33-
# NUNIT
47+
# NUnit
3448
*.VisualState.xml
3549
TestResult.xml
50+
nunit-*.xml
3651

3752
# Build Results of an ATL Project
3853
[Dd]ebugPS/
3954
[Rr]eleasePS/
4055
dlldata.c
4156

42-
# DNX
57+
# Benchmark Results
58+
BenchmarkDotNet.Artifacts/
59+
60+
# .NET Core
4361
project.lock.json
62+
project.fragment.lock.json
4463
artifacts/
4564

65+
# ASP.NET Scaffolding
66+
ScaffoldingReadMe.txt
67+
68+
# StyleCop
69+
StyleCopReport.xml
70+
71+
# Files built by Visual Studio
4672
*_i.c
4773
*_p.c
48-
*_i.h
74+
*_h.h
4975
*.ilk
5076
*.meta
5177
*.obj
78+
*.iobj
5279
*.pch
5380
*.pdb
81+
*.ipdb
5482
*.pgc
5583
*.pgd
5684
*.rsp
@@ -60,6 +88,7 @@ artifacts/
6088
*.tlh
6189
*.tmp
6290
*.tmp_proj
91+
*_wpftmp.csproj
6392
*.log
6493
*.vspscc
6594
*.vssscc
@@ -79,13 +108,18 @@ ipch/
79108
*.opensdf
80109
*.sdf
81110
*.cachefile
111+
*.VC.db
112+
*.VC.VC.opendb
82113

83114
# Visual Studio profiler
84115
*.psess
85116
*.vsp
86117
*.vspx
87118
*.sap
88119

120+
# Visual Studio Trace Files
121+
*.e2e
122+
89123
# TFS 2012 Local Workspace
90124
$tf/
91125

@@ -97,15 +131,23 @@ _ReSharper*/
97131
*.[Rr]e[Ss]harper
98132
*.DotSettings.user
99133

100-
# JustCode is a .NET coding add-in
101-
.JustCode
102-
103134
# TeamCity is a build add-in
104135
_TeamCity*
105136

106137
# DotCover is a Code Coverage Tool
107138
*.dotCover
108139

140+
# AxoCover is a Code Coverage Tool
141+
.axoCover/*
142+
!.axoCover/settings.json
143+
144+
# Coverlet is a free, cross platform Code Coverage Tool
145+
coverage*[.json, .xml, .info]
146+
147+
# Visual Studio code coverage results
148+
*.coverage
149+
*.coveragexml
150+
109151
# NCrunch
110152
_NCrunch_*
111153
.*crunch*.local.xml
@@ -137,20 +179,27 @@ publish/
137179
# Publish Web Output
138180
*.[Pp]ublish.xml
139181
*.azurePubxml
140-
# TODO: Comment the next line if you want to checkin your web deploy settings
182+
# Note: Comment the next line if you want to checkin your web deploy settings,
141183
# but database connection strings (with potential passwords) will be unencrypted
142184
*.pubxml
143185
*.publishproj
144186

187+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
188+
# checkin your Azure Web App publish settings, but sensitive information contained
189+
# in these scripts will be unencrypted
190+
PublishScripts/
191+
145192
# NuGet Packages
146193
*.nupkg
194+
# NuGet Symbol Packages
195+
*.snupkg
147196
# The packages folder can be ignored because of Package Restore
148-
**/packages/*
197+
**/[Pp]ackages/*
149198
# except build/, which is used as an MSBuild target.
150-
!**/packages/build/
199+
!**/[Pp]ackages/build/
151200
# Uncomment if necessary however generally it will be regenerated when needed
152-
#!**/packages/repositories.config
153-
# NuGet v3's project.json files produces more ignoreable files
201+
#!**/[Pp]ackages/repositories.config
202+
# NuGet v3's project.json files produces more ignorable files
154203
*.nuget.props
155204
*.nuget.targets
156205

@@ -162,30 +211,40 @@ csx/
162211
ecf/
163212
rcf/
164213

165-
# Microsoft Azure ApplicationInsights config file
166-
ApplicationInsights.config
167-
168-
# Windows Store app package directory
214+
# Windows Store app package directories and files
169215
AppPackages/
170216
BundleArtifacts/
217+
Package.StoreAssociation.xml
218+
_pkginfo.txt
219+
*.appx
220+
*.appxbundle
221+
*.appxupload
171222

172223
# Visual Studio cache files
173224
# files ending in .cache can be ignored
174225
*.[Cc]ache
175226
# but keep track of directories ending in .cache
176-
!*.[Cc]ache/
227+
!?*.[Cc]ache/
177228

178229
# Others
179230
ClientBin/
180231
~$*
181232
*~
182233
*.dbmdl
183234
*.dbproj.schemaview
235+
*.jfm
184236
*.pfx
185237
*.publishsettings
186-
node_modules/
187238
orleans.codegen.cs
188239

240+
# Including strong name files can present a security risk
241+
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
242+
#*.snk
243+
244+
# Since there are multiple workflows, uncomment next line to ignore bower_components
245+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
246+
#bower_components/
247+
189248
# RIA/Silverlight projects
190249
Generated_Code/
191250

@@ -196,15 +255,22 @@ _UpgradeReport_Files/
196255
Backup*/
197256
UpgradeLog*.XML
198257
UpgradeLog*.htm
258+
ServiceFabricBackup/
259+
*.rptproj.bak
199260

200261
# SQL Server files
201262
*.mdf
202263
*.ldf
264+
*.ndf
203265

204266
# Business Intelligence projects
205267
*.rdl.data
206268
*.bim.layout
207269
*.bim_*.settings
270+
*.rptproj.rsuser
271+
*- [Bb]ackup.rdl
272+
*- [Bb]ackup ([0-9]).rdl
273+
*- [Bb]ackup ([0-9][0-9]).rdl
208274

209275
# Microsoft Fakes
210276
FakesAssemblies/
@@ -214,13 +280,17 @@ FakesAssemblies/
214280

215281
# Node.js Tools for Visual Studio
216282
.ntvs_analysis.dat
283+
node_modules/
217284

218285
# Visual Studio 6 build log
219286
*.plg
220287

221288
# Visual Studio 6 workspace options file
222289
*.opt
223290

291+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
292+
*.vbw
293+
224294
# Visual Studio LightSwitch build output
225295
**/*.HTMLClient/GeneratedArtifacts
226296
**/*.DesktopClient/GeneratedArtifacts
@@ -231,6 +301,60 @@ _Pvt_Extensions
231301

232302
# Paket dependency manager
233303
.paket/paket.exe
304+
paket-files/
234305

235306
# FAKE - F# Make
236307
.fake/
308+
309+
# CodeRush personal settings
310+
.cr/personal
311+
312+
# Python Tools for Visual Studio (PTVS)
313+
__pycache__/
314+
*.pyc
315+
316+
# Cake - Uncomment if you are using it
317+
# tools/**
318+
# !tools/packages.config
319+
320+
# Tabs Studio
321+
*.tss
322+
323+
# Telerik's JustMock configuration file
324+
*.jmconfig
325+
326+
# BizTalk build output
327+
*.btp.cs
328+
*.btm.cs
329+
*.odx.cs
330+
*.xsd.cs
331+
332+
# OpenCover UI analysis results
333+
OpenCover/
334+
335+
# Azure Stream Analytics local run output
336+
ASALocalRun/
337+
338+
# MSBuild Binary and Structured Log
339+
*.binlog
340+
341+
# NVidia Nsight GPU debugger configuration file
342+
*.nvuser
343+
344+
# MFractors (Xamarin productivity tool) working folder
345+
.mfractor/
346+
347+
# Local History for Visual Studio
348+
.localhistory/
349+
350+
# BeatPulse healthcheck temp database
351+
healthchecksdb
352+
353+
# Backup folder for Package Reference Convert tool in Visual Studio 2017
354+
MigrationBackup/
355+
356+
# Ionide (cross platform F# VS Code tools) working folder
357+
.ionide/
358+
359+
# Fody - auto-generated XML schema
360+
FodyWeavers.xsd

tools/TemplateRenamer/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

tools/TemplateRenamer/Program.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,25 @@ public static class Program
88
{
99
public static void Main()
1010
{
11-
Console.WriteLine("ASP.NET MVC Template Renamer v1.0");
11+
Console.WriteLine(new string('=', 40));
12+
Console.WriteLine("Template Renamer");
13+
Console.WriteLine(new string('-', 40));
1214
Console.WriteLine("Working in: " + Environment.CurrentDirectory);
15+
Console.WriteLine(new string('=', 40));
16+
Console.WriteLine();
1317

14-
var oldName = string.Empty;
18+
19+
var oldName = "AspNetCoreTemplate";
1520
while (string.IsNullOrWhiteSpace(oldName))
1621
{
17-
Console.Write("What is your project's old name ([a-zA-z]): ");
22+
Console.Write("What is your project's old name ([A-Z][a-z]): ");
1823
oldName = Console.ReadLine();
1924
}
2025

2126
var newName = string.Empty;
2227
while (string.IsNullOrWhiteSpace(newName))
2328
{
24-
Console.Write("What is your project's name ([a-zA-z]): ");
29+
Console.Write("What is your project's name ([A-Z][a-z]): ");
2530
newName = Console.ReadLine();
2631
}
2732

tools/TemplateRenamer/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)