B
B
Boris the Animal2015-10-11 11:57:35
Programming
Boris the Animal, 2015-10-11 11:57:35

Unable to run project after installing libraries via NuGet package manager. Metadata not found. How to decide?

Started writing an application. I use Microsoft Visual Studio 2015. Through the NuGet package manager, I connected the MvvmLight library. And that's it, programming on this got up, since I can't compile the project. I deleted the libraries through the package manager, copied the libraries manually to the project folder, connected them manually, but the studio still writes errors. It's just brainwashing, why doesn't it work?

Severity Code Description Project File Line
Error Metadata file ' tests etc\DocumentationViewer\Libs\Microsoft.Practices.ServiceLocation.dll' could not be found Documentation.ViewModel F:\Programming\C#\Temporary, tests etc\ DocumentationViewer\Documentation.ViewModel\CSC

ddf37a4bbc82438b878ad687ea7e8cb4.jpg
Here is the Visual Studio output
1>------ Build started: Project: Documentation.Core, Configuration: Debug Any CPU ------
1>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
1>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Common\bin\Debug\Common.dll' could not be found
2>------ Build started: Project: Documentation.ViewModel, Configuration: Debug Any CPU ------
2>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
2>CSC : error CS0006: Metadata file ' tests etc\ DocumentationViewer\Common\bin\Debug\Common.dll' could not be found
2>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
2>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Documentation.Core\bin\Debug\Documentation.Core.dll' could not be
found \C#\Temporary' could not be found
2>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Libs\GalaSoft.MvvmLight.dll' could not be found
2>CSC : error CS0006: Metadata file 'F :\Programming\C#\Temporary' could not be found
2>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Libs\GalaSoft.MvvmLight.Extras.dll' could not be found
2>CSC : error CS0006 : Metadata file 'F:\Programming\C#\Temporary' could not be found
2>CSC : error CS0006: Metadata file ' tests etc.d\DocumentationViewer\Libs\GalaSoft.MvvmLight.Platform.dll' could not be found
2>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
2>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Libs\Microsoft.Practices.ServiceLocation.dll ' could not be found
3>------ Build started: Project: DocumentationViewer, Configuration: Debug Any CPU ------
3>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
3>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Common\bin\Debug\Common.dll' could not be found
3>CSC : error CS0006: Metadata file 'F:\Programming \C#\Temporary' could not be found
3>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Documentation.Core\bin\Debug\Documentation.Core.dll' could not be found
3>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
3>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Documentation.ViewModel\bin\Debug\Documentation .ViewModel.dll' could not be found
3>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
3>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\ Libs\GalaSoft.MvvmLight.dll' could not be found
3>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
3>CSC : error CS0006: Metadata file ' tests etc \DocumentationViewer\Libs\GalaSoft.MvvmLight.Extras.dll' could not be found
3>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary' could not be found
3>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Libs\GalaSoft.MvvmLight.Platform.dll' could not be found
3>CSC : error CS0006: Metadata file 'F:\Programming\C#\Temporary ' could not be found
3>CSC : error CS0006: Metadata file ' tests etc\DocumentationViewer\Libs\Microsoft.Practices.ServiceLocation.dll' could not be found
========== Build: 0 succeeded, 3 failed, 1 up-to-date, 0 skipped ==========

I do not understand, the libraries are not copied to the folder where all the compiled libraries and executables are placed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
wlbm_onizuka, 2015-10-24
@wlbm_onizuka

the problem is most likely in which target framework is set in the project properties
when the library has a version of the required framework higher than the application in which it is connected, such an error occurs

W
wkololo_4ever, 2015-10-11
@wkololo_4ever

1) Remove packages
2) Install them with nuget.
3) Click on solution -> Clean Solution
4) Try to build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question