Build Error VS2019 for Mac Preview 3 'The "ResolvePackageAssets" task failed unexpectedly.' #2461
Issue Build Error VS2019 for Mac Preview 3 'The "ResolvePackageAssets" task failed unexpectedly.'
.NET Core SDK Version: 3.0.100-preview3-010431
After installing .NET Core 3.0 sdk I am no longer able to build my WebAPI project through Visual Studio. It seems to build fine using "dotnet build" with CLI. Prior to installing and updating the WebAPI project to ASP.NET Core 3.0 (Preview 3), I didn't have any issues building through Visual Studio. If I can provide anymore helpful information, please just let me know. Below is the description of the error I am receiving.
/usr/local/share/dotnet/sdk/3.0.100-preview3-010431/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(5,5): Error MSB4018: The "ResolvePackageAssets" task failed unexpectedly.
I've just uninstalled .NET 3.0 preview3 as described here https://docs.microsoft.com/en-us/dotnet/core/versions/remove-runtime-sdk-versions?tabs=macos and everything works fine now:
$ dotnet --list-sdks
$ dotnet --list-runtimes
$ sudo rm -rf /usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App 3.0.0-preview3-19153-02
I'm no longer receiving the same error that I started this issue with. I'm now seeing the error below when I try to build.