-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
# DevOps solutions | ||
|
||
## Analysis of multiple projects in solution | ||
You can use the *PowerShell* script ```SolutionScanner.ps1``` to analyze the output artifacts of the entire solution by using *Consyzer*. | ||
## Analysis of multiple projects in the solution | ||
You can use the *PowerShell* script ```SolutionScanner.ps1``` to analyze the output artifacts of the entire solution by using Consyzer. | ||
In other words, this script allows you to analyze the artifacts of all projects in the solution. | ||
For example, it can be useful in the *CI/CD pipeline*. | ||
It can be useful in the *CI/CD pipeline*. | ||
|
||
To run the script, use the following command: | ||
```SolutionScanner.ps1 C:\Consyzer.exe C:\SolutionToBeAnalyzed ".exe, .dll" Release```, where | ||
1) *SolutionScanner.ps1* - name of the Powershell script (or its path), | ||
2) *C:\Consyzer.exe* - path to the Consyzer utility, | ||
2) *C:\Consyzer.exe* - path to Consyzer utility, | ||
3) *C:\SolutionToBeAnalyzed* - path to the analyzed solution, | ||
4) *".exe, .dll"* - files extensions to be analyzed, | ||
4) *".exe, .dll"* - files search pattern to be analyzed, | ||
5) *Release* - solution build configuration. | ||
|
||
You can also use the following task if you want to analyze in Azure Pipelines CI: | ||
You can use the following task for analysis if you are using Azure Pipelines: | ||
``` | ||
- task: PowerShell@2 | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: '$(Build.SourcesDirectory)\Consyzer.ps1' | ||
filePath: '$(Build.SourcesDirectory)\SolutionAnalyzer.ps1' | ||
arguments: > | ||
-pathToConsyzer '$YourPathToConsyzer' | ||
-solutionForAnalysis '--AnalysisDirectory $(Build.SourcesDirectory)' | ||
-fileExtensions '--SearchPattern "*.exe, *.dll"' | ||
-pathToConsyzer '$PathToConsyzer' | ||
-solutionForAnalysis '$(Build.SourcesDirectory)' | ||
-fileExtensions '"*.exe, *.dll"' | ||
-buildConfiguration '$YourBuildConfiguration' | ||
displayName: 'Consyzer Analysis' | ||
``` |
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