Skip to content

Commit

Permalink
update latest powershell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cYCL157 committed Jan 9, 2024
1 parent d316e71 commit 7c7ef70
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions format.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# install/update latest version
dotnet tool update -g dotnet-format --version "8.*" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json

# Format code to match editorconfig settings
#dotnet format --verbosity normal .\src

Expand Down
6 changes: 5 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trim_trailing_whitespace = true
insert_final_newline = true

[*.json]
indent_size = 4
indent_size = 2

# XML Configuration Files
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
Expand Down Expand Up @@ -241,3 +241,7 @@ dotnet_diagnostic.RCS1021.severity = none

# PH_P013: Discouraged EntityFramework Method
dotnet_diagnostic.PH_P013.severity = none

# for dotnet-format to help cleanup IDE0005 unnecessary import warnings
[*.{cs,vb}]
dotnet_diagnostic.IDE0005.severity = warning
2 changes: 1 addition & 1 deletion update-targetframework.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using namespace System.Collections.Generic # for List<T>

$dir = "." # points to "repository root"
$targetVersion = "net6.0"
$targetVersion = "net8.0"

$projFiles = Get-ChildItem $dir -Recurse -Filter *.csproj

Expand Down

0 comments on commit 7c7ef70

Please sign in to comment.