Closed
Description
From @pranavkm on Monday, September 23, 2019 6:04:07 PM
From @zygimantas on Monday, September 23, 2019 5:46:20 PM
[Enter feedback here]
.NET 3.0 breaking change - I had to change after upgrade from 2.2 to 3.0:
dotnet publish --configuration=Release --no-restore --output=../../dist src/Website
to
dotnet publish --configuration=Release --no-restore --output=dist src/Website
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 76f39eec-9dd1-6167-56ec-47b26e0b5063
- Version Independent ID: f9f2b0f3-01eb-cf58-8767-194fe0fc0e44
- Content: Migrate from ASP.NET Core 2.2 to 3.0 Preview
- Content Source: aspnetcore/migration/22-to-30.md
- Product: aspnet-core
- Technology: aspnetcore-migration
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande
Copied from original issue: dotnet/AspNetCore.Docs#14494
Copied from original issue: dotnet/aspnetcore#14262
Activity
mkArtakMSFT commentedon Sep 24, 2019
From @pranavkm on Monday, September 23, 2019 6:04:08 PM
From @Rick-Anderson on Monday, September 23, 2019 5:50:31 PM
@pranavkm who can review
dotnet publish --configuration=Release --no-restore --output=dist src/Website
mkArtakMSFT commentedon Sep 24, 2019
From @pranavkm on Monday, September 23, 2019 6:04:10 PM
From @zygimantas on Monday, September 23, 2019 5:55:09 PM
Solution structure is:
mkArtakMSFT commentedon Sep 24, 2019
From @pranavkm on Monday, September 23, 2019 6:04:11 PM
From @zygimantas on Monday, September 23, 2019 5:56:23 PM
Error in 3.0-alpine docker container was:
mkArtakMSFT commentedon Sep 24, 2019
From @pranavkm on Monday, September 23, 2019 6:04:46 PM
@vijayrkn does this seem familiar?
mkArtakMSFT commentedon Sep 24, 2019
From @vijayrkn on Monday, September 23, 2019 6:18:59 PM
No. This is just plain 'dotnet publish'.
Adding @nguerrera
mkArtakMSFT commentedon Sep 24, 2019
From @zygimantas on Monday, September 23, 2019 6:31:17 PM
Probably it's unrelated, but I use 3.0-alpine SDK image, but I haven't upgraded the code yet, so
<TargetFramework>netcoreapp2.2</TargetFramework>
is still in csprojmkArtakMSFT commentedon Sep 24, 2019
From @nguerrera on Monday, September 23, 2019 6:38:43 PM
This was an intentional change and should be documented as such.
There was some discussion of including it in docs/release notes on https://github.com/dotnet/cli/issues/4765, but seems not to have happened. It has been this way in every 3.0 preview.
I believe this would best be tracked as a docs issue. cc @KathleenDollard @livarcocc
WeihanLi commentedon Sep 24, 2019
the same problem met, that's really a breaking change(if not a bug), a bunch of dockerfile had to update 😢
dasMulli commentedon Sep 24, 2019
The change was made for a major version that semantically allows breaks but you probably needed to update your docker files for 3.0 anyway.
Meanwhile people would open issues that the way the output paths are handled seem just wrong and unnatural. I'd be interested to know if you think that what you needed to change to feels better given the current working directory and location of project and output directory (apart from the obvious pain of migration which I am sorry for).
zygimantas commentedon Sep 27, 2019
3.0 way is more natural
livarcocc commentedon Sep 30, 2019
This change was by design and aligns the CLI with the majority of other command line tools out there regarding this behavior.