Closed TFTomSun closed 1 year ago
Does it reproduce every time when you open that binlog or does it work fine sometimes?
I used the VS Integration for generating the binlog and opening the log viewer 'external'. I got it on every rebuild. Now, after a Visual Studio restart it seems to be gone.
You could see if you still have that binlog on disk in that temp folder location. If yes, try just double-clicking the file on disk to open in the binlog viewer. If it's still broken then we have a good repro. You could then email the binlog privately to me so I can investigate. But if not, that's OK too. Next time you see this, try opening the binlog again in the viewer and see if you see this every time.
The VS integration is known to produce corrupt binlogs, that are not very useful.
Instead, look into MSBUILDDEBUGONSTART and read these docs: https://github.com/dotnet/msbuild/blob/e868d91a40fb59cd258844a8d31114c1c3fabf2a/documentation/wiki/Building-Testing-and-Debugging-on-Full-Framework-MSBuild.md#logs
This is a way to get proper binlogs from Visual Studio builds.
I got a exception that seem to come from the structured log viewer: System.ArgumentOutOfRangeException: Kapazität lag unter der aktuellen Größe. Parametername: value bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) bei System.Collections.Generic.List
1.set_Capacity(Int32 value) bei Microsoft.Build.Logging.StructuredLogger.TreeNode.EnsureChildrenCapacity(Int32 capacity) in C:\MSBuildStructuredLog\src\StructuredLogger\ObjectModel\TreeNode.cs:Zeile 59. bei Microsoft.Build.Logging.StructuredLogger.Construction.AddProperties(TreeNode parent, IEnumerable
1 properties, IProjectOrEvaluation project) in C:\MSBuildStructuredLog\src\StructuredLogger\Construction\Construction.cs:Zeile 1061. bei Microsoft.Build.Logging.StructuredLogger.Construction.BuildStarted(Object sender, BuildStartedEventArgs args) in C:\MSBuildStructuredLog\src\StructuredLogger\Construction\Construction.cs:Zeile 96.Unfortunately I don't have any idea what the root cause could be. Never had that problem before.