-
Notifications
You must be signed in to change notification settings - Fork 0
Invoke D365CompilerResultAnalyzer
Analyze the compiler output log
Invoke-D365CompilerResultAnalyzer [-Path] <String> [[-OutputPath] <String>] [-SkipWarnings] [-SkipTasks]
[[-PackageDirectory] <String>] [<CommonParameters>]
Analyze the compiler output log and generate an excel file contain worksheets per type: Errors, Warnings, Tasks
It could be a Visual Studio compiler log or it could be a Invoke-D365ModuleCompile log you want analyzed
Invoke-D365CompilerResultAnalyzer -Path "c:\temp\d365fo.tools\Custom\Dynamics.AX.Custom.xppc.log"
This will analyse all compiler output log files generated from Visual Studio. It will use the default path for the OutputPath parameter.
It will build error and error summary worksheets. It will build warning and warning summary worksheets. It will build task and task summary worksheets.
A result set example:
File Filename
c:\temp\d365fo.tools\Custom-CompilerResults.xlsx Custom-CompilerResults.xlsx
Invoke-D365CompilerResultAnalyzer -Path "c:\temp\d365fo.tools\Custom\Dynamics.AX.Custom.xppc.log" -SkipWarnings
This will analyse all compiler output log files generated from Visual Studio. It will use the default path for the OutputPath parameter.
It will build error and error summary worksheets. It will build task and task summary worksheets.
A result set example:
File Filename
c:\temp\d365fo.tools\Custom-CompilerResults.xlsx Custom-CompilerResults.xlsx
Invoke-D365CompilerResultAnalyzer -Path "c:\temp\d365fo.tools\Custom\Dynamics.AX.Custom.xppc.log" -SkipTasks
This will analyse all compiler output log files generated from Visual Studio. It will use the default path for the OutputPath parameter.
It will build error and error summary worksheets. It will build warning and warning summary worksheets.
A result set example:
File Filename
c:\temp\d365fo.tools\Custom-CompilerResults.xlsx Custom-CompilerResults.xlsx
Path to the compiler log file that you want to work against
A BuildModelResult.log or a Dynamics.AX.*.xppc.log file will both work
Type: String
Parameter Sets: (All)
Aliases: LogFile
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Path where you want the excel file (xlsx-file) saved to
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: $Script:DefaultTempPath
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to skip warnings while analyzing the compiler output log file
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to skip tasks while analyzing the compiler output log file
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Path to the directory containing the installed package / module
Default path is the same as the AOS service "PackagesLocalDirectory" directory
Default value is fetched from the current configuration on the machine
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: $Script:PackageDirectory
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Compiler, Build, Errors, Warnings, Tasks
Author: Mötz Jensen (@Splaxi)
This cmdlet is inspired by the work of "Vilmos Kintera" (twitter: @DAXRunBase)
All credits goes to him for showing how to extract these information
His blog can be found here: https://www.daxrunbase.com/blog/
The specific blog post that we based this cmdlet on can be found here: https://www.daxrunbase.com/2020/03/31/interpreting-compiler-results-in-d365fo-using-powershell/
The github repository containing the original scrips can be found here: https://github.com/DAXRunBase/PowerShell-and-Azure
- Install as a non-Administrator
- Install as a Administrator
- Import d365fo.tools module
- List available commands from d365fo.tools module
- Get help content for a command
- Start, Stop and List services
- Import users into the D365FO environment
- Import external users into the D365FO environment
- Enable users in the D365FO environment
- Update users in the D365FO environment
- Provision D365FO environment to new Azure AD tenant
- Import a bacpac file into a Tier1 environment
- List modules / models
- Compile module
- Install AzCopy
- Install SqlPackage
- Install Nuget
- Speed up LCS download via AzCopy
- Download latest bacpac from LCS via AzCopy
- Register NuGet source
- Configure Azure Logic App
- Fix AzureStorageConfig
- Run a runnable class
- Update users in environment
- Work with Azure Storage Account
- Work with packages, resource label files, language and lables
- Working with the different D365 services