Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Problem with Xamarin Forms build. System.IO.FileNotFoundException

$
0
0

I have been successfully building my app for the past few months, but then this happened:

Severity Code Description Project File Line Suppression State Error The "LinkAssemblies" task failed unexpectedly. System.IO.FileNotFoundException: Could not load assembly 'MyApp.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'MyApp.Android.dll' at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName) at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res) at Xamarin.Android.Tasks.LinkAssemblies.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() MyApp.Android

I think it was the latest Visual Studio 2017 Community update that killed it, but I can't be sure. All I'm sure is that it was working before, then after a few days and trying it again, it failed (without changes being made to the code or any setting). I have tried setting the linker to "None" but it still isn't building. I have tried updating to the latest Xamarin.Forms nuget, still nothing. I tried nuking my .nuget/packages folder, same error after the download refresh completed.

Has anyone encountered this? Help!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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