Skip to content

dotnet clean should be more resilient to TFM changes #22692

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

Open
baronfel opened this issue Nov 19, 2021 · 1 comment
Open

dotnet clean should be more resilient to TFM changes #22692

baronfel opened this issue Nov 19, 2021 · 1 comment
Assignees
Labels
Area-CLI untriaged Request triage from a team member

Comments

@baronfel
Copy link
Member

Is your feature request related to a problem? Please describe.

When users change their projects to add new TFMs, artifacts from prior TFMs can remain in the intermediate directories. This can result in various build processes mistakenly reading those artifacts. Users may then attempt a dotnet clean operation, which doesn't clean up artifacts from the previous TFMs due to the way that the list of items to clean is populated in the targets.

Describe the solution you'd like

We should provide an easy, comprehensive way to clean out the intermediate directories for project(s) or a solution that works independently of the TFM(s) provided to the command. It might be as simple as having an --all option added to dotnet clean, or as drastic as making the default behavior of dotnet clean this more broad removal. After the command is run, no artifacts from any TFM(s) should be present in the any of the IntermediateOutputPath(s) of the projects or solutions.

@ghost ghost added Area-CLI untriaged Request triage from a team member labels Nov 19, 2021
@danroth27
Copy link
Member

Example quote from a customer hitting issues with this: "Yesterday I had to reinstall my VS installation for the intellisense to understand that project was an Blazor app. Then I had to research internet, then some smart one pointed out that I should remove /obj folder in solution folder. I did it and everything worked. 5 hours thrown away for nothing, I expected that 'Clean solution' would Clean up temp files, or I’m wrong?"

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

No branches or pull requests

3 participants