Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is "could not be loaded" an error fixed by restarting?

This is the error.

The "Xamarin.Forms.Build.Tasks.FixedCreateCSharpManifestResourceName" task could not be loaded from the assembly \packages\Xamarin.Forms.2.1.0.6526\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Build.Tasks.dll. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.Project

I've tried restarting VS, rebuilding the solution, rebuilding each project in the solution, and I tried the solution from the following:

BuildTasks.Csc task could not be loaded from the assembly?

However doing that just leads me to the following error:

Unable to copy file "obj\Debug\Project.dll" to "bin\Debug\Project.dll". The process cannot access the file 'bin\Debug\Project.dll' because it is being used by another process.

I looked into this one and it seems to be "solved" by restarting VS a lot. I was also getting this error before deleting the packages folder, but after restarting I was getting the "task could not be loaded" error.

like image 439
Scko Avatar asked Mar 14 '16 14:03

Scko


1 Answers

in solution explorer

right click on References -> Manage Nuget packages...

then

search: xamarin.forms

Author(s): xamarin Inc.

install or uninstall xamarin.forms package and restart VS

like image 95
MohammadReza Moradi Avatar answered Sep 26 '22 12:09

MohammadReza Moradi