Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeLoadException: Could not resolve type from typeref (expected class System.Reflection.Assembly in assembly System.Runtime) #116

Open
jpadillaperez opened this issue Jul 12, 2023 · 1 comment

Comments

@jpadillaperez
Copy link

Hi everyone! First of all, I would like to express my sincere appreciation for the effort put into developing the project. I have been working on it for the past six months, attempting to create custom messages for ROS2 in Hololens 2.

I have been trying to renew the project of ms-iot/ros_msft_mrtk_native by building ROS2 from scratch for Unity and ARM64 for been able of building customized messages for ROS2 in Hololens 2. I have spent quite some time but I don't manage to make it work. The error that I encounter is related to ros2 dotnet and its dependencies, so I hope that I can find some guidance here.
After building ros2 dotnet successfully, without any customized message, once I try to use it in Unity. The following dependency error appear:

TypeLoadException: Could not resolve type with token 01000011 from typeref (expected class 'System.Reflection.Assembly' in assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') ROS2.RCLdotnetDelegates..cctor () (at C:/opt/target/src/ros2_dotnet/ros2_dotnet/rcldotnet/RCLdotnet.cs:130)

This error appears in the lines of initialization and spin of ROS2.NET for both, the Unity Editor and the Hololens 2 App

I'm building on Windows 10, currently using .Net 5, Visual Studio 2019 and building for ROS2 Foxy.

@hoffmann-stefan
Copy link
Member

Hi @jpadillaperez,

sorry for the late reply, but was busy at work and spare time recently.

Not sure why this broke. But unfortunately I don't have either a working Unity or UWP setup right now, nor do I have any experience for both of them. I don't think I have the time to set this up anytime near either. Sorry I can't really help here right now :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants