I created an app based off the Hanselman Forms app. I'm trying to get it to run with the new Xamarin iOS Live Player and i'm getting runtime build errors.
To make sure it wasn't something i broke i did a fresh install of Hanselman Forms and Visual Studio 2017 Preview and connected the iPhone live player.
The build compiles fine with VS.
Trying to run the debug app with Live Player on iPhone gives the following errors.
The following errors were encountered when building and running your app:
• TweetStore.cs: The type or namespace name 'ITweetStore' could not be found (are you missing a using directive or an assembly reference?)
• TweetStore.cs: The type or namespace name 'Tweet' does not exist in the namespace 'Hanselman.Portable' (are you missing an assembly reference?)
• LaunchTwitter.cs: The type or namespace name 'ILaunchTwitter' could not be found (are you missing a using directive or an assembly reference?)
• AppDelegate.cs: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
OK
The packets have been refreshed.
I've removed the bin/obj files to do a fresh build.
I've removed the reference, built clean, got similar errors in VS, added the reference back in and the VS build succeeds.
Android works fine.
Any ideas as to what i'm missing?
This is a known issue and is being worked on by the Xamarin folks.
Details at the following link. https://forums.xamarin.com/discussion/95825/ios-run-time-errors-type-or-namespace-name-not-found-with-xamarin-live-player-and-hanselman-forms/p1?new=1
Check that you have selected a Startup Project that matches your device type (iOS or Android) and that the configuration matches that device type (eg. Debug|iPhone Simulator for iOS).
Related
I've created a reference in script to Universal.Microsoft.Bot.Connector.DirectLine in Visual Studio 2019 and everything looks fine but after I save and return to Unity, I get the following error:
error CS0246: The type or namespace name 'Universal' could not be found (are you missing a using directive or an assembly reference?)
I tried adding a reference to 'Universal' by Creating an Assembly Definition Reference asset, but did not see Universal on the list of references to add.
I'm wondering if what I'm trying to do is even possible in Unity.
You can find the package on Nuget, and grab the DLLs (and any DLLs it depends on) and put them into Assets/Plugins
https://www.nuget.org/packages/Microsoft.Bot.Connector/
if it has different folders/versions pick the Standard version
Why I am always getting the following error, although the package "Xamarin.Firebase.Auth" is already added in my Android Projekt.
Error CS0246: The type or namespace name 'Firebase' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Testing)
Screenshot:
Any ideas why this might be occurring?
I am using:
Visual Studio 2019
Version 8.8.10 (build 2)
In my previous Project everything worked fine....
See the following screenshot.
Thanks in advance.
I had tried to make builds of the scene examples of the new MRTK version 2.0.0-RC1 on Unity 2018.3.10f1 but every time with every example there's a build error which says:
The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'HandMeshObserver' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'JointPose' could not be found (are you missing a using directive or an assembly reference?)
Where do I get the library for this namespaces?
These types are part of the upcoming UWP SDK version 18362.
Download 10.0.18362.1 from https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewSDK
In the Unity Build Settings window, change the Target SDK Version to 10.0.18362.0, and make sure that Minimum SDK is is 10.0.10240.0.
This got me past the issue listed here. Then I ran into errors while trying to build the resulting solution. I had to upgrade all projects to C# language version 7.2.
We have a Unity 5 program running well with Oculus Rift + Leap Motion on a Windows 7 computer. We tried to have the same program running on another computer with Windows 10, but these following errors showed up.
Could any of you provide some suggestions? Thanks a lot! (ps. Oculus Rift and Leap Motion are running well on the Win10 computer with a separate Unity project: the package called "Core Assets" from Leap Motion that shows both Oculus and Leap Motion connections.)
Thanks!
The error messages in Unity are:
Assets/LeapMotion/Scripts/Hands/DebugFinger.cs(14,28): error CS0246: The type or namespace name `FingerModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/PolyFinger.cs(13,27): error CS0246: The type or namespace name `FingerModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/PolyHand.cs(17,25): error CS0246: The type or namespace name `HandModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/RiggedFinger.cs(17,29): error CS0246: The type or namespace name `FingerModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/RiggedHand.cs(12,27): error CS0246: The type or namespace name `HandModel' could not be found. Are you missing a using directive or an assembly reference?
The error messages pretty much sum it up: these classes are not present in your project. It seems unlikely that the project on the Win 7 computer is exactly the same as the project on the Win 10 computer -- these are compile errors after all. My guess is that you are using an earlier version of the Leap Motion assets on the computer that works and the Orion version on the other computer. None of the classes shown in the error messages are included in the newer, Orion assets. (Even if you upgraded the assets on the Win 7 computer, it may still contain the older files, and classes that depend on them.)
The problem is that Leap Motion company made a mistake releasing the Unity SDK. They build it in the wrong framework. You may be able to run the project in unity but not to debug it with Visual Studio.
The company said that they will release an update of the SDK without any problems, we'll have to wait. Until that moment you can keep coding and use the Debug.Log function to debug at real time.
You can find more info in here:
https://community.leapmotion.com/t/cannot-compile-unity-c-script-if-i-use-leap-motion-orion-4-1-3/5514
Whenever I take the latest code from TFS and tries to build existing solution, It fails all the project building and says that : The type or namespace name 'XYZ' does not exist in the sampace 'a.b.c' (are you missing an assembly reference?)
This is happening with all the references and only in my system. On the other systems all these code works fine.
Can it be a Visual Studio issue or some setting which might have got changed?