Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

"Can not find compilation library location for package" when opening sites after installing .NET Core 2.0 SDK

$
0
0

I have an ASP.NET Core MVC 1.0 projecting targeting .NET Framework 4.6.2. I installed the .NET Core 2.0 SDK and immediately got errors when I ran the project and opened it in a browser that "Can not find compilation library location for package" for locally referenced .dlls.

I was able to recreate the problem by simply creating a new default ASP.NET Core MVC project in Visual Studio 2017, adding a .dll to the project and referencing it in Dependencies, and running the project. I did this without the SDK uninstalled and it ran good, but once again as soon as I installed .NET Core SDK it stopped working again.

Partial error result:

InvalidOperationException: Can not find compilation library location for package 'DevExpress.Data.v17.1'
Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart+<>c.<GetReferencePaths>b__8_0(CompilationLibrary library)
System.Linq.Enumerable+<SelectManyIterator>d__16.MoveNext()
Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature(IEnumerable<ApplicationPart> parts, MetadataReferenceFeature feature)
Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature<TFeature>(TFeature feature)
Microsoft.AspNetCore.Mvc.Razor.Internal.RazorReferenceManager.GetCompilationReferences()
System.Threading.LazyInitializer.EnsureInitializedCore<T>(ref T target, ref bool initialized, ref object syncLock, Func<T> valueFactory)
Microsoft.AspNetCore.Mvc.Razor.Internal.RazorReferenceManager.get_CompilationReferences()
Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.CreateCompilation(string compilationContent, string assemblyName)
Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.Compile(RelativeFileInfo fileInfo, string compilationContent)
Microsoft.AspNetCore.Mvc.Razor.Internal.RazorCompilationService.Compile(RelativeFileInfo file)
Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry(string relativePath, string normalizedPath, Func<RelativeFileInfo, CompilationResult> compile)


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>