StereoKit icon indicating copy to clipboard operation
StereoKit copied to clipboard

System.Runtime 4.2.2.0

Open HarrisonBT opened this issue 2 years ago • 4 comments

Hi,

I'm trying to add an external nuget package with no success.

Is it possible to build SK against 4.2.2.0 System.Runtime

Error CS1705 Assembly 'rcldotnet_assemblies' with identity 'rcldotnet_assemblies, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

HarrisonBT avatar Nov 24 '22 05:11 HarrisonBT

What is System.Runtime, and what are you hoping to use it for? I don't see the version you mention on NuGet, but the versions that are on NuGet look... old? StereoKit doesn't directly reference System.Runtime and I'm not immediately seeing any of StereoKit's dependencies referencing it either.

Is it your own project that has conflicting dependencies here? What .NET setup are you using? Any other details you have to share here?

maluoi avatar Nov 24 '22 05:11 maluoi

I'm trying to add Lou Amadio's ROS2 foxy nuget package.

Just using the .NET 6.2.9 UWP included in the template project for UWP and StereoKit 3.6

Lou seems to think it is looking like an incompatibility between Stereokit and the ROS distro .NET runtime built it against.

Warning		Found conflicts between different versions of "System.Threading" that could not be resolved.
There was a conflict between "System.Threading, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    "System.Threading, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
    References which depend on "System.Threading, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.dll].
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.dll
    References which depend on "System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.EventBasedAsync.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.EventBasedAsync.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.EventBasedAsync.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Net.Mail.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Net.Ping.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Net.WebClient.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Net.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Primitives.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Duplex.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Http.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.NetTcp.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Security.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\netstandard.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\Microsoft.CSharp.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\Microsoft.VisualBasic.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Buffers.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.Annotations.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.DataAnnotations.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Data.SqlClient.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Data.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.IO.Ports.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Reflection.Context.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Reflection.DispatchProxy.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Reflection.TypeExtensions.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Security.AccessControl.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Security.Principal.Windows.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Text.Encoding.CodePages.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.Tasks.Dataflow.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\mscorlib.dll
            C:\Users\HarrisonWhite\.nuget\packages\stereokit\0.3.6\lib\netstandard2.0\StereoKit.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Core.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Core.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Core.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Duplex.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Duplex.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Duplex.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Primitives.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Primitives.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Primitives.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Duplex.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Http.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.NetTcp.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.Security.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ServiceModel.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.Thread.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.Thread.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.Thread.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\mscorlib.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\mscorlib.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\mscorlib.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\netstandard.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\netstandard.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\netstandard.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\Microsoft.CSharp.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\Microsoft.VisualBasic.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Buffers.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.Annotations.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.ComponentModel.DataAnnotations.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Data.SqlClient.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Data.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.IO.Ports.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Reflection.Context.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Reflection.DispatchProxy.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Reflection.TypeExtensions.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Security.AccessControl.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Security.Principal.Windows.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Text.Encoding.CodePages.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Threading.Tasks.Dataflow.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.dll
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\mscorlib.dll
            C:\Users\HarrisonWhite\.nuget\packages\stereokit\0.3.6\lib\netstandard2.0\StereoKit.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.ros.mrtk.foxy.arm64\0.2.0\ref\uap10.0.19041\rclcppdotnet_assemblies.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.ros.mrtk.foxy.arm64\0.2.0\ref\uap10.0.19041\rclcppdotnet_assemblies.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.ros.mrtk.foxy.arm64\0.2.0\ref\uap10.0.19041\rclcppdotnet_assemblies.dll
        C:\Users\HarrisonWhite\.nuget\packages\microsoft.ros.mrtk.foxy.arm64\0.2.0\ref\uap10.0.19041\rcldotnet_assemblies.dll
          Project file item includes which caused reference "C:\Users\HarrisonWhite\.nuget\packages\microsoft.ros.mrtk.foxy.arm64\0.2.0\ref\uap10.0.19041\rcldotnet_assemblies.dll".
            C:\Users\HarrisonWhite\.nuget\packages\microsoft.ros.mrtk.foxy.arm64\0.2.0\ref\uap10.0.19041\rcldotnet_assemblies.dll	SKROS			

HarrisonBT avatar Nov 24 '22 23:11 HarrisonBT

Sorry, I'm not terribly great at troubleshooting issues like these! StereoKit's C# DLL is a .NET Standard 2.0 library, and is supposed to be portable. This doesn't look like it has anything to do with StereoKit's native DLL either, which is good.

Is it possible it's the template dependencies that are the issue? UWP 6.2.9 is a pretty arbitrary version, that's just what I used when I first created the templates and you should have a good bit of flexibility to change it to whatever works best for you. It is also pretty trivial to just add StereoKit to an existing project too, the templates are really just: sample code, nuget reference, and Asset folder copy.

Is this the ROS2 foxy nuget that you mentioned? I'm guessing there's no pre-built version of that for me to peek at. Are there details somewhere about the ROS2 .NET Runtime?

maluoi avatar Nov 25 '22 08:11 maluoi

Thanks for the reply!

I'll try to find some alternative to UWP 6.2.9

Yes, that is the repo. There is a build under 'Tags' ARM64 0.1.0 but I have ARM64 0.2.0. I can provide you with 0.2.0 if you would like to take a look.

ROS2.net -> https://github.com/ros2-dotnet/ros2_dotnet

HarrisonBT avatar Nov 28 '22 02:11 HarrisonBT