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.
Related
I upgraded my project to Unity 2021 and have tons of the same error:
error CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?)
This is for both packages and my own scripts. I added an assembly definition in my main scripts folder and tried to add a reference but I couldn't find the proper one to fix any issue.
For example, I'm using the RootMotion FinalIK and PuppetMaster assets. All scripts referencing these have using RootMotion.FinalIK and using RootMotion.Dynamics However, the script doesn't recognize RootMotion.Dynamics and every variable type using RootMotion.FinalIK cannot be found.
Any ideas?
The fix was to just restart Unity and VSCode.
I make my project based on this tutorial:
https://learn.microsoft.com/en-us/aspnet/core/tutorials/grpc/grpc-start?view=aspnetcore-3.1&tabs=visual-studio
It told me that it is missing directive or an assembly reference.
But I instal the related plugin, and the code generate successfully, I don't know why VS still can't find the code...
Here is the code content, the namespace is exist:
More info my proto properties:
Error Msg:
1>MainWindow.xaml.cs(6,7,6,23): error CS0246: The type or namespace
name 'HeartBeatMessage' could not be found (are you missing a using
directive or an assembly reference?)
1>MainWindow.xaml.cs(16,24,16,40): error CS0246: The type or namespace
name 'HeartBeatService' could not be found (are you missing a using
directive or an assembly reference?)
I found this question because I was running into this problem too. See: https://github.com/grpc/grpc/issues/20402
For now, I have manually moved the generated .cs files into my project and disabled the build step on the .proto (otherwise VS will complain about double definitions).
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).
I am having a problem I am trying to troubleshoot. I developed a website in VS 2013, and am trying to set the website up for continuous integration on a server using teamcity.
I have already tested teamcity on my computer, and have it compiling perfectly using a VS2013 install.
On the server, I have everything working...except for the compilation. In order to compile the website, I installed VS Express on the server. The problem is, a new error is appearing on the server:
System.Net.Http.Formatting and
System.Web.Http
...are both missing.
Are they missing because of some error? Because I am using VSExpress instead of VS2013?
The actual error is:
Security\ApiAuthentication.cs(7, 23): error CS0234: The type or namespace name 'Formatting' does not exist in the namespace 'System.Net.Http' (are you missing an assembly reference?)
Security\ApiAuthentication.cs(12, 18): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Security\ApiAuthentication.cs(21, 49): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Security\ApiAuthentication.cs(32, 48): error CS0246: The type or namespace name 'HttpActionContext' could not be found (are you missing a using directive or an assembly reference?)
I've got VS Community 2013 on my local, in the base install the System.Net.Http namespace exists but System.Net.Http.Formatting does not. This is the same with System.Web vs System.Web.Http.
On installing the Microsoft.AspNet.WebApi.Core NuGet package both appeared as expected and could be referenced.
Have you tried adding a NuGet Restore step to your TeamCity build before compiling? It's strange mind that these are the only errors you are seeing if there's been no NuGet restore in place. Maybe a build order issue / red herring?
I am following a code from Intel RealSense 3D camera. However I got this error. If I am supposed to add something to the Reference Assembly can you tell me what that is or how should this be fixed? This pertains to the FaceTracking example in the Intel RealSense 3D SDK Sample Browser.
private FPSTimer m_timer;
and here's the error:
Error 1 The type or namespace name 'FPSTimer' could not be found (are you missing a using directive or an assembly reference?) c:\users\mona\documents\visual studio 2013\Projects\wfa1\wfa1\FaceTracking.cs 10 17 wfa1
I'm thinking you may or may not have the correct references installed, and then you need to add the proper using statement in your code file?
I don;t have this particular SDK on my machine, but there is some documentation available HERE which may be helpful. In particular, maybe THIS section?