question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error MB2014 Microsoft.PackageDependencyResolution

See original GitHub issue

@SeanErvinson commented on Wed Jun 20 2018

Having trouble building or running on the latest version of dotnet.

asean@asean:~$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.1.301
 Commit:    59524873d6

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.301/

Host (useful for support):
  Version: 2.1.1
  Commit:  6985b9f684

.NET Core SDKs installed:
  2.1.301 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

What I have done: -Remove entire dotnet core -Clean install of dotnet core on Ubuntu 18.04. -dotnet new console -both dotnet build and dotnet run resulted in this error

  • also tried with an ASP.Net Core app same result

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nguerreracommented, Jun 21, 2018

See also https://github.com/dotnet/corefx/issues/29820#issuecomment-390690353 for a workaround that doesn’t involve changing timezones, but will slow down your builds.

1reaction
tarekghcommented, Jun 21, 2018

Is that bug fix ported to .NET Core 2.1 servicing by chance.

No, I don’t think this is ported to the servicing. this should repro only on a specific TZ. @SeanErvinson what is TZ you have in your machine? changing the TZ temporary during the build will help avoid this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PackageDependencyResolution Error on project.assets. ...
When looking at the output, the following message is displayed: C:\Program Files\dotnet\sdk\2.1.102\Sdks\Microsoft.NET.Sdk\build\Microsoft.
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
This error indicates that package restore is disabled in your NuGet configuration. You can change the applicable settings in Visual Studio as ...
Read more >
The "ResolvePackageAssets" task failed unexpectedly
This error due to Nuget packages version compatibility different in projects(Shared project,iOS Project,Android Projects). Solution:-.
Read more >
NuGet Restore task fails for .Net Core project migrated with ...
Dear all, I have .Net Core project which has been converted with Visual Studio 2017. The build plan especially the task NuGet Restore...
Read more >
Solve build error with msbuild at Microsoft. ...
If you run msbuild and get an error message that points out Microsoft.PackageDependencyResolution.targets(198,5), then this article may help you ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found