Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find compilation library location for package 'Microsoft.NETCore.App'

I've upgraded from .NET Core 2.0 to 2.1.1 (so many elements that gets highly confusing).

I built my project and now I'm getting this error:

Cannot find compilation library location for package 'Microsoft.NETCore.App'

I don't know what other information should I provide. Please guide me in providing more info on this issue.

It's such a frustrating experience. Upgrading backward compatible version in Semantic Versioning shouldn't break things. I wish they had versioned this release as .NET Core 3.0, so that we wouldn't upgrade. Any help?

Update: I created this issue on GitHub.

like image 915
mohammad rostami siahgeli Avatar asked Jun 25 '18 10:06

mohammad rostami siahgeli


2 Answers

I did simple fix for this issue, I selected option to remove additional files at destination before publish and then it solved my issue.

enter image description here

like image 77
Muni Chittem Avatar answered Sep 18 '22 16:09

Muni Chittem


Just set MvcRazorExcludeRefAssembliesFromPublish to false in your .csproj file and that should fix the issue.

like image 35
Ali Avatar answered Sep 20 '22 16:09

Ali