diff --git a/.vscode/settings.json b/.vscode/settings.json index 0f88c6d..94c98dc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,5 +23,26 @@ "socio", "solrevdev", "Trello" - ] + ], + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/bin": true, + "**/obj": true, + ".vscode": false, + ".vs": true, + ".gitignore": false, + ".gitattributes": false, + ".prettierrc": false, + ".editorconfig": false, + ".dockerignore": false, + "omnisharp.json": false, + "global.json": false, + "**/lcov.info": true + }, + "dotnet.defaultSolution": "solrevdev.seedfolder.sln" } diff --git a/build/lint.sh b/build/lint.sh index 4d86740..a256b51 100755 --- a/build/lint.sh +++ b/build/lint.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +# shellcheck disable=SC2086,SC2164,SC2046 cd $(dirname $0) dotnet-format ../solrevdev.seedfolder.sln --fix-style warn diff --git a/build/test-local.ps1 b/build/test-local.ps1 new file mode 100755 index 0000000..c685a0d --- /dev/null +++ b/build/test-local.ps1 @@ -0,0 +1,35 @@ +#!/usr/bin/env pwsh + +$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent +$scriptDir = Split-Path -Path $scriptDir -Parent + +Set-Location -Path $scriptDir + +# Clean and build the project +dotnet clean .\solrevdev.seedfolder.sln +dotnet restore .\solrevdev.seedfolder.sln +dotnet build .\solrevdev.seedfolder.sln + +# Create an artifact folder +$null = New-Item -Path .\artifacts -ItemType Directory -Force + +# Remove any old nupkg files +Remove-Item -Path .\artifacts\nupkg\* -Recurse -Force + +# Package the dotnet tool +dotnet pack .\solrevdev.seedfolder.sln -c Release -o .\artifacts\nupkg + +# Uninstall any version you currently have installed +dotnet tool uninstall -g solrevdev.seedfolder + +# Install the version we have just built and packaged +dotnet tool install -g --add-source .\artifacts\nupkg solrevdev.seedfolder + +# Run the tool +seedfolder --help + +# Now uninstall the tool ready for the next run +dotnet tool uninstall -g solrevdev.seedfolder + +# And install it again from nuget +dotnet tool install -g solrevdev.seedfolder diff --git a/build/test-local.sh b/build/test-local.sh new file mode 100755 index 0000000..883d9fc --- /dev/null +++ b/build/test-local.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +# shellcheck disable=SC2046 +cd $(dirname "$0") || exit + +# clean and build the project +dotnet clean ../solrevdev.seedfolder.sln +dotnet restore ../solrevdev.seedfolder.sln +dotnet build ../solrevdev.seedfolder.sln + +# create an artifact folder +mkdir -p ../artifacts + +# remove any old nupkg files +rm -rf ../artifacts/nupkg + +# package the dotnet tool +dotnet pack ../solrevdev.seedfolder.sln -c release -o ../artifacts/nupkg + +# uninstall any version you currently have installed +dotnet tool uninstall -g solrevdev.seedfolder + +# install the version we have just built and packaged +dotnet tool install -g --add-source ../artifacts/nupkg solrevdev.seedfolder + +# run the tool +seedfolder --help + +# now uninstall the tool ready for the next run +dotnet tool uninstall -g solrevdev.seedfolder + +# and install it again from nuget +dotnet tool install -g solrevdev.seedfolder diff --git a/src/Data/omnisharp.json b/src/Data/omnisharp.json index 9036543..f047247 100644 --- a/src/Data/omnisharp.json +++ b/src/Data/omnisharp.json @@ -1,9 +1,24 @@ { "RoslynExtensionsOptions": { - "enableAnalyzersSupport": true, - "enableDecompilationSupport": true + "EnableAnalyzersSupport": true, + "EnableDecompilationSupport": true, + "EnableImportCompletion": true }, "FormattingOptions": { - "enableEditorConfigSupport": true + "EnableEditorConfigSupport": true, + "OrganizeImports": true + }, + "RenameOptions": { + "RenameInComments": true, + "RenameOverloads": true, + "RenameInStrings": true + }, + "FileOptions": { + "SystemExcludeSearchPatterns": [ + "**/node_modules/**/*", + "**/bin/**/*", + "**/obj/**/*" + ], + "ExcludeSearchPatterns": [] } } diff --git a/src/solrevdev.seedfolder.csproj b/src/solrevdev.seedfolder.csproj index 1cd4776..60b4ff2 100644 --- a/src/solrevdev.seedfolder.csproj +++ b/src/solrevdev.seedfolder.csproj @@ -2,14 +2,14 @@ Exe - net7.0 - 11 + net6.0;net7.0 + latest enable true seedfolder ./nupkg true - 1.2.3 + 1.2.4 solrevdev.seedfolder .NET Core Global Tool that creates a folder and copies dotfiles into it therefore seeding a folder. .NET Core Global Tool that creates a folder and copies dotfiles into it therefore seeding a folder.