You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to msbuild /t:SlnGen dirs.proj for my repo I’m getting an error about duplicate PackageDownload items that look like they’re the .Net Core SDK packages? I’m trying to get more info and used the /pp:out.xml switch. When that didn’t help, I figured I would get the diagnostic verbosity logs. That’s when I ran the command below and MSBuild crashed.
I don't think the problem I'm trying to debug is related to getting MSBuild to crash when asking for diagnostic output but I want to be complete so I'm including it: C:\Users\joraki\OneBranch\$repoName\src\tools\DeploymentDatasetGenerator\DeploymentDatasetGenerator.csproj: error NU1505: Duplicate 'PackageDownload' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageDownload' items are: Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.26], Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.26], Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.26].
Steps to Reproduce
MSBuild Version
❯ msbuild /version
Microsoft (R) Build Engine version 17.3.0-preview-22277-01+f1dae6ab6 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Diagnostic level output from building that csproj.
Actual Behavior
Short stack trace
Some command line switches were read from the auto-response file "MSBuild.rsp". To disable this file, use the "-noAutoResponse" switch. C:\Program Files\Microsoft Visual Studio\2022\Preview\\MSBuild\Current\Bin\amd64\MSBuild.exe /ConsoleLoggerParameters:Verbosity=Minimal;ForceNoAlign;Summary /M /Restore /verbosity:diag C:\Users\joraki\OneBranch\$repoName\src\tools\DeploymentDatasetGenerator\DeploymentDatasetGenerator.csproj MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot have finished counter without started counter.
I'm building from the command line but in case it matters:
Windows Terminal
Shell: PowerShell Core 7.2.1
Windows 10: winver == 19044.1766
Visual Studio 2022 Enterprise 17.3.0 preview 2.0 NOTE: This is not from building inside Visual Studio
❯ msbuild /version
Microsoft (R) Build Engine version 17.3.0-preview-22277-01+f1dae6ab6 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
17.3.0.27701
The text was updated successfully, but these errors were encountered:
I believe this will be fixed in the next .NET SDK preview (which will ship with the next VS preview). There are some workarounds at dotnet/sdk#24747 (comment).
Issue Description
When attempting to msbuild /t:SlnGen dirs.proj for my repo I’m getting an error about duplicate PackageDownload items that look like they’re the .Net Core SDK packages? I’m trying to get more info and used the /pp:out.xml switch. When that didn’t help, I figured I would get the diagnostic verbosity logs. That’s when I ran the command below and MSBuild crashed.
I don't think the problem I'm trying to debug is related to getting MSBuild to crash when asking for diagnostic output but I want to be complete so I'm including it:
C:\Users\joraki\OneBranch\$repoName\src\tools\DeploymentDatasetGenerator\DeploymentDatasetGenerator.csproj: error NU1505: Duplicate 'PackageDownload' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageDownload' items are: Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.26], Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.26], Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.26].
Steps to Reproduce
MSBuild Version
❯ msbuild /version
Microsoft (R) Build Engine version 17.3.0-preview-22277-01+f1dae6ab6 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
17.3.0.27701
Command
msbuild /verbosity:diag C:\Users\joraki\OneBranch\$repoName\src\tools\DeploymentDatasetGenerator\DeploymentDatasetGenerator.csproj
Expected Behavior
Diagnostic level output from building that csproj.
Actual Behavior
Short stack trace
Some command line switches were read from the auto-response file "MSBuild.rsp". To disable this file, use the "-noAutoResponse" switch. C:\Program Files\Microsoft Visual Studio\2022\Preview\\MSBuild\Current\Bin\amd64\MSBuild.exe /ConsoleLoggerParameters:Verbosity=Minimal;ForceNoAlign;Summary /M /Restore /verbosity:diag C:\Users\joraki\OneBranch\$repoName\src\tools\DeploymentDatasetGenerator\DeploymentDatasetGenerator.csproj MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot have finished counter without started counter.
Long stack trace
msbuild-stacktrace.txt
Analysis
I don't know.
Versions & Configurations
I'm building from the command line but in case it matters:
❯ msbuild /version
Microsoft (R) Build Engine version 17.3.0-preview-22277-01+f1dae6ab6 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
17.3.0.27701
The text was updated successfully, but these errors were encountered: