-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate some scripts to powershell (#1071)
- Loading branch information
1 parent
f8313de
commit c94cd87
Showing
12 changed files
with
76 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#dotnet tool install -g roslynator.dotnet.cli | ||
|
||
dotnet build "..\src\CommandLine.sln" /p:Configuration=Debug /v:m /m | ||
|
||
roslynator fix "..\src\Roslynator.sln" ` | ||
--verbosity d ` | ||
--file-log "roslynator.log" ` | ||
--file-log-verbosity diag ` | ||
--file-banner " Copyright (c) Josef Pihrt and Contributors. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information." |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#dotnet tool install -g roslynator.dotnet.cli | ||
|
||
dotnet build "..\src\CommandLine.sln" /p:Configuration=Debug /v:m /m | ||
|
||
roslynator analyze "..\src\Roslynator.sln" ` | ||
--analyzer-assemblies ` | ||
"..\src\Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.CSharp.Analyzers.dll" ` | ||
"..\src\CodeAnalysis.Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.CodeAnalysis.Analyzers.dll" ` | ||
"..\src\Formatting.Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.Formatting.Analyzers.dll" ` | ||
--ignore-analyzer-references ` | ||
--ignored-diagnostics CS1591 ` | ||
--severity-level info ` | ||
--culture en ` | ||
--verbosity n ` | ||
--file-log "roslynator.log" ` | ||
--file-log-verbosity diag |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#dotnet tool install -g roslynator.dotnet.cli | ||
#Install-Module VSSetup -Scope CurrentUser | ||
|
||
$visualStudioPath = Get-VSSetupInstance -All | Select-VSSetupInstance -Require 'Microsoft.VisualStudio.Workload.ManagedDesktop' -Latest | Select-Object -ExpandProperty "InstallationPath" | ||
|
||
dotnet build "..\src\CommandLine.sln" /p:Configuration=Debug /v:m /m | ||
|
||
roslynator fix "..\src\Roslynator.sln" ` | ||
--analyzer-assemblies ` | ||
"..\src\Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.CSharp.Analyzers.dll" ` | ||
"..\src\Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.CSharp.Analyzers.CodeFixes.dll" ` | ||
"..\src\CodeAnalysis.Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.CodeAnalysis.Analyzers.dll" ` | ||
"..\src\CodeAnalysis.Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.CodeAnalysis.Analyzers.CodeFixes.dll" ` | ||
"..\src\Formatting.Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.Formatting.Analyzers.dll" ` | ||
"..\src\Formatting.Analyzers.CodeFixes\bin\Debug\netstandard2.0\Roslynator.Formatting.Analyzers.CodeFixes.dll" ` | ||
"$visualStudioPath\Common7\IDE\CommonExtensions\Microsoft\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll" ` | ||
"$visualStudioPath\Common7\IDE\CommonExtensions\Microsoft\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.CSharp.Features.dll" ` | ||
"$visualStudioPath\Common7\IDE\CommonExtensions\Microsoft\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.EditorFeatures.dll" ` | ||
"$visualStudioPath\Common7\IDE\CommonExtensions\Microsoft\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.Features.dll" ` | ||
--format ` | ||
--verbosity d ` | ||
--file-log "roslynator.log" ` | ||
--file-log-verbosity diag ` | ||
--diagnostic-fix-map "RCS1155=Roslynator.RCS1155.OrdinalIgnoreCase" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#dotnet tool install -g roslynator.dotnet.cli | ||
|
||
dotnet build "..\src\CommandLine.sln" /p:Configuration=Debug /v:m /m | ||
|
||
roslynator format "..\src\Roslynator.sln" ` | ||
--verbosity d ` | ||
--file-log "roslynator.log" ` | ||
--file-log-verbosity diag ` | ||
--end-of-line crlf |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#dotnet tool install -g roslynator.dotnet.cli | ||
|
||
dotnet build "..\src\CommandLine.sln" /p:Configuration=Debug /v:m /m | ||
|
||
roslynator lloc "..\src\Roslynator.sln" ` | ||
--verbosity d ` | ||
--file-log "roslynator.log" ` | ||
--file-log-verbosity diag |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#dotnet tool install -g roslynator.dotnet.cli | ||
|
||
dotnet build "..\src\CommandLine.sln" /p:Configuration=Debug /v:m /m | ||
|
||
roslynator loc "..\src\Roslynator.sln" ` | ||
--ignore-block-boundary ` | ||
--verbosity d ` | ||
--file-log "roslynator.log" ` | ||
--file-log-verbosity diag | ||
|