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
C:\Workspace\SlnGenRepro>msbuild /Restore /t:SlnGen dirs.proj
MSBuild version 17.8.3+195e7f5a3 for .NET Framework
Build started 1/17/2024 2:57:47 AM
......
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.94
C:\Workspace\SlnGenRepro>dotnet restore /t:SlnGen
Determining projects to restore...
All projects are up-to-date for restore.
C:\Users\<user-name>\.nuget\packages\microsoft.visualstudio.slngen\11.1.0\build\Microsoft.VisualStudio.SlnGen.targets(30,5):
error MSB6006: "slngen" exited with code -2147450730. [C:\Workspace\SlnGenRepro\dirs.proj]
C:\Workspace\SlnGenRepro>
The text was updated successfully, but these errors were encountered:
SlnGen succeeds when using msbuild but fails when using dotnet restore.
Reproduce setup:
OS: Windows 11 23H2 Build 22631.3007
Visual Studio version: VS Community 2022 17.8.3
File structure:
File content:
dirs.proj
global.json
directory.build.props
directory.packages.props
src/dirs.proj
src/ConsoleApp/ConsoleApp.csproj
src/ConsoleApp/Program.cs
Output:
The text was updated successfully, but these errors were encountered: