diff --git a/.frontmatter/database/mediaDb.json b/.frontmatter/database/mediaDb.json
new file mode 100644
index 0000000..9e26dfe
--- /dev/null
+++ b/.frontmatter/database/mediaDb.json
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/.frontmatter/database/taxonomyDb.json b/.frontmatter/database/taxonomyDb.json
new file mode 100644
index 0000000..9e26dfe
--- /dev/null
+++ b/.frontmatter/database/taxonomyDb.json
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index fcd252e..8635da0 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -2,5 +2,8 @@
"sonarlint.connectedMode.project": {
"connectionId": "dgmjr-io",
"projectKey": "dgmjr-io_DgmjrSdk"
+ },
+ "files.exclude": {
+ "**/.vs": false
}
}
diff --git a/Dgmjr.NET.Sdk/.gitignore b/Dgmjr.NET.Sdk/.gitignore
new file mode 100755
index 0000000..32dffac
--- /dev/null
+++ b/Dgmjr.NET.Sdk/.gitignore
@@ -0,0 +1,1154 @@
+# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
+# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,visualstudio,visualbasic,test,ssh,spreadsheet,serverless,osx,microsoftoffice,macos,linux,executable,dotnetcore,dotfilessh,diskimage,datarecovery,database,data,csharp,compressedarchive,compressed,certificates,archive,archives,azurefunctions,diff,dotenv,dotsettings,git,gitbook,text,textpattern
+# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,visualstudio,visualbasic,test,ssh,spreadsheet,serverless,osx,microsoftoffice,macos,linux,executable,dotnetcore,dotfilessh,diskimage,datarecovery,database,data,csharp,compressedarchive,compressed,certificates,archive,archives,azurefunctions,diff,dotenv,dotsettings,git,gitbook,text,textpattern
+
+### Archive ###
+
+### Mostly from https://en.wikipedia.org/wiki/List_of_archive_formats
+
+## Archiving only
+# The traditional archive format on Unix-like systems, now used mainly for the creation of static libraries.
+*.a
+*.ar
+# RPM files consist of metadata concatenated with (usually) a cpio archive. Newer RPM systems also support other archives, as cpio is becoming obsolete. cpio is also used with initramfs.
+*.cpio
+
+# A self-extracting archive that uses the Bourne shell (sh).
+*.shar
+# A system for storing multiple files. LBR archives typically contained files processed by SQ, or the archive itself was compressed with SQ. LBR archives that were compressed with SQ ended with the extension .LQR
+*.LBR
+# An archive format originally used mainly for archiving and distribution of the exact, nearly-exact, or custom-modified contents of an optical storage medium such as a CD-ROM or DVD-ROM. However, it can be used to archive the contents of other storage media, selected partitions, folders, and/or files. The resulting archive is typically optimized for convenient rendering to (re-)writable CD or DVD media.
+*.iso
+# A library format used primarily on the Commodore 64 and 128 lines of computers. This bears no resemblance to the DOS LBR format. While library files were quick to implement (a number of programs exist to work with them) they are crippled in that they cannot grow with use: once a file has been created it cannot be amended (files added, changed or deleted) without recreating the entire file.
+*.lbr
+# An archive format used by Mozilla for storing binary diffs. Used in conjunction with bzip2.
+*.mar
+# A Shared archive format used on Unix-like systems. Generally used in conjunction with compressors such as gzip, bzip2, compress or xz to create .tar.gz, .tar.bz2, .tar.Z or tar.xz files.
+*.tar
+
+# Package managers
+# Red Hat Package Manager
+*.rpm
+# Debian package
+*.deb
+# MicroSoft Installer
+*.msi
+*.msm
+*.msp
+# Mozilla package installer
+*.xpi
+# Ruby Package
+*.gem
+
+
+### Archives ###
+# It's better to unpack these files and commit the raw source because
+# git has its own built in compression methods.
+*.7z
+*.jar
+*.rar
+*.zip
+*.gz
+*.gzip
+*.tgz
+*.bzip
+*.bzip2
+*.bz2
+*.xz
+*.lzma
+*.cab
+*.xar
+
+# Packing-only formats
+
+# Package management formats
+*.dmg
+*.egg
+*.txz
+
+### AzureFunctions ###
+# Azure Functions localsettings file
+local.settings.json
+
+### certificates ###
+*.pem
+*.key
+*.crt
+*.cer
+*.der
+*.priv
+
+### Compressed ###
+*.pkg
+*.sit
+*.sitx
+*.zipx
+
+### CompressedArchive ###
+
+
+## Archiving and compression
+# Open source file format. Used by 7-Zip.
+# Mac OS X, restoration on different platforms is possible although not immediate Yes Based on 7z. Preserves Spotlight metadata, resource forks, owner/group information, dates and other data which would be otherwise lost with compression.
+*.s7z
+# Old archive versions only Proprietary format
+*.ace
+# A format that compresses and doubly encrypt the data (AES256 and CAS256) avoiding brute force attacks, also hide files in an AFA file. It has two ways to safeguard data integrity and subsequent repair of the file if has an error (repair with AstroA2P (online) or Astrotite (offline)).
+*.afa
+# A mainly Korean format designed for very large archives.
+*.alz
+# Android application package (variant of JAR file format).
+*.apk
+# ??
+*.arc
+# Originally DOS, now multiple
+*.arj
+# Open archive format, used by B1 Free Archiver (http://dev.b1.org/standard/archive-format.html)
+*.b1
+# Binary Archive with external header
+*.ba
+# Proprietary format from the ZipTV Compression Components
+*.bh
+# The Microsoft Windows native archive format, which is also used by many commercial installers such as InstallShield and WISE.
+# Originally DOS, now DOS and Windows Created by Yaakov Gringeler; released last in 2003 (Compressia 1.0.0.1 beta), now apparently defunct. Free trial of 30 days lets user create and extract archives; after that it is possible to extract, but not to create.
+*.car
+# Open source file format.
+*.cfs
+# Compact Pro archive, a Shared archiver used on Mac platforms until about Mac OS 7.5.x. Competed with StuffIt; now obsolete.
+*.cpt
+# Windows, Unix-like, Mac OS X Open source file format. Files are compressed individually with either gzip, bzip2 or lzo.
+*.dar
+# DiskDoubler Mac OS obsolete
+*.dd
+# ??
+*.dgc
+# Apple Disk Image upports "Internet-enabled" disk images, which, once downloaded, are automatically decompressed, mounted, have the contents extracted, and thrown away. Currently, Safari is the only browser that supports this form of extraction; however, the images can be manually extracted as well. This format can also be password-protected or encrypted with 128-bit or 256-bit AES encryption.
+# Enterprise Java Archive archive
+*.ear
+# ETSoft compressed archive
+# The predecessor of DGCA.
+*.gca
+# Originally DOS Yes, but may be covered by patents DOS era format; uses arithmetic/Markov coding
+*.ha
+# MS Windows HKI
+*.hki
+# Produced by ICEOWS program. Excels at text file compression.
+*.ice
+# Java archive, compatible with ZIP files
+# Open sourced archiver with compression using the PAQ family of algorithms and optional encryption.
+*.kgb
+# Originally DOS, now multiple Multiple Yes The standard format on Amiga.
+*.lzh
+*.lha
+# Archiver originally used on The Amiga. Now copied by Microsoft to use in their .cab and .chm files.
+*.lzx
+# file format from NoGate Consultings, a rival from ARC-Compressor.
+*.pak
+# A disk image archive format that supports several compression methods as well as splitting the archive into smaller pieces.
+*.partimg
+# An experimental open source packager (http://mattmahoney.net/dc)
+*.paq*
+# Open source archiver supporting authenticated encryption, volume spanning, customizable object level and volume level integrity checks (form CRCs to SHA-512 and Whirlpool hashes), fast deflate based compression
+*.pea
+# The format from the PIM - a freeware compression tool by Ilia Muraviev. It uses an LZP-based compression algorithm with set of filters for executable, image and audio files.
+*.pim
+# PackIt Mac OS obsolete
+*.pit
+# Used for data in games written using the Quadruple D library for Delphi. Uses byte pair compression.
+*.qda
+# A proprietary archive format, second in popularity to .zip files.
+# The format from a commercial archiving package. Odd among commercial packages in that they focus on incorporating experimental algorithms with the highest possible compression (at the expense of speed and memory), such as PAQ, PPMD and PPMZ (PPMD with unlimited-length strings), as well as a proprietary algorithms.
+*.rk
+# Self Dissolving ARChive Commodore 64, Commodore 128 Commodore 64, Commodore 128 Yes SDAs refer to Self Dissolving ARC files, and are based on the Commodore 64 and Commodore 128 versions of ARC, originally written by Chris Smeets. While the files share the same extension, they are not compatible between platforms. That is, an SDA created on a Commodore 64 but run on a Commodore 128 in Commodore 128 mode will crash the machine, and vice versa. The intended successor to SDA is SFX.
+*.sda
+# A pre-Mac OS X Self-Extracting Archive format. StuffIt, Compact Pro, Disk Doubler and others could create .sea files, though the StuffIt versions were the most Shared.
+*.sea
+# Scifer Archive with internal header
+*.sen
+# Commodore 64, Commodore 128 SFX is a Self Extracting Archive which uses the LHArc compression algorithm. It was originally developed by Chris Smeets on the Commodore platform, and runs primarily using the CS-DOS extension for the Commodore 128. Unlike its predecessor SDA, SFX files will run on both the Commodore 64 and Commodore 128 regardless of which machine they were created on.
+*.sfx
+# An archive format designed for the Apple II series of computers. The canonical implementation is ShrinkIt, which can operate on disk images as well as files. Preferred compression algorithm is a combination of RLE and 12-bit LZW. Archives can be manipulated with the command-line NuLib tool, or the Windows-based CiderPress.
+*.shk
+# A compression format Shared on Apple Macintosh computers. The free StuffIt Expander is available for Windows and OS X.
+# The replacement for the .sit format that supports more compression methods, UNIX file permissions, long file names, very large files, more encryption options, data specific compressors (JPEG, Zip, PDF, 24-bit image, MP3). The free StuffIt Expander is available for Windows and OS X.
+# A royalty-free compressing format
+*.sqx
+# The "tarball" format combines tar archives with a file-based compression scheme (usually gzip). Sharedly used for source and binary distribution on Unix-like platforms, widely available elsewhere.
+*.tar.gz
+*.tar.Z
+*.tar.bz2
+*.tbz2
+*.tar.lzma
+*.tlz
+# UltraCompressor 2.3 was developed to act as an alternative to the then popular PKZIP application. The main feature of the application is its ability to create large archives. This means that compressed archives with the UC2 file extension can hold almost 1 million files.
+*.uc
+*.uc0
+*.uc2
+*.ucn
+*.ur2
+*.ue2
+# Based on PAQ, RZM, CSC, CCM, and 7zip. The format consists of a PAQ, RZM, CSC, or CCM compressed file and a manifest with compression settings stored in a 7z archive.
+*.uca
+# A high compression rate archive format originally for DOS.
+*.uha
+# Web Application archive (Java-based web app)
+*.war
+# File-based disk image format developed to deploy Microsoft Windows.
+*.wim
+# XAR
+# Native format of the Open Source KiriKiri Visual Novel engine. Uses combination of block splitting and zlib compression. The filenames and pathes are stored in UTF-16 format. For integrity check, the Adler-32 hashsum is used. For many commercial games, the files are encrypted (and decoded on runtime) via so-called "cxdec" module, which implements xor-based encryption.
+*.xp3
+# Yamazaki zipper archive. Compression format used in DeepFreezer archiver utility created by Yamazaki Satoshi. Read and write support exists in TUGZip, IZArc and ZipZag
+*.yz1
+# The most widely used compression format on Microsoft Windows. Sharedly used on Macintosh and Unix systems as well.
+# application/x-zoo zoo Multiple Multiple Yes
+*.zoo
+# Journaling (append-only) archive format with rollback capability. Supports deduplication and incremental update based on last-modified dates. Multi-threaded. Compresses in LZ77, BWT, and context mixing formats. Open source.
+*.zpaq
+# Archiver with a compression algorithm based on the Burrows-Wheeler transform method.
+*.zz
+
+
+### Csharp ###
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.tlog
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio 6 auto-generated project file (contains which files were open etc.)
+*.vbp
+
+# Visual Studio 6 workspace and project file (working project files containing files to include in project)
+*.dsw
+*.dsp
+
+# Visual Studio 6 technical files
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# Visual Studio History (VSHistory) files
+.vshistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
+
+# VS Code files for those working on multiple tools
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+*.code-workspace
+
+# Local History for Visual Studio Code
+.history/
+
+# Windows Installer files from build outputs
+*.msix
+
+# JetBrains Rider
+*.sln.iml
+
+### Data ###
+*.csv
+*.dat
+*.efx
+*.gbr
+*.pps
+*.ppt
+*.pptx
+*.tax2010
+*.vcf
+*.xml
+
+### Database ###
+*.accdb
+*.db
+*.dbf
+*.mdb
+*.sqlite3
+
+### DataRecovery ###
+
+### From https://en.wikipedia.org/wiki/List_of_archive_formats
+
+## Data recovery
+# File format used by dvdisaster to be used for data recovery when discs become damaged or partially unreadable.
+*.ecc
+# File format used in conjunction with any archive format to provide redundancy and data recovery, most often in newsgroup distribution of binary files.
+*.par
+*.par2
+
+
+### Diff ###
+*.patch
+*.diff
+
+### dotenv ###
+.env
+
+### DotfilesSh ###
+local-patch
+patched-src
+
+### DiskImage ###
+*.toast
+*.vcd
+
+### DotSettings ###
+*.DotSettings
+
+### Executable ###
+*.app
+*.bat
+*.cgi
+*.com
+*.exe
+*.gadget
+*.pif
+*.vb
+*.wsf
+
+### Git ###
+# Created by git for backups. To disable backups in Git:
+# $ git config --global mergetool.keepBackup false
+*.orig
+
+# Created by git when using merge tools for conflicts
+*.BACKUP.*
+*.BASE.*
+*.LOCAL.*
+*.REMOTE.*
+*_BACKUP_*.txt
+*_BASE_*.txt
+*_LOCAL_*.txt
+*_REMOTE_*.txt
+
+### GitBook ###
+# Node rules:
+## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+## Dependency directory
+## Commenting this out is preferred by some people, see
+## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
+node_modules
+
+# Book build output
+_book
+
+# eBook build output
+*.epub
+*.mobi
+*.pdf
+
+### DotnetCore ###
+# .NET Core build folders
+bin/
+obj/
+
+# Shared node modules locations
+/node_modules
+/wwwroot/node_modules
+
+### macOS ###
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+### macOS Patch ###
+# iCloud generated files
+*.icloud
+
+### MicrosoftOffice ###
+
+# Word temporary
+~$*.doc*
+
+# Word Auto Backup File
+Backup of *.doc*
+
+# Excel temporary
+~$*.xls*
+
+# Excel Backup File
+*.xlk
+
+# PowerPoint temporary
+~$*.ppt*
+
+# Visio autosave temporary files
+*.~vsd*
+
+### OSX ###
+# General
+
+# Icon must end with two \r
+
+# Thumbnails
+
+# Files that might appear in the root of a volume
+
+# Directories potentially created on remote AFP share
+
+### Serverless ###
+# Ignore build directory
+.serverless
+
+### Spreadsheet ###
+*.xlr
+*.xls
+*.xlsx
+
+### SSH ###
+**/.ssh/id_*
+**/.ssh/*_id_*
+**/.ssh/known_hosts
+
+### Test ###
+### Ignore all files that could be used to test your code and
+### you wouldn't want to push
+
+# Reference https://en.wikipedia.org/wiki/Metasyntactic_variable
+
+# Most Shared
+*foo
+*bar
+*fubar
+*foobar
+*baz
+
+# Less Shared
+*qux
+*quux
+*bongo
+*bazola
+*ztesch
+
+# UK, Australia
+*wibble
+*wobble
+*wubble
+*flob
+*blep
+*blah
+*boop
+*beep
+
+# Japanese
+*hoge
+*piyo
+*fuga
+*hogera
+*hogehoge
+
+# Portugal, Spain
+*fulano
+*sicrano
+*beltrano
+*mengano
+*perengano
+*zutano
+
+# France, Italy, the Netherlands
+*toto
+*titi
+*tata
+*tutu
+*pipppo
+*pluto
+*paperino
+*aap
+*noot
+*mies
+
+# Other names that would make sense
+*tests
+*testsdir
+*testsfile
+*testsfiles
+*test
+*testdir
+*testfile
+*testfiles
+*testing
+*testingdir
+*testingfile
+*testingfiles
+*temp
+*tempdir
+*tempfile
+*tempfiles
+*tmp
+*tmpdir
+*tmpfile
+*tmpfiles
+*lol
+
+### Text ###
+*.doc
+*.docx
+*.msg
+*.pages
+*.rtf
+*.txt
+*.wpd
+*.wps
+
+### Textpattern ###
+.htaccess
+css.php
+rpc/
+sites/site*/admin/
+sites/site*/private/
+sites/site*/public/admin/
+sites/site*/public/setup/
+sites/site*/public/theme/
+textpattern/
+HISTORY.txt
+README.txt
+
+### VisualBasic ###
+*.csi
+*.exp
+*.lib
+*.lvw
+*.dca
+*.bak
+*.old
+*.enc
+# Windows image file caches
+Thumbs.db
+ehthumbs.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+
+# Windows shortcuts
+*.lnk
+
+# =========================
+# Operating System Files
+# =========================
+
+# OSX
+# =========================
+
+
+# Thumbnails
+
+# Files that might appear in the root of a volume
+
+# Directories potentially created on remote AFP share
+
+### Linux ###
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+### VisualStudioCode ###
+!.vscode/*.code-snippets
+
+# Local History for Visual Studio Code
+
+# Built Visual Studio Code Extensions
+*.vsix
+
+### VisualStudioCode Patch ###
+# Ignore all local history of files
+.history
+.ionide
+
+# Support for Project snippet scope
+.vscode/*.code-snippets
+
+# Ignore code-workspaces
+
+### VisualStudio ###
+
+# User-specific files
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+
+# Mono auto generated files
+
+# Build results
+
+# Visual Studio 2015/2017 cache/options directory
+# Uncomment if you have tasks that create the project's static files in wwwroot
+
+# Visual Studio 2017 auto generated files
+
+# MSTest test Results
+
+# NUnit
+
+# Build Results of an ATL Project
+
+# Benchmark Results
+
+# .NET Core
+
+# ASP.NET Scaffolding
+
+# StyleCop
+
+# Files built by Visual Studio
+
+# Chutzpah Test files
+
+# Visual C++ cache files
+
+# Visual Studio profiler
+
+# Visual Studio Trace Files
+
+# TFS 2012 Local Workspace
+
+# Guidance Automation Toolkit
+
+# ReSharper is a .NET coding add-in
+
+# TeamCity is a build add-in
+
+# DotCover is a Code Coverage Tool
+
+# AxoCover is a Code Coverage Tool
+
+# Coverlet is a free, cross platform Code Coverage Tool
+
+# Visual Studio code coverage results
+
+# NCrunch
+
+# MightyMoose
+
+# Web workbench (sass)
+
+# Installshield output folder
+
+# DocProject is a documentation generator add-in
+
+# Click-Once directory
+
+# Publish Web Output
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+
+# NuGet Packages
+# NuGet Symbol Packages
+# The packages folder can be ignored because of Package Restore
+# except build/, which is used as an MSBuild target.
+# Uncomment if necessary however generally it will be regenerated when needed
+# NuGet v3's project.json files produces more ignorable files
+
+# Microsoft Azure Build Output
+
+# Microsoft Azure Emulator
+
+# Windows Store app package directories and files
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+# but keep track of directories ending in .cache
+
+# Others
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+
+# RIA/Silverlight projects
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+
+# SQL Server files
+
+# Business Intelligence projects
+
+# Microsoft Fakes
+
+# GhostDoc plugin setting file
+
+# Node.js Tools for Visual Studio
+
+# Visual Studio 6 build log
+
+# Visual Studio 6 workspace options file
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+
+# Visual Studio 6 auto-generated project file (contains which files were open etc.)
+
+# Visual Studio 6 workspace and project file (working project files containing files to include in project)
+
+# Visual Studio 6 technical files
+
+# Visual Studio LightSwitch build output
+
+# Paket dependency manager
+
+# FAKE - F# Make
+
+# CodeRush personal settings
+
+# Python Tools for Visual Studio (PTVS)
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+
+# Telerik's JustMock configuration file
+
+# BizTalk build output
+
+# OpenCover UI analysis results
+
+# Azure Stream Analytics local run output
+
+# MSBuild Binary and Structured Log
+
+# NVidia Nsight GPU debugger configuration file
+
+# MFractors (Xamarin productivity tool) working folder
+
+# Local History for Visual Studio
+
+# Visual Studio History (VSHistory) files
+
+# BeatPulse healthcheck temp database
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+
+# Ionide (cross platform F# VS Code tools) working folder
+
+# Fody - auto-generated XML schema
+
+# VS Code files for those working on multiple tools
+
+# Local History for Visual Studio Code
+
+# Windows Installer files from build outputs
+
+# JetBrains Rider
+
+### VisualStudio Patch ###
+# Additional files built by Visual Studio
+
+# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,visualstudio,visualbasic,test,ssh,spreadsheet,serverless,osx,microsoftoffice,macos,linux,executable,dotnetcore,dotfilessh,diskimage,datarecovery,database,data,csharp,compressedarchive,compressed,certificates,archive,archives,azurefunctions,diff,dotenv,dotsettings,git,gitbook,text,textpattern
+
+# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
+
+[Nn][Uu][Gg][Ee][Tt].[Cc][Oo][Nn][Ff][Ii][Gg]
+*.nupkg
+*.cache
+*.assets.json
+*.g.*
+*.generated.*
+*.nuget.g.props
+*.nuget.g.targets
+*.dll
+*/site/*
+*site/*
diff --git a/Dgmjr.NET.Sdk/Assets/DefaultPackageIcon.png b/Dgmjr.NET.Sdk/Assets/DefaultPackageIcon.png
new file mode 100644
index 0000000..db07a03
Binary files /dev/null and b/Dgmjr.NET.Sdk/Assets/DefaultPackageIcon.png differ
diff --git a/Dgmjr.NET.Sdk/Assets/Icon.xcf b/Dgmjr.NET.Sdk/Assets/Icon.xcf
new file mode 100644
index 0000000..ee3dd67
Binary files /dev/null and b/Dgmjr.NET.Sdk/Assets/Icon.xcf differ
diff --git a/Dgmjr.NET.Sdk/Assets/dgmjr.pub b/Dgmjr.NET.Sdk/Assets/dgmjr.pub
new file mode 100644
index 0000000..52df41b
Binary files /dev/null and b/Dgmjr.NET.Sdk/Assets/dgmjr.pub differ
diff --git a/Dgmjr.NET.Sdk/Assets/dgmjr.pub.asc b/Dgmjr.NET.Sdk/Assets/dgmjr.pub.asc
new file mode 100644
index 0000000..9fc7277
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Assets/dgmjr.pub.asc
@@ -0,0 +1,12 @@
+Mono StrongName - version 6.12.0.182
+StrongName utility for signing assemblies
+Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.
+
+Public Key:
+00240000048000009400000006020000002400005253413100040000010001000d802c8a5e6d2d
+2a7487bf92dd89a0689f004d27d8eaef54cc62aed0afd643dc33222f020003d3fc79c76c0a791e
+b7ae56d0d17bac639122f17a8f7f246ae6481045146327ebc0eab8878dbdc79aa6ad1bc26b56bb
+e0ce5eb443c7450a3496d8bc181135c01b98e974ef825ea9b247bd4bc95023b9394e7073e278cd
+e1ca0c94
+
+Public Key Token: 44326fa453475ade
diff --git a/Dgmjr.NET.Sdk/Assets/dgmjr.snk b/Dgmjr.NET.Sdk/Assets/dgmjr.snk
new file mode 100644
index 0000000..c1bceeb
Binary files /dev/null and b/Dgmjr.NET.Sdk/Assets/dgmjr.snk differ
diff --git a/Dgmjr.NET.Sdk/Common/AAGitRoot.props b/Dgmjr.NET.Sdk/Common/AAGitRoot.props
new file mode 100644
index 0000000..d11b7be
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/AAGitRoot.props
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+ <_GitRoot Condition="'$(_GitRoot)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), ".git"))
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ACustomItemTypes.props b/Dgmjr.NET.Sdk/Common/ACustomItemTypes.props
new file mode 100644
index 0000000..2606ef9
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ACustomItemTypes.props
@@ -0,0 +1,39 @@
+
+
+
+ true
+ Native;BuildTransitive;BuildMultitargeting;ContentFiles;Compile;Runtime
+ true
+ Analyzers;Build
+ true
+ All
+
+
+ true
+ Always
+ Always
+ true
+ Analyzer
+ true
+ false
+ Configuration=$(Configuration)
+ Restore;Build;Pack
+
+
+ true
+ Analyzers;Runtime;Native
+ true
+ ContentFiles;Build;BuildTransitive;BuildMultitargeting
+ true
+ All
+
+
+ true
+ ContentFiles;Native;Analyzers
+ true
+ Build;BuildTransitive;BuildMultitargeting;Runtime;Compile
+ true
+ None
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ADefaultBuildConfiguration.props b/Dgmjr.NET.Sdk/Common/ADefaultBuildConfiguration.props
new file mode 100644
index 0000000..99bf692
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ADefaultBuildConfiguration.props
@@ -0,0 +1,25 @@
+
+
+
+
+ Local;Debug;Staging;Release;Testing
+ Local
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/AIsMultiTargeting.props b/Dgmjr.NET.Sdk/Common/AIsMultiTargeting.props
new file mode 100644
index 0000000..cf539fd
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/AIsMultiTargeting.props
@@ -0,0 +1,17 @@
+
+
+
+
+ $('$(TargetFrameworks)' != '' And '$(TargetFramework)' == '')
+
+
diff --git a/Dgmjr.NET.Sdk/Common/AssemblySigning.props b/Dgmjr.NET.Sdk/Common/AssemblySigning.props
new file mode 100755
index 0000000..9ad2589
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/AssemblySigning.props
@@ -0,0 +1,18 @@
+
+
+
+
+ true
+ $(MSBuildThisFileDirectory)/../Assets/dgmjr.snk
+
+
diff --git a/Dgmjr.NET.Sdk/Common/AssetTargetFallback.props b/Dgmjr.NET.Sdk/Common/AssetTargetFallback.props
new file mode 100644
index 0000000..3641b9d
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/AssetTargetFallback.props
@@ -0,0 +1,29 @@
+
+
+
+
+ netstandard1.6;netstandard1.5;netstandard1.3;netstandard1.0;netstandard1.0
+ netstandard2.0;$(NetStd1TargetFrameworks)
+ netstandard2.1;$(NetStd20TargetFrameworks)
+ netcoreapp2.2;netcoreapp2.1;netcoreapp2.0
+ netcoreapp3.1;$(NetCoreApp22TargetFrameworks)
+ net6.0;$(NetStd21TargetFrameworks)
+ net7.0;$(Net60TargetFrameworks)
+ net8.0;$(Net70TargetFrameworks)
+ $(Net70TargetFrameworks)
+ (Net60TargetFrameworks)
+ $(NetStd21TargetFrameworks)
+ $(NetStd21TargetFrameworks);$(NetCoreApp31TargetFrameworks);$(NetCoreApp22TargetFrameworks)
+ $(NetStd20TargetFrameworks);$(NetStd1TargetFrameworks);$(NetCoreApp22TargetFrameworks)
+
+
diff --git a/Dgmjr.NET.Sdk/Common/Authors-Owners.props b/Dgmjr.NET.Sdk/Common/Authors-Owners.props
new file mode 100755
index 0000000..8720983
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/Authors-Owners.props
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(GetPackageMetadataDependsOn);
+ SetPackageOwnersAndAuthors;
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/BuildConfigurations.props b/Dgmjr.NET.Sdk/Common/BuildConfigurations.props
new file mode 100755
index 0000000..0d90022
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/BuildConfigurations.props
@@ -0,0 +1,57 @@
+
+
+
+
+ Local;Debug;Staging;Release;Testing
+
+
+ full
+ false
+ $(DefineConstants);TRACE;DEBUG;LOCAL
+ 4
+ true
+ true
+ true
+
+
+ full
+ false
+ $(DefineConstants);TRACE;DEBUG;LOCAL
+ 4
+ true
+ true
+ true
+
+
+ Full
+ 4
+ $(DefineConstants);TRACE;DEBUG;LOCAL;DEVELOPMENT
+ false
+ true
+ true
+
+
+ $(DefineConstants);DEBUG;STAGING
+ embedded
+ true
+ false
+ false
+
+
+ $(DefineConstants);RELEASE;PRODUCTION
+ portable
+ true
+ false
+ false
+
+
diff --git a/Dgmjr.NET.Sdk/Common/BuildFromSource.props b/Dgmjr.NET.Sdk/Common/BuildFromSource.props
new file mode 100644
index 0000000..e671981
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/BuildFromSource.props
@@ -0,0 +1,27 @@
+
+
+
+
+ true
+ imported
+
+
+
+
+
+
+ $([System.IO.Path]::GetTempFileName())
+ $(TempFile).props
+ $(TempFile).targets
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CentralPackageVersions.props b/Dgmjr.NET.Sdk/Common/CentralPackageVersions.props
new file mode 100644
index 0000000..dc6baa0
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CentralPackageVersions.props
@@ -0,0 +1,21 @@
+
+
+
+
+ $(MSBuildThisFileDirectory)Imported
+ true
+ true
+ true
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CentralPackages.props b/Dgmjr.NET.Sdk/Common/CentralPackages.props
new file mode 100644
index 0000000..01a53d2
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CentralPackages.props
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CentralPackagesFile.props b/Dgmjr.NET.Sdk/Common/CentralPackagesFile.props
new file mode 100644
index 0000000..2a23ede
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CentralPackagesFile.props
@@ -0,0 +1,23 @@
+
+
+
+
+ Packages.pkgs
+ $([MSBuild]::GetDirectoryNameOfFileAbove("$(MSBuildProjectDirectory)", "Packages/$(CentralPackagesFileName)"))/Packages/$(CentralPackagesFileName)
+ $(CustomBeforeCentralPackageVersionsProps);
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CodeDocumentation.props b/Dgmjr.NET.Sdk/Common/CodeDocumentation.props
new file mode 100755
index 0000000..e81300a
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CodeDocumentation.props
@@ -0,0 +1,22 @@
+
+
+
+
+ obj/
+ true
+ $(OutputPath)$(MSBuildProjectName).xml
+ true
+ true
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CodeGeneration.props b/Dgmjr.NET.Sdk/Common/CodeGeneration.props
new file mode 100755
index 0000000..7dee3d2
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CodeGeneration.props
@@ -0,0 +1,19 @@
+
+
+
+
+ obj
+ true
+ $(MSBuildProjectDirectory)/$(BaseIntermediateOutputPath)/GeneratedFiles
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CompilerVisibleProperties.props b/Dgmjr.NET.Sdk/Common/CompilerVisibleProperties.props
new file mode 100644
index 0000000..4c523bb
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CompilerVisibleProperties.props
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CopyFilesAndSymbolsFromPackages.props b/Dgmjr.NET.Sdk/Common/CopyFilesAndSymbolsFromPackages.props
new file mode 100755
index 0000000..e8b722e
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CopyFilesAndSymbolsFromPackages.props
@@ -0,0 +1,20 @@
+
+
+
+
+ true
+ true
+ ture
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CopyLocalLockFileAssemblies.props b/Dgmjr.NET.Sdk/Common/CopyLocalLockFileAssemblies.props
new file mode 100644
index 0000000..3633a90
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CopyLocalLockFileAssemblies.props
@@ -0,0 +1,17 @@
+
+
+
+
+ false
+
+
diff --git a/Dgmjr.NET.Sdk/Common/Custom/BeforeCentralPackageVersions.targets b/Dgmjr.NET.Sdk/Common/Custom/BeforeCentralPackageVersions.targets
new file mode 100644
index 0000000..d1f4cf2
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/Custom/BeforeCentralPackageVersions.targets
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/Custom/BeforeNoTargets.props b/Dgmjr.NET.Sdk/Common/Custom/BeforeNoTargets.props
new file mode 100644
index 0000000..133195d
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/Custom/BeforeNoTargets.props
@@ -0,0 +1,5 @@
+
+
+ netstandard1.0
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterCentralPackageVersions.props b/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterCentralPackageVersions.props
new file mode 100755
index 0000000..580b400
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterCentralPackageVersions.props
@@ -0,0 +1,26 @@
+
+
+
+
+
+ $(CustomBeforeCentralPackageVersionsProps);
+
+
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomBeforeCentralPackageVersions.props", "$(MSBuildProjectDirectory)"))
+
+
+ $(CustomAfterCentralPackageVersionsProps);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomAfterCentralPackageVersions.props", "$(MSBuildProjectDirectory)"))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterNoTargets.props b/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterNoTargets.props
new file mode 100755
index 0000000..9f235fa
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterNoTargets.props
@@ -0,0 +1,24 @@
+
+
+
+
+
+ $(CustomBeforeNoTargetsProps);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomBeforeNoTargets.props", "$(MSBuildProjectDirectory)"))
+
+
+ $(CustomAfterNoTargetsProps);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomAfterNoTargets.props", "$(MSBuildProjectDirectory)"))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterTraversal.props b/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterTraversal.props
new file mode 100755
index 0000000..035373f
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/CustomBeforeAndAfterTraversal.props
@@ -0,0 +1,24 @@
+
+
+
+
+
+ $(CustomBeforeTraversalProps);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomBeforeTraversal.props", "$(MSBuildProjectDirectory)"))
+
+
+ $(CustomAfterTraversalProps);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomAfterTraversal.props", "$(MSBuildProjectDirectory)"))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/Deterministic.props b/Dgmjr.NET.Sdk/Common/Deterministic.props
new file mode 100644
index 0000000..1283273
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/Deterministic.props
@@ -0,0 +1,17 @@
+
+
+
+
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/DevelopmentDependencies.props b/Dgmjr.NET.Sdk/Common/DevelopmentDependencies.props
new file mode 100644
index 0000000..5dfbe46
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/DevelopmentDependencies.props
@@ -0,0 +1,28 @@
+
+
+
+
+
+ %(Identity)
+
+
+
+ %(Identity)
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/DevelopmentDependencies.targets b/Dgmjr.NET.Sdk/Common/DevelopmentDependencies.targets
new file mode 100644
index 0000000..2d14443
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/DevelopmentDependencies.targets
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/EmbeddedResourcesStringExtensions.props b/Dgmjr.NET.Sdk/Common/EmbeddedResourcesStringExtensions.props
new file mode 100644
index 0000000..1080f02
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/EmbeddedResourcesStringExtensions.props
@@ -0,0 +1,17 @@
+
+
+
+
+ .txt|.cs|.sql|.json|.md|.css|.htm|.html|.xml|.csv
+
+
diff --git a/Dgmjr.NET.Sdk/Common/EmitNuspec.props b/Dgmjr.NET.Sdk/Common/EmitNuspec.props
new file mode 100644
index 0000000..f32d6a2
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/EmitNuspec.props
@@ -0,0 +1,17 @@
+
+
+
+
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/EnablePreviewFeatures.props b/Dgmjr.NET.Sdk/Common/EnablePreviewFeatures.props
new file mode 100644
index 0000000..60a2f1f
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/EnablePreviewFeatures.props
@@ -0,0 +1,16 @@
+
+
+
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/EnsureLicense.props b/Dgmjr.NET.Sdk/Common/EnsureLicense.props
new file mode 100644
index 0000000..13560ab
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/EnsureLicense.props
@@ -0,0 +1,24 @@
+
+
+
+
+ included
+
+
+ $(PackDependsOn);
+ EnsureLicenseFileExists
+
+ true
+ false
+
+
diff --git a/Dgmjr.NET.Sdk/Common/Format.targets b/Dgmjr.NET.Sdk/Common/Format.targets
new file mode 100644
index 0000000..58cc6d7
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/Format.targets
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/GenerateMarkdownDocs.props b/Dgmjr.NET.Sdk/Common/GenerateMarkdownDocs.props
new file mode 100644
index 0000000..99ca57f
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/GenerateMarkdownDocs.props
@@ -0,0 +1,19 @@
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/GlobalUsings.cs b/Dgmjr.NET.Sdk/Common/GlobalUsings.cs
new file mode 100644
index 0000000..ee4a2d7
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/GlobalUsings.cs
@@ -0,0 +1,53 @@
+/*
+ * DgmjrNamespace.cs
+ *
+ * Created: 2023-01-10-10:37:17
+ * Modified: 2023-01-10-10:37:17
+ *
+ * Author: David G. Moore, Jr.
+ *
+ * Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
+ * License: MIT (https://opensource.org/licenses/MIT)
+ */
+
+#pragma warning disable CD1607 // The file needs documentation headers.
+#pragma warning disable RCS1072 // Remove empty namespace declaration.
+#pragma warning disable S3261 // Namespaces should not be empty
+
+namespace Dgmjr { }
+
+namespace System { }
+
+namespace System.Collections.Generic { }
+
+namespace System.Diagnostics { }
+
+namespace System.IO { }
+
+namespace System.Linq { }
+
+namespace System.Linq.Expressions { }
+
+namespace System.Reflection { }
+
+namespace System.Security.Claims { }
+
+namespace System.Security.Cryptography { }
+
+namespace System.Text.RegularExpressions { }
+
+namespace System.Threading { }
+
+namespace System.Threading.Tasks { }
+
+namespace System.Diagnostics.CodeAnalysis { }
+
+namespace System.Net.Http { }
+
+namespace System.ComponentModel { }
+
+namespace System.CodeDom.Compiler { }
+
+#pragma warning restore S3261 // Namespaces should not be empty
+#pragma warning restore CD1607 // The file needs documentation headers.
+#pragma warning restore RCS1072 // Remove empty namespace declaration.
diff --git a/Dgmjr.NET.Sdk/Common/GlobalUsings.props b/Dgmjr.NET.Sdk/Common/GlobalUsings.props
new file mode 100644
index 0000000..42a82cb
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/GlobalUsings.props
@@ -0,0 +1,59 @@
+
+
+ @(Compile->Count()) > 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ImplicitUsings.props b/Dgmjr.NET.Sdk/Common/ImplicitUsings.props
new file mode 100644
index 0000000..e7999c3
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ImplicitUsings.props
@@ -0,0 +1,17 @@
+
+
+
+
+ enable
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ImportProjectName.props b/Dgmjr.NET.Sdk/Common/ImportProjectName.props
new file mode 100644
index 0000000..98f5259
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ImportProjectName.props
@@ -0,0 +1,19 @@
+
+
+
+
+
+ @(ProjectReference-%3e'%(RootDir)%(Directory)%(Filename).props')
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ImportProjectName.targets b/Dgmjr.NET.Sdk/Common/ImportProjectName.targets
new file mode 100644
index 0000000..65b60d2
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ImportProjectName.targets
@@ -0,0 +1,20 @@
+
+
+
+
+
+ @(ProjectReference-%3e'%(RootDir)%(Directory)%(Filename).targets')
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ItemDefinitionGroups.props b/Dgmjr.NET.Sdk/Common/ItemDefinitionGroups.props
new file mode 100755
index 0000000..f449db5
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ItemDefinitionGroups.props
@@ -0,0 +1,64 @@
+
+
+
+
+ imported
+
+
+
+ true
+ true
+
+ true
+ Compile; Runtime; Build; BuildMultitargeting; BuildTransitive; Native
+ ContentFiles; Analyzers
+
+
+
+
+ true
+ true
+
+ true
+ Always
+ Always
+ Configuration=$(Configuration)
+ true
+ true
+ false
+
+
+
+
+
+
+
+ true
+ true
+
+ true
+ ContentFiles
+ ContentFiles
+ Build; BuildMultitargeting; BuildTransitive; Compile; Runtime; Analyzers; Native
+
+
+
+
+ true
+ true
+ true
+ Build; BuildMultitargeting; BuildTransitive;
+ Compile; Runtime; Analyzers; Native; ContentFiles
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/MinVer.props b/Dgmjr.NET.Sdk/Common/MinVer.props
new file mode 100755
index 0000000..5f2accb
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/MinVer.props
@@ -0,0 +1,25 @@
+
+
+
+
+ imported
+ test
+ Local
+ beta
+ rc
+ preview
+ normal
+ patch
+ 0.0
+
+
diff --git a/Dgmjr.NET.Sdk/Common/NuGetOutputs.props b/Dgmjr.NET.Sdk/Common/NuGetOutputs.props
new file mode 100755
index 0000000..5a6c74d
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/NuGetOutputs.props
@@ -0,0 +1,32 @@
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+
+
diff --git a/Dgmjr.NET.Sdk/Common/NuGetizer.props b/Dgmjr.NET.Sdk/Common/NuGetizer.props
new file mode 100755
index 0000000..9bc52f8
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/NuGetizer.props
@@ -0,0 +1,31 @@
+
+
+
+
+ true
+ true
+ git
+ true
+ true
+ true
+ true
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageIcon.props b/Dgmjr.NET.Sdk/Common/PackageIcon.props
new file mode 100644
index 0000000..9535374
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageIcon.props
@@ -0,0 +1,18 @@
+
+
+
+
+ imported
+ $(MSBuildThisFileDirectory)../Assets/Icon.png
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageMetadata.props b/Dgmjr.NET.Sdk/Common/PackageMetadata.props
new file mode 100755
index 0000000..3d5e2ba
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageMetadata.props
@@ -0,0 +1,36 @@
+
+
+
+
+ Imported
+ $(MSBuildProjectName)
+ DGMJR-IO
+ DGMJR-IO Core Libraries
+ dev@dgmjr.io
+ MIT
+ false
+ true
+ true
+ portable
+ true
+ true
+ enable
+ Monokai
+
+
+
+ $(GetPackageMetadataDependsOn);
+ SetLastMinutePackageMetadata;
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageOutputPath.props b/Dgmjr.NET.Sdk/Common/PackageOutputPath.props
new file mode 100755
index 0000000..d8f2f43
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageOutputPath.props
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageProjectName.props b/Dgmjr.NET.Sdk/Common/PackageProjectName.props
new file mode 100644
index 0000000..ff6e776
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageProjectName.props
@@ -0,0 +1,20 @@
+
+
+
+
+ Imported
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageProjectUrl.props b/Dgmjr.NET.Sdk/Common/PackageProjectUrl.props
new file mode 100755
index 0000000..9d98a2b
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageProjectUrl.props
@@ -0,0 +1,21 @@
+
+
+
+
+ Imported
+
+ $(GetPackageMetadataDependsOn);
+ SetPackageProjectUrl
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageReadme.props b/Dgmjr.NET.Sdk/Common/PackageReadme.props
new file mode 100644
index 0000000..3d7ed75
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageReadme.props
@@ -0,0 +1,22 @@
+
+
+
+
+ imported
+
+
+ $(PackDependsOn);
+ EnsurePackageReadme;
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageTags.props b/Dgmjr.NET.Sdk/Common/PackageTags.props
new file mode 100755
index 0000000..cb0ed3e
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageTags.props
@@ -0,0 +1,25 @@
+
+
+
+
+ Imported
+
+ $(GetPackageMetadataDependsOn);
+ SetPackageTags
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/PackageVersionOverride.props b/Dgmjr.NET.Sdk/Common/PackageVersionOverride.props
new file mode 100644
index 0000000..4fd9af0
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/PackageVersionOverride.props
@@ -0,0 +1,42 @@
+
+
+
+
+
+ Imported
+ $(PackageVersionOverride)
+ $([System.Text.RegularExpressions.Regex]::Replace("$(PackageVersionOverride)", "\-.*", ""))
+ $([System.Text.RegularExpressions.Regex]::Replace("$(PackageVersionOverride)", "\-.*", ""))
+ $(PackageVersionOverride)
+
+
+
+ $(GetPackageMetadataDependsOn);
+ GetPackageVersionOverride;
+
+
+ $(GetPackageVersionDependsOn);
+ GetPackageVersionOverride;
+
+
+ $(InjectThisAssemblyProjectDependsOn);
+ GetPackageVersion;
+ GetPackageMetadata;
+
+
+ $(PackDependsOn);
+ GetPackageVersion;
+ GetPackageMetadata;
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ProjectMetadata.props b/Dgmjr.NET.Sdk/Common/ProjectMetadata.props
new file mode 100755
index 0000000..6b4c807
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ProjectMetadata.props
@@ -0,0 +1,30 @@
+
+
+
+
+ $(MSBuildProjectName)
+ $(MSBuildProjectName)
+ $(MSBuildProjectName)
+ $(AssemblyTitle)
+ en
+ en
+ preview
+ true
+ portable
+ enable
+ enable
+ true
+ LatestPatch
+ Library
+
+
diff --git a/Dgmjr.NET.Sdk/Common/ProjectTypeInfo.props b/Dgmjr.NET.Sdk/Common/ProjectTypeInfo.props
new file mode 100644
index 0000000..ae4761c
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/ProjectTypeInfo.props
@@ -0,0 +1,23 @@
+
+
+
+
+ @(PackageReference->AnyHaveMetadataValue("Identity", "Microsoft.NET.Test.Sdk"))
+ true
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/SlnGen.props b/Dgmjr.NET.Sdk/Common/SlnGen.props
new file mode 100644
index 0000000..c3aa792
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/SlnGen.props
@@ -0,0 +1,62 @@
+
+
+
+
+ $('$(MSBuildProjectExtension)' != '.csproj')
+ false
+ $(MSbuildProjectName)
+ $([MSBuild]::EnsureTrailingSlash($([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), "Directory.Build.props"))))Directory.Build.props
+ $([MSBuild]::EnsureTrailingSlash($([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), "Directory.Build.targets"))))Directory.Build.targets
+ $([MSBuild]::EnsureTrailingSlash($([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), "global.json"))))global.json
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ tests
+ src
+
+
diff --git a/Dgmjr.NET.Sdk/Common/SourceLinkPatch.props b/Dgmjr.NET.Sdk/Common/SourceLinkPatch.props
new file mode 100644
index 0000000..3c6dc56
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/SourceLinkPatch.props
@@ -0,0 +1,18 @@
+
+
+
+
+ <_MicrosoftSourceLinkCommonAssemblyFile>$(Pkg_Microsoft_SourceLink_Common)/tools/Microsoft.SourceLink.Common.dll
+ $(Pkg_Microsoft_Build_Tasks_Git)/tools/Microsoft.Build.Tasks.Git.dll
+
+
diff --git a/Dgmjr.NET.Sdk/Common/TargetFrameworks.props b/Dgmjr.NET.Sdk/Common/TargetFrameworks.props
new file mode 100644
index 0000000..a77eb8e
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/TargetFrameworks.props
@@ -0,0 +1,36 @@
+
+
+
+
+ netstandard1.0
+
+
+ netstandard1.0;netstandard1.1;netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6
+ netstandard2.0;netstandard2.1
+ $(NetStandard1TargetFrameworks);$(NetStandard2TargetFrameworks)
+ netcoreapp1.0;netcoreapp1.1
+ netcoreapp2.0;netcoreapp2.1;netcoreapp2.2
+ netcoreapp3.0;netcoreapp3.1
+ net5.0;net6.0;net7.0
+
+
+ netstandard2.0;netstandard2.1
+ $(TargetedDotNetStandard1Frameworks);$(TargetedDotNetStandard2Frameworks)
+ netcoreapp3.1
+ net6.0;net8.0
+
+ $(TargetedDotNetStandardFrameworks);$(TargetedDotNetCoreAppFrameworks);$(TargetedDotNetFrameworks)
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/Testing.props b/Dgmjr.NET.Sdk/Common/Testing.props
new file mode 100755
index 0000000..56b1978
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/Testing.props
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+ @(PackageReference)
+ Testing
+
+
diff --git a/Dgmjr.NET.Sdk/Common/TestingLocal.props b/Dgmjr.NET.Sdk/Common/TestingLocal.props
new file mode 100755
index 0000000..6fd4bd5
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/TestingLocal.props
@@ -0,0 +1,34 @@
+
+
+
+
+
+ 0.0.1-Local
+ 0.0.1-Local
+ 0.0.1-Local
+ 0.0.1-Local
+
+ -Local
+
+
+
+ 0.0.1-Testing
+ 0.0.1-Testing
+ 0.0.1-Testing
+ 0.0.1-Testing
+
+ -Testing
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Common/UserSecrets.props b/Dgmjr.NET.Sdk/Common/UserSecrets.props
new file mode 100644
index 0000000..4cbfc69
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Common/UserSecrets.props
@@ -0,0 +1,17 @@
+
+
+
+
+ e6b186e0-e9c0-45e1-a0e0-caaf78d8b2d5
+
+
diff --git a/Dgmjr.NET.Sdk/Dgmjr.NET.Sdk.csproj b/Dgmjr.NET.Sdk/Dgmjr.NET.Sdk.csproj
new file mode 100644
index 0000000..a2e812d
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Dgmjr.NET.Sdk.csproj
@@ -0,0 +1,97 @@
+
+
+
+
+
+ netstandard2.0
+ EB008C4C-9C3A-4498-A19D-34A42B6E2CE1
+ FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
+ true
+ true
+ true
+ true
+ false
+
+
+
+ The DGMJR-IO SDK
+ The DGMJR-IO SDK is a collection of `.props` and `.targets` files that are used to build and package the DGMJR projects.
+ $(MSbuildProjectName)
+ preview
+ MSBuildSdk
+ true
+ true
+ true
+ $(NoWarn);MSB4011
+ icon.png
+ 0.0.23
+ false
+ false
+ false
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Dgmjr.NET.Sdk.sln b/Dgmjr.NET.Sdk/Dgmjr.NET.Sdk.sln
new file mode 100644
index 0000000..cf766d1
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Dgmjr.NET.Sdk.sln
@@ -0,0 +1,42 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+#
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}"
+ ProjectSection(SolutionItems) = preProject
+ Directory.Build.props = Directory.Build.props
+ Directory.Build.targets = Directory.Build.targets
+ ..\..\..\..\global.json = ..\..\..\..\global.json
+ ..\..\..\..\Packages\Versions.Debug.props = ..\..\..\..\Packages\Versions.Debug.props
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.NET.Sdk", "Dgmjr.NET.Sdk.csproj", "{EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Debug|x64.Build.0 = Debug|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Debug|x86.Build.0 = Debug|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Release|x64.ActiveCfg = Release|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Release|x64.Build.0 = Release|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Release|x86.ActiveCfg = Release|Any CPU
+ {EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {22D5BBEC-9F65-45C3-8C41-D5DED9DA5032}
+ EndGlobalSection
+EndGlobal
diff --git a/Dgmjr.NET.Sdk/Directory.Build.props b/Dgmjr.NET.Sdk/Directory.Build.props
new file mode 100644
index 0000000..be0a527
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Directory.Build.props
@@ -0,0 +1,15 @@
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Directory.Build.targets b/Dgmjr.NET.Sdk/Directory.Build.targets
new file mode 100644
index 0000000..abd14a7
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Directory.Build.targets
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/LICENSE.md b/Dgmjr.NET.Sdk/LICENSE.md
new file mode 100644
index 0000000..4f592f8
--- /dev/null
+++ b/Dgmjr.NET.Sdk/LICENSE.md
@@ -0,0 +1,35 @@
+---
+date: 2023-07-13T05:44:46:00-05:00Z
+description: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, yadda, yadda, yadda...
+keywords:
+- IP
+- copyright
+- license
+- mit
+permissions:
+- commercial-use
+- modifications
+- distribution
+- private-use
+conditions:
+- include-copyright
+limitations:
+- liability
+- warranty
+lastmod: 2024-01-0T00:39:00.0000+05:00Z
+license: MIT
+slug: mit-license
+title: MIT License
+type: license
+---
+
+# MIT License
+
+## Copyright © 2022-2024 [David G. Moore, Jr.](mailto:david@dgmjr.io "Send Dr. Moore") ([@dgmjr](https://github.com/dgmjr "Contact Dr. Moore on GitHub")), All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/Dgmjr.NET.Sdk/README.md b/Dgmjr.NET.Sdk/README.md
new file mode 100644
index 0000000..4922749
--- /dev/null
+++ b/Dgmjr.NET.Sdk/README.md
@@ -0,0 +1,82 @@
+---
+title: DGMJR-IO SDK
+authors:
+- dgmjr
+type: readme
+slug: dgmjr-io-sdk
+project: shared
+description: The DGMJR-IO SDK is a collection of `.props` and `.targets` files that are used to build and package the DGMJR projects. It sets a whole boatload of default values and does a shit ton of stuff automagically.
+version: 0.0.1-Local
+lastmod: 2023-07-14T07:49:58.705Z
+date: 2023-07-14T07:49:16.139Z
+license: MIT
+keywords:
+- dotnet
+- sdk
+- dgmjrsdk
+- defaults
+- default-values
+---
+
+# DGMJR-IO SDK
+
+The DGMJR-IO SDK is a collection of `.props` and `.targets` files that are used to build and package the DGMJR projects. It sets a whole boatload of default values and does a shit ton of stuff automagically.
+
+# Getting Started
+
+Put the following code in your `Directory.Build.props` file:
+
+```xml
+
+```
+
+And put the following code in your `Directory.Build.targets` file:
+
+```xml
+
+```
+
+And make sure to add the following to your `global.json` file:
+
+```json
+"msbuild-sdks":{
+ "DgmjrSdk": "0.0.1" // (or the current package version)
+}
+```
+
+Then compile and run your project and it will have all the DGMJR-IO SDK defaults. These include the following:
+
+## Item Definitions
+
+* `Author` - with `Initials` and `Email` metadata, which populate the `Authors` property of the MSBuild (and NuGet) project
+* `Owner` - with `Initials` and `Email` metadata, which populate the `Owners` and `Copyright` properties of the MSBuild (and NuGet) project
+* `PackageTag` - which concatenates all instances of it and populates the `PackageTags` property of the MSBuild (and NuGet) project
+* `SourceCodeReference`, which behaves just like a `PackageReference` except it just pulls the `ContentFiles` and `Build` assets from the package
+* `SourceGenerator`, which behaves just like a `PackageReference` except it just pulls the `Analyzers` and `Build` assets from the package
+* `NoWarn`, which adds all instances to the `NoWarn` property
+
+## Targets
+
+* [`EnsurePackageReadme`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/PackageReadme.targets), which ensures the package contains a `README.md` file at the root; if not, it generates one from the `Title` and `Description` properties and embeds it into the NuGet package
+* [`EnsurePackageIcon`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/PackageIcon.targets), which ensures the package contains an icon file; if theres no file named `Icon.(png/jpg/jpeg)` at the root, it will use a [default icon](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Assets/Icon.png)
+* [`RemoveDuplicateUsings`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/RemoveDuplicateUsings.targets), which removes any duplicate `Using` items from the project
+* [`RemoveDuplicatePackageReferences`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/RemoveDuplicatePackageReferences.targets), which removes any duplicate `Using` items from the project
+* [`PackageProjectName.targets`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/PackageProjectName.targets) - a file that packages any file in the root directory named `[MSBuildProjectName].targets` into the `build` folder of the NuGet package
+* [`PackageProjectName.props`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/PackageProjectName.targets) - a file that packages any file in the root directory named `[MSBuildProjectName].props` into the `build` folder of the NuGet package
+
+## Properties
+
+* [`PackageVersionOverride`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/PackageVersionOverride.props), which allows you to override the package version calculated by `MinVer`
+* A default `UserSecrets` property
+* Default `AssetTargetFallback`s for all .NET versions from .NETStandard 2.0 through .NET 8.0
+* Default values for generating XML documentation as well as pulling the XML docs from referenced packages
+* All `Include[Whatever]OutputGroup` properties set to `true`
+* [`JustInTimeVersioning`](https://github.com/dgmjr-io/JustInTimeVersioning) enabled
+* [`NuGetPush`](https://github.com/dgmjr-io/NuGetPush) enabled
+
+# Miscellaneous
+
+* Assembly signing - ensures the assembly is signed by a key called [`dgmjr.snk`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Assets/dgmjr.snk) located in the [`Assets`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Assets) folder. There's also [`dgmjr.pub`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Assets/dgmjr.pub) (the binary version of the public key) and [`dgmjr.pub.asc`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Assets/dgmjr.pub.asc), which contains the plain text public key and token.
+* [`TestingLocal`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Build/TestingLocal.targets) - Overrides the `AssemblyVersion` attribute to always be `0.0.1-Local` when the `Configuration` is set to `Local`
+* [`Icon.png`](https://github.com/dgmjr-io/DgmjrSdk/blob/main/src/Assets/Icon.png), a default icon file, which will be applied to any package that doesn't have one.
+* [`NuGetizer`](https://github.com/devlooped/nugetizer) enabled by default
diff --git a/Dgmjr.NET.Sdk/README_TEMPLATE.md b/Dgmjr.NET.Sdk/README_TEMPLATE.md
new file mode 100644
index 0000000..a969a24
--- /dev/null
+++ b/Dgmjr.NET.Sdk/README_TEMPLATE.md
@@ -0,0 +1,7 @@
+---
+---
+# ${title}
+
+${description}
+
+
diff --git a/Dgmjr.NET.Sdk/Sdk/Sdk.props b/Dgmjr.NET.Sdk/Sdk/Sdk.props
new file mode 100644
index 0000000..bfe249c
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Sdk/Sdk.props
@@ -0,0 +1,30 @@
+
+
+
+
+ true
+ $(MSBuildThisFileDirectory)Sdk.props
+ $(MSBuildThisFileDirectory)../lib/Dgmjr.NET.Sdk.dll
+ !$(MSBuildProjectName.Equals('Dgmjr.NET.Sdk'))
+ false
+ $(PkgMicrosoft_Build_Tasks_Git)/tools/core/Microsoft.Build.Tasks.Git.dll
+
+
+ true
+ true
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Sdk/Sdk.targets b/Dgmjr.NET.Sdk/Sdk/Sdk.targets
new file mode 100644
index 0000000..530e460
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Sdk/Sdk.targets
@@ -0,0 +1,51 @@
+
+
+
+
+ $(MSBuildThisFileDirectory)Sdk.targets
+ !$(MSBuildProjectName.Equals("Dgmjr.NET.Sdk"))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/ACustomItemTypes.targets b/Dgmjr.NET.Sdk/Targets/ACustomItemTypes.targets
new file mode 100644
index 0000000..7f0f624
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/ACustomItemTypes.targets
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/AssemblyVersion.targets b/Dgmjr.NET.Sdk/Targets/AssemblyVersion.targets
new file mode 100644
index 0000000..bbf3b27
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/AssemblyVersion.targets
@@ -0,0 +1,34 @@
+
+
+
+
+ $(BuildDependsOn);
+ SetAssemblyVersion
+
+
+ $(RestoreDependsOn);
+ SetAssemblyVersion
+
+
+ $(GetPackageMetadataDependsOn);
+ SetAssemblyVersion
+
+
+
+
+ $([System.Text.RegularExpressions.Regex]::Replace("$(PackageVersion)", "\-.*", "")).0
+ $([System.Text.RegularExpressions.Regex]::Replace("$(PackageVersion)", "\-.*", "")).0
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/Authors-Owners.targets b/Dgmjr.NET.Sdk/Targets/Authors-Owners.targets
new file mode 100755
index 0000000..9e1b4a3
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/Authors-Owners.targets
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @(DistinctAuthorsFinal, ', ')
+ @(DistinctOwnersFinal, ', ')
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/BuildFromSource.targets b/Dgmjr.NET.Sdk/Targets/BuildFromSource.targets
new file mode 100644
index 0000000..96bd949
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/BuildFromSource.targets
@@ -0,0 +1,27 @@
+
+
+
+ imported
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/CentralPackageVersions.targets b/Dgmjr.NET.Sdk/Targets/CentralPackageVersions.targets
new file mode 100644
index 0000000..0c72567
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/CentralPackageVersions.targets
@@ -0,0 +1,17 @@
+
+
+
+
+ $(MSBuildThisFileDirectory)Imported
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/CompileLicense.targets b/Dgmjr.NET.Sdk/Targets/CompileLicense.targets
new file mode 100644
index 0000000..81197c9
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/CompileLicense.targets
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/Copyright.targets b/Dgmjr.NET.Sdk/Targets/Copyright.targets
new file mode 100755
index 0000000..a5922a0
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/Copyright.targets
@@ -0,0 +1,26 @@
+
+
+
+
+ Imported
+
+ $(GetPackageMetadataDependsOn);
+ SetPackageCopyright
+
+
+
+
+ © 2022-$([System.DateTime]::Now.Year) $(Owners), All Rights Reserved
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterCentralPackageVersions.targets b/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterCentralPackageVersions.targets
new file mode 100755
index 0000000..28fa087
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterCentralPackageVersions.targets
@@ -0,0 +1,28 @@
+
+
+
+
+
+ $(CustomBeforeCentralPackageVersionsTargets);
+ $(MSBuildThisFileDirectory)Custom/BeforeCentralpackageVersions.targets;
+
+
+ $(CustomBeforeCentralPackageVersionsTargets);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomBeforeCentralPackageVersions.targets", "$(MSBuildProjectDirectory)"))
+
+
+ $(CustomAfterCentralPackageVersionsTargets);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomAfterCentralPackageVersions.targets", "$(MSBuildProjectDirectory)"))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterNoTargets.targets b/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterNoTargets.targets
new file mode 100755
index 0000000..3cc15a6
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterNoTargets.targets
@@ -0,0 +1,25 @@
+
+
+
+
+
+ $(CustomAfterNoTargets);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomBeforeNoTargets.targets", "$(MSBuildProjectDirectory)"));
+ $(MSBuildThisFileDirectory)Custom/CustomBeforeNoTargets.targets
+
+
+ $(CustomAfterNoTargets);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomAfterNoTargets.targets", "$(MSBuildProjectDirectory)"))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterTraversal.targets b/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterTraversal.targets
new file mode 100755
index 0000000..4072dd1
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/CustomBeforeAndAfterTraversal.targets
@@ -0,0 +1,24 @@
+
+
+
+
+
+ $(CustomAfterTraversal);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomBeforeTraversal.targets", "$(MSBuildProjectDirectory)"))
+
+
+ $(CustomAfterTraversal);
+ $([MSBuild]::GetPathOfFileAbove("Directory.CustomAfterTraversal.targets", "$(MSBuildProjectDirectory)"))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/DoNotCleanCachedPackageId.targets b/Dgmjr.NET.Sdk/Targets/DoNotCleanCachedPackageId.targets
new file mode 100644
index 0000000..1f2bbdc
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/DoNotCleanCachedPackageId.targets
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+ <_PackageId>$(PackageId)
+ foo
+
+
+
+
+
+ $(_PackageId)
+ <_PackageId />
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/EnsureLicense.targets b/Dgmjr.NET.Sdk/Targets/EnsureLicense.targets
new file mode 100644
index 0000000..677fb3b
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/EnsureLicense.targets
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/GenerateMarkdownDocs.targets b/Dgmjr.NET.Sdk/Targets/GenerateMarkdownDocs.targets
new file mode 100644
index 0000000..e227419
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/GenerateMarkdownDocs.targets
@@ -0,0 +1,45 @@
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/GetPackageContents.targets b/Dgmjr.NET.Sdk/Targets/GetPackageContents.targets
new file mode 100644
index 0000000..f942229
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/GetPackageContents.targets
@@ -0,0 +1,41 @@
+
+
+
+
+ Imported
+
+
+
+
+ <_PackageFile Remove="@(_PackageFile)" />
+
+
+
+
+
+
+
+
+
+
+ $(PackDependsOn);
+ RemoveNonexistentPackageContents;
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/GetPackageVersion.targets b/Dgmjr.NET.Sdk/Targets/GetPackageVersion.targets
new file mode 100644
index 0000000..49a3229
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/GetPackageVersion.targets
@@ -0,0 +1,20 @@
+
+
+
+
+
+ Imported
+ $([System.Text.RegularExpressions.Regex]::Match($(GitVersionInformation), 'PackageVersion: (.*)').Groups[1].Value)
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/JustInTimeVersioning.targets b/Dgmjr.NET.Sdk/Targets/JustInTimeVersioning.targets
new file mode 100644
index 0000000..ce7670a
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/JustInTimeVersioning.targets
@@ -0,0 +1,13 @@
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/MinVer.targets b/Dgmjr.NET.Sdk/Targets/MinVer.targets
new file mode 100755
index 0000000..cdfe14a
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/MinVer.targets
@@ -0,0 +1,18 @@
+
+
+
+
+ v
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/NoWarn.targets b/Dgmjr.NET.Sdk/Targets/NoWarn.targets
new file mode 100755
index 0000000..b2ec051
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/NoWarn.targets
@@ -0,0 +1,50 @@
+
+
+ true
+ $(RestoreDependsOn);NoWarn
+ $(NoWarn);CA2252;CS8335;NU1603;CS8981;NU1605;S3604;RCS1139;
+
+
+
+ No descripion
+ None
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(NoWarn);@(NoWarn);
+
+
+
+
+ $(NoWarn)
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/NuGetPush.targets b/Dgmjr.NET.Sdk/Targets/NuGetPush.targets
new file mode 100644
index 0000000..d1e98d1
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/NuGetPush.targets
@@ -0,0 +1,13 @@
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/NuGetizer.targets b/Dgmjr.NET.Sdk/Targets/NuGetizer.targets
new file mode 100755
index 0000000..b9c206f
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/NuGetizer.targets
@@ -0,0 +1,26 @@
+
+
+
+
+
+ false
+
+
+
+ $('$(UsingMicrosoftNETSdkWeb)' == 'true')
+ true
+ $(GeneratePackageOnBuild)
+ $(GeneratePackageOnBuild)
+ $(GeneratePackageOnBuild)
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackOverride.targets b/Dgmjr.NET.Sdk/Targets/PackOverride.targets
new file mode 100644
index 0000000..d551c1d
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackOverride.targets
@@ -0,0 +1,3 @@
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageDescription.targets b/Dgmjr.NET.Sdk/Targets/PackageDescription.targets
new file mode 100755
index 0000000..5cba20d
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageDescription.targets
@@ -0,0 +1,24 @@
+
+
+
+
+
+ $(GitRepositoryUrl.Replace(".git", ""))/tree/$(GitSha)
+ Built from [commit $(GitCommit) on branch $(GitBranch) at $(GitCommitDate)]
+($(GitBranchUrl))
+ $(Description)
+
+$(BuildMessage)
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageIcon.targets b/Dgmjr.NET.Sdk/Targets/PackageIcon.targets
new file mode 100644
index 0000000..0d8f006
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageIcon.targets
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageMetadata.targets b/Dgmjr.NET.Sdk/Targets/PackageMetadata.targets
new file mode 100755
index 0000000..ee10299
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageMetadata.targets
@@ -0,0 +1,35 @@
+
+
+
+
+ Imported
+
+
+
+
+
+
+
+
+
+
+
+ Imported
+ $(PackageId)
+ A package for $(PackageId)
+ $(Description)
+ david@dgmjr.io
+ $(PackageLicenseExpresion)
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageProjectName.targets b/Dgmjr.NET.Sdk/Targets/PackageProjectName.targets
new file mode 100644
index 0000000..3176ba7
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageProjectName.targets
@@ -0,0 +1,20 @@
+
+
+
+
+ Imported
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageProjectUrl.targets b/Dgmjr.NET.Sdk/Targets/PackageProjectUrl.targets
new file mode 100755
index 0000000..dacff6f
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageProjectUrl.targets
@@ -0,0 +1,23 @@
+
+
+
+
+
+ Imported
+
+
+
+ https://docs.dgmjr.io/$([System.IO.Path]::GetFileNameWithoutExtension('$(RepositoryUrl)'))
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageReadme.targets b/Dgmjr.NET.Sdk/Targets/PackageReadme.targets
new file mode 100755
index 0000000..cd022d0
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageReadme.targets
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+ imported
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageTags.targets b/Dgmjr.NET.Sdk/Targets/PackageTags.targets
new file mode 100755
index 0000000..72f426b
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageTags.targets
@@ -0,0 +1,24 @@
+
+
+
+
+
+ Imported
+
+
+
+ @(PackageTag->Distinct(), ' ')
+ $(PackageTags.ToLower())
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PackageVersionOverride.targets b/Dgmjr.NET.Sdk/Targets/PackageVersionOverride.targets
new file mode 100755
index 0000000..ca0f090
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PackageVersionOverride.targets
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+ Imported
+
+
+ $(PackageVersionOverride)
+ $([System.Text.RegularExpressions.Regex]::Replace("$(PackageVersionOverride)", "\-.*", ""))
+ $([System.Text.RegularExpressions.Regex]::Replace("$(PackageVersionOverride)", "\-.*", ""))
+ $(PackageVersionOverride)
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/PushToAzureBlobs.targets b/Dgmjr.NET.Sdk/Targets/PushToAzureBlobs.targets
new file mode 100644
index 0000000..aeca00e
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/PushToAzureBlobs.targets
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/ReleaseNotes.targets b/Dgmjr.NET.Sdk/Targets/ReleaseNotes.targets
new file mode 100644
index 0000000..9d16282
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/ReleaseNotes.targets
@@ -0,0 +1,21 @@
+
+
+
+ Imported
+
+
+ $([System.IO.Path]::GetFileNameWithoutExtension('$(GitRepositoryUrl)'))
+ https://github.com/dgmjr-io/$(RepositoryName)/releases/tag/v$(PackageVersion)
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/RemoveDuplicatePackageReferences.targets b/Dgmjr.NET.Sdk/Targets/RemoveDuplicatePackageReferences.targets
new file mode 100644
index 0000000..b974890
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/RemoveDuplicatePackageReferences.targets
@@ -0,0 +1,30 @@
+
+
+
+
+
+ RemoveDuplicatePackageReferences;$(RestoreDependsOn)
+ RemoveDuplicatePackageReferences;$(PackDependsOn)
+ RemoveDuplicatePackageReferences;$(BuildDependsOn)
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/RemoveDuplicateUsings.targets b/Dgmjr.NET.Sdk/Targets/RemoveDuplicateUsings.targets
new file mode 100644
index 0000000..9effc22
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/RemoveDuplicateUsings.targets
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Dgmjr.NET.Sdk/Targets/TestingLocal.targets b/Dgmjr.NET.Sdk/Targets/TestingLocal.targets
new file mode 100755
index 0000000..8060129
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Targets/TestingLocal.targets
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+ <_DgmjrPackageReference Include="@(PackageReference)" Condition="$([System.String]::Copy('%(Identity)').StartsWith('Dgmjr'))" />
+
+
+
diff --git a/src/Tasks/EnsureLicenseFileExists.cs b/Dgmjr.NET.Sdk/Tasks/EnsureLicenseFileExists.cs
similarity index 50%
rename from src/Tasks/EnsureLicenseFileExists.cs
rename to Dgmjr.NET.Sdk/Tasks/EnsureLicenseFileExists.cs
index 64c8da1..d26588a 100644
--- a/src/Tasks/EnsureLicenseFileExists.cs
+++ b/Dgmjr.NET.Sdk/Tasks/EnsureLicenseFileExists.cs
@@ -1,6 +1,8 @@
namespace Dgmjr.Sdk.Tasks;
using Microsoft.Build.Framework;
+using static System.IO.Path;
+using static System.IO.File;
public class EnsureLicenseFileExists : MSBTask
{
@@ -10,22 +12,23 @@ public class EnsureLicenseFileExists : MSBTask
private string LicenseFilePath => Combine(ProjectDirectory, LICENSE_MD);
protected virtual Stream OpenLicenseFileStream() =>
- typeof(EnsureLicenseFileExists).Assembly.GetManifestResourceStream(LICENSE_MD);
+ GetType().Assembly.GetManifestResourceStream(LICENSE_MD);
+
+ protected virtual Stream OpenCreateStream() =>
+ Create(LicenseFilePath);
[Required]
public string MSBuildProjectFullPath { get; set; }
public override bool Execute()
{
- if (!File.Exists(LicenseFilePath))
- {
- Log.LogWarning(
- $"License file '{LICENSE_MD}' not found in project directory: {ProjectDirectory}; adding it."
- );
- using var fs = File.Create(LicenseFilePath);
- using var licenseFileStream = OpenLicenseFileStream();
- licenseFileStream.CopyTo(fs);
- }
+
+ Log.LogWarning(
+ $"License file '{LICENSE_MD}' being copied from {GetType().FullName}."
+ );
+ using var fs = OpenCreateStream();
+ using var licenseFileStream = OpenLicenseFileStream();
+ licenseFileStream.CopyTo(fs);
return true;
}
diff --git a/Dgmjr.NET.Sdk/Tasks/EnsurePackageIcon.cs b/Dgmjr.NET.Sdk/Tasks/EnsurePackageIcon.cs
new file mode 100644
index 0000000..77a72d2
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Tasks/EnsurePackageIcon.cs
@@ -0,0 +1,56 @@
+namespace Dgmjr.Sdk.Tasks;
+using Internal;
+using Microsoft.Build.Framework;
+using static System.IO.Path;
+using static System.IO.File;
+
+public class EnsurePackageIcon : MSBTask
+{
+ protected const string Icon = "icon";
+ protected const string _png = ".png";
+ protected const string _jpg = ".jpg";
+ protected const string _svg = ".svg";
+ protected static readonly string[] _extensions = { _png, _jpg, _svg };
+
+ const string DEFAULT_PACKAGE_ICON_PNG = "DEFAULT_PACKAGE_ICON.png";
+ protected string ProjectDirectory => GetDirectoryName(MSBuildProjectFullPath);
+
+ protected string PackageIconPath => Combine(ProjectDirectory, Icon);
+
+ protected virtual string? GetPackageIconPath() =>
+ _extensions
+ .Select(ext => Combine(ProjectDirectory, $"{Icon}{ext}"))
+ .FirstOrDefault(Exists);
+
+ [Output]
+ public string? PackageIcon => GetFileName(GetPackageIconPath());
+
+ [Required]
+ public string MSBuildProjectFullPath { get; set; }
+
+ protected virtual string DefaultPackageIconExtension => _png;
+
+ protected Stream OpenCreateIconStream() =>
+ Create(Combine(ProjectDirectory, $"{Icon}{DefaultPackageIconExtension}"));
+
+ protected virtual Stream OpenDefaultIconStream() =>
+ GetType().Assembly.GetManifestResourceStream(DEFAULT_PACKAGE_ICON_PNG);
+
+ public override bool Execute()
+ {
+ if (PackageIcon is null)
+ {
+ Log.LogWarning(
+ $"Package icon '{Icon}({_png}/{_jpg}/{_svg}' not found in project directory: {ProjectDirectory}; adding it as {Icon}{DefaultPackageIconExtension} from {GetType().Assembly.FullName}."
+ );
+ using var fs = OpenCreateIconStream();
+ using var defaultIconStream = OpenDefaultIconStream();
+ defaultIconStream.CopyTo(fs);
+ Log.LogMessage(
+ $"Added {Icon}{DefaultPackageIconExtension} to project directory: {ProjectDirectory}"
+ );
+ }
+
+ return true;
+ }
+}
diff --git a/Dgmjr.NET.Sdk/Tasks/EnsurePackageReadmeFileExists.cs b/Dgmjr.NET.Sdk/Tasks/EnsurePackageReadmeFileExists.cs
new file mode 100644
index 0000000..ce11f4e
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Tasks/EnsurePackageReadmeFileExists.cs
@@ -0,0 +1,107 @@
+namespace Dgmjr.Sdk.Tasks;
+
+using static System.Text.RegularExpressions.RegexOptions;
+using MSBTask = Microsoft.Build.Utilities.Task;
+using System.Text.RegularExpressions;
+using Microsoft.Build.Framework;
+using static System.IO.Path;
+using System.Reflection;
+using Microsoft.Build.Execution;
+using static System.IO.File;
+using static System.String;
+using Dgmjr.Sdk.Models;
+
+public class EnsurePackageReadmeFileExists : MSBTask
+{
+ private static readonly Assembly Assembly = typeof(EnsurePackageReadmeFileExists).Assembly;
+
+ private const string FrontmatterRegexString =
+ @"---\s*[\r\n]+(?[\s\S]+?)[\r\n]+---";
+ private static readonly Regex FrontmatterRegex =
+ new(FrontmatterRegexString, Compiled | IgnoreCase | Multiline);
+
+ private const string README_MD = "README.md";
+ private string PackageReadmePath =>
+ Combine(GetDirectoryName(MSBuildProjectFullPath)!, README_MD);
+ private const string README_TEMPLATE = "README_TEMPLATE.md";
+ private const string FrontMatterTemplate = "frontmatter_template.yml";
+ private bool ReadmeExists => Exists(PackageReadmePath);
+
+ private ProjectInstance _projectInstance;
+ private ProjectInstance ProjectInstance =>
+ _projectInstance ??= new ProjectInstance(MSBuildProjectFullPath);
+
+ [Required]
+ public string MSBuildProjectFullPath { get; set; }
+
+ public override bool Execute()
+ {
+ if (!Exists(PackageReadmePath))
+ {
+ // Log.LogMessage($"Creating {README_MD}...");
+ // WriteAllText(PackageReadmePath, GetReadmeContent());
+ }
+ else
+ {
+ // Log.LogMessage($"Updating {README_MD}...");
+ // WriteAllText(PackageReadmePath, GetReadmeContent());
+ }
+ return true;
+ }
+
+ private string GetReadmeContent()
+ {
+ var readmeMarkdown = ReadmeExists
+ ? ReadAllText(PackageReadmePath)
+ : new StreamReader(Assembly.GetManifestResourceStream(README_TEMPLATE)).ReadToEnd();
+ // return readmeMarkdown;
+ var frontmatterYaml = GetFrontMatter(readmeMarkdown);
+ if (IsNullOrWhiteSpace(frontmatterYaml))
+ {
+ frontmatterYaml = new StreamReader(
+ Assembly.GetManifestResourceStream(FrontMatterTemplate)
+ ).ReadToEnd();
+ }
+ var frontMatter = new YamlDotNet.Serialization.DeserializerBuilder()
+ .WithTypeConverter(new UrlYamlConverter())
+ .Build()
+ .Deserialize(frontmatterYaml);
+
+ frontMatter.Title = ProjectInstance.GetPropertyValue("Title");
+ frontMatter.Authors = ProjectInstance.GetPropertyValue("Authors").Split(';');
+ frontMatter.Description = ProjectInstance.GetPropertyValue("Description");
+ frontMatter.Version = ProjectInstance.GetPropertyValue("PackageVersion");
+ frontMatter.PackageId = ProjectInstance.GetPropertyValue("PackageId");
+ frontMatter.LastModifiedDate = DateTimeOffset.UtcNow;
+ frontMatter.Keywords = ProjectInstance.GetPropertyValue("PackageTags").Split(' ');
+ frontMatter.LicenseExpression =
+ ProjectInstance.GetPropertyValue("PackageLicenseExpression") ?? "MIT";
+ frontMatter.Repository = Uri.TryCreate(
+ ProjectInstance.GetPropertyValue("RepositoryUrl"),
+ UriKind.Absolute,
+ out var repositoryUri
+ )
+ ? repositoryUri
+ : null;
+ frontMatter.ProjectUrl = Uri.TryCreate(
+ ProjectInstance.GetPropertyValue("PackageProjectUrl"),
+ UriKind.Absolute,
+ out var projectUri
+ )
+ ? projectUri
+ : null;
+ frontMatter.Summary =
+ ProjectInstance.GetPropertyValue("PackageSummary") ?? frontMatter.Description;
+
+ var newFrontmatterYaml = new YamlDotNet.Serialization.SerializerBuilder()
+ .Build()
+ .Serialize(frontMatter);
+
+ return readmeMarkdown.Replace(frontmatterYaml, newFrontmatterYaml);
+ }
+
+ private string GetFrontMatter(string readmeMarkdown)
+ {
+ return FrontmatterRegex.Match(readmeMarkdown).Groups["frontmatter"].Value;
+ }
+}
diff --git a/Dgmjr.NET.Sdk/Tasks/ReadmeFrontMatter.cs b/Dgmjr.NET.Sdk/Tasks/ReadmeFrontMatter.cs
new file mode 100644
index 0000000..c439f50
--- /dev/null
+++ b/Dgmjr.NET.Sdk/Tasks/ReadmeFrontMatter.cs
@@ -0,0 +1,88 @@
+namespace Dgmjr.Sdk.Models;
+using YamlDotNet.Core;
+using YamlDotNet.Core.Events;
+using YamlDotNet.Serialization;
+using static String;
+
+using static YamlDotNet.Serialization.DefaultValuesHandling;
+
+public class ReadmeFrontMatter
+{
+ [YamlMember(Alias = "title", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Title { get; set; } = Empty;
+ [YamlMember(Alias = "slug", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Slug { get; set; } = Empty;
+ [YamlMember(Alias = "date")]
+ public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
+ [YamlMember(Alias = "lastmod")]
+ public DateTimeOffset LastModifiedDate { get; set; } = DateTimeOffset.UtcNow;
+
+ [YamlMember(Alias = "version", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Version { get; set; } = Empty;
+
+ [YamlMember(Alias = "description", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Description { get; set; } = Empty;
+
+ [YamlMember(Alias = "packageId", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string PackageId { get; set; } = Empty;
+
+ [YamlMember(Alias = "authors", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string[] Authors { get; set; } = [];
+
+ [YamlMember(Alias = "tags", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string[] Tags { get; set; } = [];
+
+ [YamlMember(Alias = "keywords", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string[] Keywords { get; set; } = [];
+
+ [YamlMember(Alias = "repositoryUrl", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public Uri? Repository { get; set; }
+
+ [YamlMember(Alias = "license", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string LicenseExpression { get; set; } = Empty;
+
+ [YamlMember(Alias = "projectUrl", DefaultValuesHandling = OmitNull | OmitEmptyCollections, SerializeAs = typeof(string))]
+ public Uri? ProjectUrl { get; set; }
+
+ [YamlMember(Alias = "summary", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Summary { get; set; } = Empty;
+
+ [YamlMember(Alias = "language", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Language { get; set; } = "en-US";
+ [YamlMember(Alias = "type", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string DocumentType { get; set; } = "readme";
+
+ // [YamlMember(Alias = "additionalValues", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ // public IStringDictionary AdditionalValues { get; set; } = new Dictionary();
+}
+
+public static class ReadmeFrontMatterExtensions
+{
+ public static string ToYaml(this ReadmeFrontMatter frontMatter)
+ {
+ var serializer = new SerializerBuilder()
+ .Build();
+ return serializer.Serialize(frontMatter);
+ }
+}
+
+public class UrlYamlConverter : IYamlTypeConverter
+{
+ public bool Accepts(Type type) => type == typeof(Uri);
+
+ public object ReadYaml(IParser parser, Type type)
+ {
+ var value = parser.Consume().Value;
+ return Uri.TryCreate(value, UriKind.Absolute, out var uri)
+ ? uri
+ : null;
+ }
+
+ public void WriteYaml(IEmitter emitter, object? value, Type type)
+ {
+ if (value is Uri uri)
+ {
+ emitter.Emit(new Scalar(null, null, uri.ToString(), ScalarStyle.Any, true, false));
+ }
+ }
+}
diff --git a/Dgmjr.NET.Sdk/frontmatter_teplate.yml b/Dgmjr.NET.Sdk/frontmatter_teplate.yml
new file mode 100644
index 0000000..1558276
--- /dev/null
+++ b/Dgmjr.NET.Sdk/frontmatter_teplate.yml
@@ -0,0 +1,13 @@
+---
+authors: {{author}}
+date: {{date}}
+description: {{description}}
+keywords: {{keywords}}
+lastmod: {{lastmod}}
+license: {{license}}
+slug: {{slug}}
+tags: {{tags}}
+title: {{title}}
+type: readme
+version: {{version}}
+---
diff --git a/Dgmjr.NET.Sdk/icon.png b/Dgmjr.NET.Sdk/icon.png
new file mode 100644
index 0000000..1d0622b
Binary files /dev/null and b/Dgmjr.NET.Sdk/icon.png differ
diff --git a/frontmatter.json b/frontmatter.json
new file mode 100644
index 0000000..035b365
--- /dev/null
+++ b/frontmatter.json
@@ -0,0 +1,3 @@
+{
+ "$schema": "https://beta.frontmatter.codes/frontmatter.schema.json"
+}
\ No newline at end of file
diff --git a/src/Build/Authors-Owners.props b/src/Build/Authors-Owners.props
index 6a36f1c..8720983 100755
--- a/src/Build/Authors-Owners.props
+++ b/src/Build/Authors-Owners.props
@@ -11,6 +11,21 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Build/EnsureLicense.targets b/src/Build/EnsureLicense.targets
index 9087d0a..56c36a1 100644
--- a/src/Build/EnsureLicense.targets
+++ b/src/Build/EnsureLicense.targets
@@ -11,24 +11,10 @@
-->
-
+
-
-
+
+
diff --git a/src/Build/ItemDefinitionGroups.props b/src/Build/ItemDefinitionGroups.props
index 81703d0..f449db5 100755
--- a/src/Build/ItemDefinitionGroups.props
+++ b/src/Build/ItemDefinitionGroups.props
@@ -14,20 +14,6 @@
imported
-
-
-
-
-
-
-
-
-
-
-
-
-
-
true
diff --git a/src/Build/PackageIcon.targets b/src/Build/PackageIcon.targets
index b8ac5d1..b1b1492 100644
--- a/src/Build/PackageIcon.targets
+++ b/src/Build/PackageIcon.targets
@@ -10,11 +10,12 @@
* License: MIT (https://opensource.org/licenses/MIT)
-->
-
-
+
+
-
+
+
-
+
diff --git a/src/README_TEMPLATE.md b/src/README_TEMPLATE.md
index 2bec5f7..a969a24 100644
--- a/src/README_TEMPLATE.md
+++ b/src/README_TEMPLATE.md
@@ -1,7 +1,5 @@
---
-{{frontmatter}}
---
-
# ${title}
${description}
diff --git a/src/Tasks/EnsureDgmjrSdkLicenseFileExists.cs b/src/Tasks/EnsureDgmjrSdkLicenseFileExists.cs
new file mode 100644
index 0000000..eec0a59
--- /dev/null
+++ b/src/Tasks/EnsureDgmjrSdkLicenseFileExists.cs
@@ -0,0 +1,33 @@
+namespace Dgmjr.Sdk.Tasks;
+
+using Microsoft.Build.Framework;
+
+public class EnsureDgmjrSdkLicenseFileExists : MSBTask
+{
+ const string LICENSE_MD = "LICENSE.md";
+ private string ProjectDirectory => GetDirectoryName(MSBuildProjectFullPath);
+
+ private string LicenseFilePath => Combine(ProjectDirectory, LICENSE_MD);
+
+ protected virtual Stream OpenLicenseFileStream() =>
+ GetType().Assembly.GetManifestResourceStream(LICENSE_MD);
+
+ protected virtual Stream OpenCreateStream() =>
+ Create(LicenseFilePath);
+
+ [Required]
+ public string MSBuildProjectFullPath { get; set; }
+
+ public override bool Execute()
+ {
+
+ Log.LogMessage(
+ $"License file '{LICENSE_MD}' being copied from {GetType().FullName}."
+ );
+ using var fs = OpenCreateStream();
+ using var licenseFileStream = OpenLicenseFileStream();
+ licenseFileStream.CopyTo(fs);
+
+ return true;
+ }
+}
diff --git a/src/Tasks/EnsurePackageIcon.cs b/src/Tasks/EnsureDgmjrSdkPackageIcon.cs
similarity index 64%
rename from src/Tasks/EnsurePackageIcon.cs
rename to src/Tasks/EnsureDgmjrSdkPackageIcon.cs
index 71864e5..a5a53ca 100644
--- a/src/Tasks/EnsurePackageIcon.cs
+++ b/src/Tasks/EnsureDgmjrSdkPackageIcon.cs
@@ -1,24 +1,23 @@
-using Internal;
-
namespace Dgmjr.Sdk.Tasks;
+using Internal;
-public class EnsurePackageIcon : MSBTask
+public class EnsureDgmjrSdkPackageIcon : MSBTask
{
- private const string Icon = "icon";
- private const string _png = ".png";
- private const string _jpg = ".jpg";
- private const string _svg = ".svg";
- private static readonly string[] _extensions = { _png, _jpg, _svg };
+ protected const string Icon = "icon";
+ protected const string _png = ".png";
+ protected const string _jpg = ".jpg";
+ protected const string _svg = ".svg";
+ protected static readonly string[] _extensions = { _png, _jpg, _svg };
const string DEFAULT_PACKAGE_ICON_PNG = "DEFAULT_PACKAGE_ICON.png";
- private string ProjectDirectory => GetDirectoryName(MSBuildProjectFullPath);
+ protected string ProjectDirectory => GetDirectoryName(MSBuildProjectFullPath);
- private string PackageIconPath => Combine(ProjectDirectory, Icon);
+ protected string PackageIconPath => Combine(ProjectDirectory, Icon);
protected virtual string? GetPackageIconPath() =>
_extensions
.Select(ext => Combine(ProjectDirectory, $"{Icon}{ext}"))
- .FirstOrDefault(File.Exists);
+ .FirstOrDefault(Exists);
[Output]
public string? PackageIcon => GetFileName(GetPackageIconPath());
@@ -32,14 +31,14 @@ protected Stream OpenCreateIconStream() =>
Create(Combine(ProjectDirectory, $"{Icon}{DefaultPackageIconExtension}"));
protected virtual Stream OpenDefaultIconStream() =>
- typeof(EnsurePackageIcon).Assembly.GetManifestResourceStream(DEFAULT_PACKAGE_ICON_PNG);
+ GetType().Assembly.GetManifestResourceStream(DEFAULT_PACKAGE_ICON_PNG);
public override bool Execute()
{
if (PackageIcon is null)
{
Log.LogWarning(
- $"Package icon '{Icon}({_png}/{_jpg}/{_svg}' not found in project directory: {ProjectDirectory}; adding it as {Icon}{DefaultPackageIconExtension}."
+ $"Package icon '{Icon}({_png}/{_jpg}/{_svg}' not found in project directory: {ProjectDirectory}; adding it as {Icon}{DefaultPackageIconExtension} from {GetType().Assembly.FullName}."
);
using var fs = OpenCreateIconStream();
using var defaultIconStream = OpenDefaultIconStream();
diff --git a/src/Tasks/EnsurePackageReadmeFileExists.cs b/src/Tasks/EnsurePackageReadmeFileExists.cs
index 0e3391d..70cb42e 100644
--- a/src/Tasks/EnsurePackageReadmeFileExists.cs
+++ b/src/Tasks/EnsurePackageReadmeFileExists.cs
@@ -1,5 +1,7 @@
namespace Dgmjr.Sdk.Tasks;
+using static System.Text.RegularExpressions.RegexOptions;
+
public class EnsurePackageReadmeFileExists : MSBTask
{
private static readonly Assembly Assembly = typeof(EnsurePackageReadmeFileExists).Assembly;
@@ -7,14 +9,11 @@ public class EnsurePackageReadmeFileExists : MSBTask
private const string FrontmatterRegexString =
@"---\s*[\r\n]+(?[\s\S]+?)[\r\n]+---";
private static readonly Regex FrontmatterRegex =
- new(
- FrontmatterRegexString,
- RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline
- );
+ new(FrontmatterRegexString, Compiled | IgnoreCase | Multiline);
private const string README_MD = "README.md";
private string PackageReadmePath =>
- Combine(GetDirectoryName(MSBuildProjectFullPath)!, "README.md");
+ Combine(GetDirectoryName(MSBuildProjectFullPath)!, README_MD);
private const string README_TEMPLATE = "README_TEMPLATE.md";
private const string FrontMatterTemplate = "frontmatter_template.yml";
private bool ReadmeExists => Exists(PackageReadmePath);
@@ -65,7 +64,7 @@ private string GetReadmeContent()
frontMatter.Version = ProjectInstance.GetPropertyValue("PackageVersion");
frontMatter.PackageId = ProjectInstance.GetPropertyValue("PackageId");
frontMatter.LastModifiedDate = DateTimeOffset.UtcNow;
- frontMatter.Keywords = ProjectInstance.GetPropertyValue("PackageTags").Split(';');
+ frontMatter.Keywords = ProjectInstance.GetPropertyValue("PackageTags").Split(' ');
frontMatter.LicenseExpression =
ProjectInstance.GetPropertyValue("PackageLicenseExpression") ?? "MIT";
frontMatter.Repository = Uri.TryCreate(
diff --git a/src/Tasks/ReadmeFrontMatter.cs b/src/Tasks/ReadmeFrontMatter.cs
index 2bbbdaf..be6b5be 100644
--- a/src/Tasks/ReadmeFrontMatter.cs
+++ b/src/Tasks/ReadmeFrontMatter.cs
@@ -1,56 +1,57 @@
+namespace Dgmjr.Sdk.Models;
using YamlDotNet.Core;
using YamlDotNet.Core.Events;
using YamlDotNet.Serialization;
-namespace Dgmjr.Sdk.Models;
+using static YamlDotNet.Serialization.DefaultValuesHandling;
public class ReadmeFrontMatter
{
- [YamlMember(Alias = "title", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string Title { get; set; } = string.Empty;
- [YamlMember(Alias = "slug", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string Slug { get; set; } = string.Empty;
+ [YamlMember(Alias = "title", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Title { get; set; } = Empty;
+ [YamlMember(Alias = "slug", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Slug { get; set; } = Empty;
[YamlMember(Alias = "date")]
public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
[YamlMember(Alias = "lastmod")]
public DateTimeOffset LastModifiedDate { get; set; } = DateTimeOffset.UtcNow;
- [YamlMember(Alias = "version", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string Version { get; set; } = string.Empty;
+ [YamlMember(Alias = "version", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Version { get; set; } = Empty;
- [YamlMember(Alias = "description", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string Description { get; set; } = string.Empty;
+ [YamlMember(Alias = "description", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Description { get; set; } = Empty;
- [YamlMember(Alias = "packageId", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string PackageId { get; set; } = string.Empty;
+ [YamlMember(Alias = "packageId", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string PackageId { get; set; } = Empty;
- [YamlMember(Alias = "authors", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ [YamlMember(Alias = "authors", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
public string[] Authors { get; set; } = [];
- [YamlMember(Alias = "tags", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ [YamlMember(Alias = "tags", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
public string[] Tags { get; set; } = [];
- [YamlMember(Alias = "keywords", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ [YamlMember(Alias = "keywords", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
public string[] Keywords { get; set; } = [];
- [YamlMember(Alias = "repositoryUrl", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ [YamlMember(Alias = "repositoryUrl", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
public Uri? Repository { get; set; }
- [YamlMember(Alias = "license", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string LicenseExpression { get; set; } = string.Empty;
+ [YamlMember(Alias = "license", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string LicenseExpression { get; set; } = Empty;
- [YamlMember(Alias = "projectUrl", DefaultValuesHandling = DefaultValuesHandling.OmitNull, SerializeAs = typeof(string))]
+ [YamlMember(Alias = "projectUrl", DefaultValuesHandling = OmitNull | OmitEmptyCollections, SerializeAs = typeof(string))]
public Uri? ProjectUrl { get; set; }
- [YamlMember(Alias = "summary", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
- public string Summary { get; set; } = string.Empty;
+ [YamlMember(Alias = "summary", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
+ public string Summary { get; set; } = Empty;
- [YamlMember(Alias = "language", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ [YamlMember(Alias = "language", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
public string Language { get; set; } = "en-US";
- [YamlMember(Alias = "type", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ [YamlMember(Alias = "type", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
public string DocumentType { get; set; } = "readme";
- // [YamlMember(Alias = "additionalValues", DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
+ // [YamlMember(Alias = "additionalValues", DefaultValuesHandling = OmitNull | OmitEmptyCollections)]
// public IStringDictionary AdditionalValues { get; set; } = new Dictionary();
}