You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clean target should clean the assets file generated by restore #4476
I think just need to register these files under a property to allow them to be cleaned. I'm not sure that we want these to be part of clean however, it would make /t:Clean equivalent to uninstalling the .NET framework for core projects.
There should be a way to clean. While I see removing project.assets.json is not recommended (see #7368 (comment)), there should be a supported way to clean every cache.
PS My team is experiencing #7368 because of switching git branches so that dotnet & TargetFramework versions go up & down. error NETSDK1005: Assets file '/Users/admin/dev/dev/dev/workspace/scm-bundles/Toolset/edart/obj/project.assets.json' doesn't have a target for '.NETCoreApp,Version=v3.0'. Ensure that restore has run and that you have included 'netcoreapp3.0' in the TargetFrameworks for your project. [/Users/admin/dev/dev/dev/workspace/scm-bundles/Toolset/edart/edart.csproj]
(project.assets.json is not refreshed and that's the source of the problem)
Activity
emgarten commentedon Feb 2, 2017
I think just need to register these files under a property to allow them to be cleaned. I'm not sure that we want these to be part of clean however, it would make /t:Clean equivalent to uninstalling the .NET framework for core projects.
Deepscorn commentedon Mar 31, 2020
There should be a way to clean. While I see removing project.assets.json is not recommended (see #7368 (comment)), there should be a supported way to clean every cache.
PS My team is experiencing #7368 because of switching git branches so that dotnet & TargetFramework versions go up & down.
error NETSDK1005: Assets file '/Users/admin/dev/dev/dev/workspace/scm-bundles/Toolset/edart/obj/project.assets.json' doesn't have a target for '.NETCoreApp,Version=v3.0'. Ensure that restore has run and that you have included 'netcoreapp3.0' in the TargetFrameworks for your project. [/Users/admin/dev/dev/dev/workspace/scm-bundles/Toolset/edart/edart.csproj](project.assets.json is not refreshed and that's the source of the problem)
And we are using workaround dotnet/project-system#3164 (comment) with manually cleaning obj & bin, risking to encounter another problems, like described here dotnet/project-system#3164 (comment)
(restore PackageReferences fails)