So, I have been trying to compile a project in web assembly with Uno Platform, but I have not been able to successfully compile due to a linker error, This error is something like this:
Fatal error in Mono IL Linker
Mono.Linker.MarkException: Error processing method: 'System.Void Microsoft.Xaml.Interactivity.Behavior::.cctor()' in assembly: 'Microsoft.Xaml.Interactivity.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve Uno.Diagnostics.Eventing.IEventProvider Uno.Diagnostics.Eventing.Tracing::Get(System.Guid)
I thought that maybe the Uno.Diagnostics.Eventing was missing or something, so, I've installed but after doing that the error persists.
I don't know what the error could be or if it is related to something else, anyone can give a hand?
Well, it seems that for my specific version of Uno.WebAssembly (3.0.17) I needed the package Uno.Microsoft.Xaml.Behaviors.Uwp.Managed to be on version 2.0.2-uno.79 to work. Simple as that
Related
Today I try to download from nuget package manager MarcTron to use Ads in my app and when I try to run the project in debug mode I receive this error:
Error MT5210: Native linking failed, undefined symbol: _GULIsLoggableLevel. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (WeatherLocationInfo.iOS)
Another error is:
APMMeasurement networkUploadCompletionHandlerWithResponse: Error: ] in GoogleAppMeasurement(APMMeasurement_7b399ffe8f030717675febfa49640b5b.o) (WeatherLocationInfo.iOS)
When I delete the library everything is ok.
The same error I receive when I try to download Xamarin.Google.iOS.MobileAds.
How can I fix this issues ?
I am attempting to use AddictedCS SoundFingerprinting (https://github.com/AddictedCS/soundfingerprinting).
When I download any recent version and build with Visual Studio 2019 I get the expected output with no errors or warnings (SoundFingerprinting.dll).
The issue is that when I attempt to call functionality from the DLL in a .net console application I get errors relating to netstandard referencing.
I've attempted to add a new reference manually as the error message suggests, but get no further - same error occurs.
Here is my code, taken straight from the SoundFingerprinting example:
var hashedFingerprints = await FingerprintCommandBuilder.Instance
.BuildFingerprintCommand()
.From("C:/Users/Asher/Desktop/testSound.wav")
.UsingServices(audioService)
.Hash();
Here is the error log I am getting when compiling my console app with either mcs or csc:
C:\Users\Asher\Desktop\Raw_0.1>mcs TestProg.cs
-r:SoundFingerprinting.dll -r:protobuf-net.dll TestProg.cs(46,40): error CS0012: The type System.Object' is defined in an assembly that
is not referenced. Consider adding a reference to assembly
netstandard, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51'
C:\Users\Asher\Desktop\Raw_0.1\SoundFingerprinting.dll (Location of
the symbol related to previous error) Compilation failed: 1 error(s),
0 warnings
I attempted this on my desktop PC running Windows 10, and on my Surface Pro 6 running Windows 10. I also attempted this using VS2017. The result was the same each time.
Also tried to use the library in Unity3D which caused a crash with no prompt or stacktrace output.
To Reproduce
Use: Windows 10, Visual Studio 2019
Steps to reproduce the behavior:
Download latest release (v7.2.0-beta3)
Build libraries
Attempt to call functionality from SoundFingerprinting.dll via a console application
I encountered exactly the same problem today. What fixed it for me was simply downloading the latest version of protobuf-net from nuget:
Install-Package protobuf-net -Version 3.0.101
Also, please don't paste pictures of code but the code itself next time.
I am running a team city build, which is failing continuously because of FXCope unable to resolve the reference.
Getting following error:
The following error was encountered while reading module 'project': Could not resolve member reference: [dllNamespace, Version=1.0.0.238, Culture=neutral, PublicKeyToken=null]dllNamespace.IoC::Setup.
The actual version of the dll is 1.0.0.238 and it is present in the teamcity build and all my tests are getting passed but at the end of the build Fxcope throw the above error.
I just got a VPS server running Linux Debian 7 and tried to get one of my C# servers running on it using Mono. Unfortunately it did not work the first time i ran it, it threw this error:
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.IAsyncStateMachine' from assembly 'mscorlib, Version=4.0.0.0
I've found out the exact line which is causing this error and it is:
ThreadPool.QueueUserWorkItem( myThread => TcpAccept() );
Without this line the server doesn't accept any connections and so on...
I would like to know how to fix this or find an alternative way to write this line. Any help is greatly appreciated!
Here's the error I'm getting:
Error CS0016: Could not write to file Fact.Apprentice.Core', cause: Type '<>__AnonType02' was not completed. (CS0016) (Fact.Apprentice.Core - Mono)
If I compile using MonoDevelop + Microsoft .NET, no such error shows up. When using Mono framework, I am unable to compile because of this. Behavior identical for Mac or PC installation.
This kind of error usually indicates compiler bug. The most likely source will be some of your LINQ queries. You could also try Mono 2.11 which should give you better error message.