[2.1-rc1] dotnet clean fails when obj folder is missing
See original GitHub issueHow to reproduce
- Run
dotnet new classlib
in an empty folder - Delete the obj folder
- Run
dotnet clean
What happens
- Clean fails
- obj folder is created with empty folders
What should happen
- Nothing, project is already clean
This is an issue on our CI server, where we run dotnet clean
as the first step of every build, and then run dotnet restore
as the second step. It now fails on the initial build, when it clones the repo and there is no obj folder.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Project file is incomplete. Expected imports are missing
After this I've reinstalled the dotnet-sdk-2.1. 200-win-x64 package and everything worked fine. Deleting the bin and obj folders for the ...
Read more >Project file is incomplete. Expected imports are missing-.net-core
After this I've reinstalled the dotnet-sdk-2.1. 200-win-x64 package and everything worked fine. Deleting the bin and obj folders for the project fixed this...
Read more >https://dev.azure.com/dotnet/fe18572b-d1ba-496a-9e...
... 2.1-rc1 -> 2.1-rc1 2020-12-03T13:33:19.1815774Z * [new tag] 2.1-rc2 -> 2.1-rc2 ... dotnet\sdk\3.1.404\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet ...
Read more >No object (name: request) has been registered for this thread
I'm getting this error message when running my tests: ERROR: Failure: TypeError (No object (name: request) has been registered for this ...
Read more >Correct Caching is always hard - Scott Hanselman's Blog
NET Core 2.1 RC1. First, .NET Core 2.1's Release Candidate is out. This one has a Go Live license and it's very close...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks for this quick fix: waiting the next release to test it. great work @nguerrera
@Petermarcu TBD I suppose, but it is a regression and pretty bad. I’m doing some validation and will send to ship room this afternoon for the call.