Closed ryansalt closed 4 years ago
Hi @ryansalt,
Thanks for reporting this issue to us. I'm unable to reproduce this with 2.1.300 or 2.1.302. Just to be sure, you're not using a global.json
file to pin the SDK to an earlier version, are you?
dotnet pack
, like dotnet build
, will use Debug
as the default configuration. With --no-build
specified, I see dotnet pack
use Debug
without --configuration
and the requested configuration when passing --configuration
(--configuration Debug
uses Debug
and --configuration Release
uses Release
).
I'm going to close this issue as no-repro for now. If you are still able to reproduce, please reopen the issue and provide more detailed repro instructions (from start to finish). Thank you!
Hi I've noticed that dotnet pack with --no-build parameter always looks for the /bin/Release directory, despite setting --configuration:Debug.
Steps to reproduce
dotnet pack --configuration Debug --no-build --output nupkgs
Expected behavior
Creates a nupkg file from the debug output in the nupkgs directory
Actual behavior
Tries to create a nupkg file from the Release output, and fails if the project has never been built with Release (bin/release/netcoreapp2.0 directory is not found)
Environment data
dotnet --info
output: .NET Core SDK (reflecting any global.json): Version: 2.1.300 Commit: adab45bf0cRuntime Environment: OS Name: Windows OS Version: 10.0.17134 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.300\
Host (useful for support): Version: 2.1.0 Commit: caa7b7e2ba
.NET Core SDKs installed: 2.0.2 [C:\Program Files\dotnet\sdk] 2.1.4 [C:\Program Files\dotnet\sdk] 2.1.201 [C:\Program Files\dotnet\sdk] 2.1.300 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]