Ensure that restore has run and that you have included 'net5.0' in the TargetFrameworks for your project.

8 months ago
Hi,

I am using the Windows Azure App Service with nopCommerce 4.4. What does this error mean?

##[error]C:\Program Files\dotnet\sdk\5.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): Error NETSDK1005: Assets file 'D:\a\19\s\Build\src\ClearPluginAssemblies\obj\project.assets.json' doesn't have a target for 'net5.0'. Ensure that restore has run and that you have included 'net5.0' in the TargetFrameworks for your project.

The project is built on .net 5.0.
8 months ago
1. Update Visual Studio to the latest version.
2. Update your Nuget package manager.
To check Nuget version:
Tools -> Nuget Package Manager -> Package Manager console

PM > $host

enter.
Then delete the bin folder and rebuild the project.