-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotnet clean requires a RID if SelfContained=true in project file but no RID is set #27488
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
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Not surprised this happens, though this is an interesting scenario. Thanks for reporting it @jtschuster. Verified that this is fixed already by #26143 for rc-2. Except, we will be making |
If folks want a dotnet clean --all, we should track as a separate issue and come up with a design as that's not as easy as it sounds. |
Would appreciate any feedback on |
Just stumbled onto this same issue. Could the solution be as simple as adding the |
@rkm it doesn't look like sdk/src/Cli/dotnet/commands/dotnet-clean/CleanCommandParser.cs Lines 48 to 56 in f65053d
We'd need to add |
Definitely! I will send a PR |
Describe the bug
Running dotnet clean with true in the project file will fail and return an error.
It doesn't seem like it should be necessary to set a RID for
dotnet clean
.To Reproduce
Create a project file with SelfContained
Run
dotnet clean
.Further technical details
dotnet --info:
.NET SDK:
Version: 7.0.100-rc.2.22417.1
Commit: f3da421
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100-rc.2.22417.1\
Host:
Version: 7.0.0-rc.1.22411.12
Architecture: x64
Commit: f52d8c59bb
.NET SDKs installed:
3.1.422 [C:\Program Files\dotnet\sdk]
6.0.400 [C:\Program Files\dotnet\sdk]
7.0.100-rc.2.22417.1 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-rc.1.22415.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-rc.1.22411.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-rc.1.22379.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
Environment variables:
Not set
global.json file:
Not found
The text was updated successfully, but these errors were encountered: