You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built a Xamarin.Mac test app which targets Xamarin.Mac, .NET 4.5 which references a Xamarin.Mac class library which targets the same. The library pulls in the latest, stable PCLStorage NuGet from NuGet.org. But when I run the app, I get an immediate System.IO.FileNotFoundException in Main() with this message.
Could not load file or assembly 'System.Windows.Forms' or one of its dependencies.
I've commented out most of the code in the library and I believe I've isolated the offending statement to this line.
var folder = FileSystem.Current.LocalStorage;
When it fails, the last line in the Application Output window shows
If I comment the line out, the app starts up just fine and the Output does NOT show PCLStorage.dll being loaded at all. PCLStorage.Abstractions.dll [External] loads with no problems.
I'm running Xamarin Studio 5.10.3 (build 51) with Xamarin.Mac Version 2.4.2.1 (Xamarin Enterprise), and a colleague can reproduce the same problem in their dev environment running the same project.
No problem on iOS, Android, and Windows.
I've been debugging this for days now. Do you have a clue as to what my problem might be?
Thanks
The text was updated successfully, but these errors were encountered:
When I changed the Target Framework of just the Xamain.Mac app to Mono/.NET 4.5 it worked. When I changed it back to Xamarin.Mac .NET 4.5 it also worked.
Something got nudged during the toggle, but what's inexplicable is nothing discernable changed in the .csproj file.
I built a Xamarin.Mac test app which targets Xamarin.Mac, .NET 4.5 which references a Xamarin.Mac class library which targets the same. The library pulls in the latest, stable PCLStorage NuGet from NuGet.org. But when I run the app, I get an immediate System.IO.FileNotFoundException in Main() with this message.
Could not load file or assembly 'System.Windows.Forms' or one of its dependencies.
I've commented out most of the code in the library and I believe I've isolated the offending statement to this line.
var folder = FileSystem.Current.LocalStorage;
When it fails, the last line in the Application Output window shows
Loaded assembly..../MonoBundle/PCLStorage.dll [External]
If I comment the line out, the app starts up just fine and the Output does NOT show PCLStorage.dll being loaded at all. PCLStorage.Abstractions.dll [External] loads with no problems.
I'm running Xamarin Studio 5.10.3 (build 51) with Xamarin.Mac Version 2.4.2.1 (Xamarin Enterprise), and a colleague can reproduce the same problem in their dev environment running the same project.
No problem on iOS, Android, and Windows.
I've been debugging this for days now. Do you have a clue as to what my problem might be?
Thanks
The text was updated successfully, but these errors were encountered: