Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NETSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI #30245

Closed
vdanche opened this issue Feb 1, 2023 · 7 comments
Labels
Area-WebSDK untriaged Request triage from a team member

Comments

@vdanche
Copy link
Member

vdanche commented Feb 1, 2023

Repro steps:

1.Install .NET 8 SDK (8.0.100-preview.2.23081.11) from main branch of https://github.com/dotnet/installer
2.In CLI
dotnet new console -o consoletest
dotnet publish
3. Check publish path

Expected Result:
The publish path should be "/bin/Debug/..."

In CLI, run "dotnet publish --help", we can see that the default configuration is "Debug"
image

Actual Result:
The publish path is "/bin/Release/..."
image

dotnet --info:
.NET SDK:
Version: 8.0.100-preview.2.23081.11
Commit: 440dd9b

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.100-preview.2.23081.11\

Host:
Version: 8.0.0-alpha.1.23080.2
Architecture: x64
Commit: 9529803ae2

.NET SDKs installed:
8.0.100-preview.2.23081.11 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0-alpha.1.23079.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0-alpha.1.23080.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.0-alpha.1.23078.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-WebSDK untriaged Request triage from a team member labels Feb 1, 2023
@vdanche vdanche changed the title [NetSDKE2E][Regression]With .Net 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when runing "dotnet publish" in CLI [NetSDKE2E][Regression]With .Net 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI Feb 1, 2023
@vdanche vdanche changed the title [NetSDKE2E][Regression]With .Net 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI [NetSDKE2E][Regression]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI Feb 1, 2023
@vdanche vdanche changed the title [NetSDKE2E][Regression]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI [NetSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI Feb 1, 2023
@vdanche vdanche changed the title [NetSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI [NETSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI Feb 1, 2023
@vdanche vdanche changed the title [NETSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI [NETSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" or "dotnet pack" in CLI Feb 1, 2023
@vdanche
Copy link
Member Author

vdanche commented Feb 1, 2023

Also repro for "dotnet pack"
image

@vdanche vdanche changed the title [NETSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" or "dotnet pack" in CLI [NETSDKE2E]With .NET 8 SDK installed, the default publish path is "/bin/Release/..." not "/bin/Debug/..." when running "dotnet publish" in CLI Feb 1, 2023
@vdanche
Copy link
Member Author

vdanche commented Feb 1, 2023

Also repro on 8.0.100-preview.1.23081.10

@marcpopMSFT
Copy link
Member

This is an intentional breaking change by @nagilson #29155. We'll be gathering feedback on the change in the previews and document it in the breaking change documentation.

@marcpopMSFT marcpopMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2023
@nagilson
Copy link
Member

nagilson commented Feb 2, 2023

Seems like I should change that string though. Let me go do that...

@vdanche
Copy link
Member Author

vdanche commented Feb 3, 2023

Seems like I should change that string though. Let me go do that...

You mean the default for --c option should be changed as "Release", right?

@nagilson
Copy link
Member

nagilson commented Feb 3, 2023

Ya, snuck that into this PR #30265

@vdanche
Copy link
Member Author

vdanche commented Feb 22, 2023

The issue has been fixed on 8.0.100-preview.2.23121.12(runtime-8.0.0-preview.2.23116.1)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-WebSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants