diff --git a/MongoWebApiStarterTemplate.csproj b/MongoWebApiStarterTemplate.csproj index 8f3e720..3360875 100644 --- a/MongoWebApiStarterTemplate.csproj +++ b/MongoWebApiStarterTemplate.csproj @@ -2,7 +2,7 @@ - 7.8.0 + 7.8.1 Template MongoWebApiStarter @@ -34,6 +34,12 @@ + + + + + + diff --git a/README.md b/README.md index 0474f01..7f3af4b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A full-featured starter template for `dotnet new` to quickly scaffold an Asp.Net ## Install & Scaffold ```csharp - dotnet new -i MongoWebApiStarter + dotnet new install MongoWebApiStarter dotnet new mongowebapi -n MyAwesomeApp ``` diff --git a/Template/.lutignore b/Template/.lutignore deleted file mode 100644 index 8ed35ec..0000000 --- a/Template/.lutignore +++ /dev/null @@ -1,153 +0,0 @@ -## The .lutignore file is used by Live Unit Testing to ignore Visual Studio temporary files, build results, -## and files generated by popular Visual Studio add-ons when creating a private copy of the source tree that -## Live Unit Testing uses for its build. -## -## This file has same format as git's .gitignore file (https://git-scm.com/docs/gitignore). In fact, in the -## case where a .lutignore file is not found, but a .gitignore file is found, Live Unit Testing will use the -## .gitignore file directly for the above purpose. - -# User-specific files -*.suo -*.user -*.userprefs -*.sln.docstates -.vs/ -.vscode/ -.packages/ -.dotnet/ -.tools/ -.idea/ - -# Build results -[Dd]ebug/ -[Rr]elease/ -[Bb]inaries/ -[Bb]in/ -[Oo]bj/ -x64/ -TestResults/ - -# Debug artifactss -launchSettings.json - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages/ - -# NuGet V3 artifacts -[Nn]u[Gg]et.exe -*-packages.config -*.nuget.props -*.nuget.targets -project.lock.json -msbuild.binlog -*.project.lock.json - -# Miscellaneous -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.wrn -*.vspscc -*.vssscc -.builds -*.pidb -*.scc -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# Visual Studio cache files -*.sln.ide/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile -*.VC.opendb -*.VC.db - -# Windows Store app package directory -AppPackages/ - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Upgrade backups -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - -#LightSwitch generated files -GeneratedArtifacts/ -_Pvt_Extensions/ -ModelManifest.xml - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac desktop service store files -.DS_Store - -# WPF temp projects -*wpftmp.* diff --git a/Template/.template.config/template.json b/Template/.template.config/template.json index 6a1a6b3..5983b48 100644 --- a/Template/.template.config/template.json +++ b/Template/.template.config/template.json @@ -12,15 +12,11 @@ }, "sourceName": "MongoWebApiStarter", "preferNameDirectory": true, - "symbols": { - "name": { - "type": "parameter", - "defaultValue": "MongoWebApiStarter", - "replaces": "MongoWebApiStarter" - } - }, "sources": [ { + "rename": { + "vs.editorconfig": ".editorconfig" + }, "exclude": [ "**/.vs/**", "**/dp_keys/**", diff --git a/Template/MongoWebApiStarter.lutconfig b/Template/MongoWebApiStarter.lutconfig deleted file mode 100644 index 18bee2e..0000000 --- a/Template/MongoWebApiStarter.lutconfig +++ /dev/null @@ -1,6 +0,0 @@ - - - true - true - 60000 - \ No newline at end of file diff --git a/Template/Source/Entities/vs.editorconfig b/Template/Source/Entities/vs.editorconfig new file mode 100644 index 0000000..9577beb --- /dev/null +++ b/Template/Source/Entities/vs.editorconfig @@ -0,0 +1,3 @@ +# CS8618: Non-nullable field is uninitialized. Consider declaring as nullable. +[{*.cs}] +dotnet_diagnostic.CS8618.severity = none \ No newline at end of file diff --git a/Template/Source/MongoWebApiStarter.csproj b/Template/Source/MongoWebApiStarter.csproj index 3183bae..c919473 100644 --- a/Template/Source/MongoWebApiStarter.csproj +++ b/Template/Source/MongoWebApiStarter.csproj @@ -32,8 +32,10 @@ + + diff --git a/Template/Source/[Features]/vs.editorconfig b/Template/Source/[Features]/vs.editorconfig new file mode 100644 index 0000000..993471d --- /dev/null +++ b/Template/Source/[Features]/vs.editorconfig @@ -0,0 +1,3 @@ +# CS8618: Non-nullable field is uninitialized. Consider declaring as nullable. +[{*Request*.cs,*Response*.cs,*Model*.cs}] +dotnet_diagnostic.CS8618.severity = none \ No newline at end of file diff --git a/Template/vs.editorconfig b/Template/vs.editorconfig new file mode 100644 index 0000000..a1d98b3 --- /dev/null +++ b/Template/vs.editorconfig @@ -0,0 +1,9 @@ +[*.cs] + +# RCS1090: Call 'ConfigureAwait(false)'. +dotnet_diagnostic.RCS1090.severity = none + +# RCS1079: Throwing of new NotImplementedException. +dotnet_diagnostic.RCS1079.severity = silent + +dotnet_diagnostic.IDE1006.severity = silent \ No newline at end of file diff --git a/changelog.md b/changelog.md index c4d0f79..4bda3f2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,2 +1,3 @@ - code cleanups & minor refactors +- add `.editorconfig` files - upgrade dependencies to latest \ No newline at end of file