Can you connect to a BotFramework bot in Unity using Directline? - c#

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

Related

Is there a way to track which assembly definition a script belongs to?

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.

System.Runtime.Remoting not present in COM reference pop up

I have just started with .net development. But while working with my first project for remoting I stucked on an error for an import present in my project.
using System.Runtime.Remoting.Channels
Gives an error showing 'The type or namespace name 'Channels' does not exist in the namespace 'System.Runtime.Remoting.' (are you missing an assembly reference?)'
And after searching a lot on web I got solution to add COM reference to the project with dll named System.Runtime.Remoting but on the pop of add reference I couldn't found the dll. Do I have to download the same or any other solution for that?

How to solve C# reference errors for Watson Unity SDK in Unity?

This is my first Unity project and since I know a bit about Watson, I thought I would start with that.
But when I create a new project and import the Watson Unity SDK assets into the Mono environment I get errors like :
Assets\unity-sdk-core-0.2.0\unity-sdk-core-0.2.0\Utilities\FrameRateCounter.cs(20,19): error CS0234: The type or namespace name 'UI' does not exist in the
namespace 'UnityEngine' (are you missing an assembly reference?)
When I create a new C# script in the scenes folder, the assembly reference for UnityEngine.UI can be found.
When I open the FrameRateCounter.cs file in Visual Studio, I don't get this message.
I am running version 2019.3.0a3 Personal of Unity

iOS Run errors s Xamarin Live Player and Hanselman.Forms

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).

Getting namespace does not exist error for all the references added in my project

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?

Categories