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
{{ message }}
Repository navigation
paket pack fails with "Unable to find Debug output path node" on SDK-style projects targeting net11.0-windows (regression from Paket 8) #4504
After upgrading from .NET 8 + Paket 8 to .NET 11 + Paket 12.0.0, running dotnet paket pack on an SDK-style .csproj targeting net11.0-windows (or multi-targeting net472;net11.0-windows) fails with:
Unable to find Debug output path node in file <path/to/Project.csproj> for any known platforms
The stack trace points to /src/Paket.Core/PaketConfigFiles/ProjectFile.fs:line 1695.
While #4439 added recognition for net11.0-windows monikers in Paket 12, ProjectFile.GetOutputDirectory appears to miss the SDK-style output directory resolution for net11.0-windows and falls through to the legacy <OutputPath> XML lookup on line 1695. This worked without explicit <OutputPath> nodes in Paket 8 when targeting net8.0-windows.
Repro Steps
Create an SDK-style .csproj with no explicit <OutputPath> nodes:
Build the project (dotnet build -c Debug), confirming output is generated in bin\Debug\net472\ and bin\Debug\net11.0-windows\.
Run dotnet paket pack ./nupkgs --interproject-references min.
Expected Behavior
dotnet paket pack resolves the SDK-style output directories (bin\Debug\net472\ and bin\Debug\net11.0-windows\) automatically without requiring explicit <OutputPath> nodes in the .csproj, matching Paket 8 behavior with net8.0-windows.
Actual Behavior
dotnet paket pack fails at ProjectFile.fs:line 1695 with Unable to find Debug output path node in file ... for any known platforms.
Workaround
Adding explicit legacy <OutputPath> property groups directly inside each net11.0-windows.csproj (not Directory.Build.props) satisfies the line 1695 fallback:
Activity