|
10 | 10 | List of TFM based projects to include. This can be 'all', 'uwp', or 'winappsdk'. |
11 | 11 |
|
12 | 12 | Defaults to 'all' for local-use. |
| 13 | +.PARAMETER UseDiagnostics |
| 14 | + Add extra diagnostic output to running slngen, such as a binlog, etc... |
13 | 15 | .EXAMPLE |
14 | 16 | C:\PS> .\GenerateAllSolution -IncludeHeads winappsdk |
15 | 17 | Build a solution that doesn't contain UWP projects. |
|
20 | 22 | Param ( |
21 | 23 | [Parameter(HelpMessage = "The heads to include for building platform samples and tests.", ParameterSetName = "IncludeHeads")] |
22 | 24 | [ValidateSet('all', 'uwp', 'winappsdk')] |
23 | | - [string]$IncludeHeads = 'all' |
| 25 | + [string]$IncludeHeads = 'all', |
| 26 | + |
| 27 | + [Parameter(HelpMessage = "Add extra diagnostic output to slngen generator.")] |
| 28 | + [switch]$UseDiagnostics = $false |
24 | 29 | ) |
25 | 30 |
|
26 | 31 | # Generate required props for "All" solution. |
@@ -77,7 +82,16 @@ if ($IncludeHeads -ne 'uwp') |
77 | 82 | [void]$projects.Add(".\labs\**\samples\*.Samples\*.Samples.csproj") |
78 | 83 | [void]$projects.Add(".\labs\**\tests\*.Tests\*.shproj") |
79 | 84 |
|
80 | | -$cmd = "dotnet slngen -o $generatedSolutionFilePath $slngenConfig --platform $platforms $($projects -Join ' ')" |
| 85 | +if ($UseDiagnostics.IsPresent) |
| 86 | +{ |
| 87 | + $diagnostics = '-bl:slngen.binlog --consolelogger:"ShowEventId;Summary;Verbosity=Detailed" --filelogger:"LogFile=slngen.log;Append;Verbosity=Diagnostic;Encoding=UTF-8" ' |
| 88 | +} |
| 89 | +else |
| 90 | +{ |
| 91 | + $diagnostics = "" |
| 92 | +} |
| 93 | + |
| 94 | +$cmd = "dotnet slngen -o $generatedSolutionFilePath $slngenConfig $diagnostics--platform $platforms $($projects -Join ' ')" |
81 | 95 |
|
82 | 96 | Write-Output "Running Command: $cmd" |
83 | 97 |
|
|
0 commit comments