keepSynced in Unity Firebase SDK - c#

I'm using Firebase Unity SDK - offline mode with FirebaseDatabase.DefaultInstance.SetPersistenceEnabled(true)
`
and I'm trying yo keep a certain reference synced with this code keepSynced(true)
this is the code FirebaseDatabase.DefaultInstance.GetReference("Node").keepSynced(true);
yet Unity shows
'DatabaseReference' does not contain a definition for 'keepSynced' and no accessible extension method 'keepSynced' accepting a first argument of type 'DatabaseReference' could be found (are you missing a using directive or an assembly reference?)
What is the proper way to make it work ?

Related

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

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

TextMesh Pro errors running Unity in Debian 10 GNU/Linux

I started to try Unity GNU/Linux version. I got a project in my job that was written in Unity Editor version 5.6.6f2 for Windows. I could open the project in Unity Editor version 2019.3.8f1 after Unit Hub converting it for this newer version.
I'm getting a series of building errors now. And many of them are related to TextMesh Pro Asset in scripts generated during the building. Like
Library/PackageCache/com.unity.textmeshpro#2.0.1/Scripts/Runtime/TMP_FontAsset.cs(405,34): error CS0029: Cannot implicitly convert type 'UnityEngine.TextCore.FaceInfo' to 'TMPro.FaceInfo'
Library/PackageCache/com.unity.textmeshpro#2.0.1/Scripts/Runtime/TMP_FontAssetUtilities.cs(302,82): error CS1061: 'FaceInfo' does not contain a definition for 'pointSize' and no accessible extension method 'pointSize' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro#2.0.1/Scripts/Runtime/TMP_FontAssetUtilities.cs(344,82): error CS1061: 'FaceInfo' does not contain a definition for 'pointSize' and no accessible extension method 'pointSize' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro#2.0.1/Scripts/Runtime/TMP_FontAsset.cs(612,84): error CS1061: 'FaceInfo' does not contain a definition for 'tabWidth' and no accessible extension method 'tabWidth' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro#2.0.1/Scripts/Runtime/TMP_FontAsset.cs(649,28): error CS1061: 'FaceInfo' does not contain a definition for 'capLine' and no accessible extension method 'capLine' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro#2.0.1/Scripts/Runtime/TMP_FontAsset.cs(652,28): error CS1061: 'FaceInfo' does not contain a definition for 'capLine' and no accessible extension method 'capLine' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
There's a log file, Logs/Packages-Update.log, that I suppose is related to the updates made when converting the project from 5.6.6f2 version to 2019.3.8f1 version. The content of that file is
Packages were changed.
Update Mode: resetToDefaultDependencies
The following packages were added:
com.unity.collab-proxy#1.2.16
com.unity.ide.rider#1.1.4
com.unity.ide.vscode#1.1.4
com.unity.modules.ai#1.0.0
com.unity.modules.androidjni#1.0.0
com.unity.modules.animation#1.0.0
com.unity.modules.assetbundle#1.0.0
com.unity.modules.audio#1.0.0
com.unity.modules.cloth#1.0.0
com.unity.modules.director#1.0.0
com.unity.modules.imageconversion#1.0.0
com.unity.modules.imgui#1.0.0
com.unity.modules.jsonserialize#1.0.0
com.unity.modules.particlesystem#1.0.0
com.unity.modules.physics#1.0.0
com.unity.modules.physics2d#1.0.0
com.unity.modules.screencapture#1.0.0
com.unity.modules.terrain#1.0.0
com.unity.modules.terrainphysics#1.0.0
com.unity.modules.tilemap#1.0.0
com.unity.modules.ui#1.0.0
com.unity.modules.uielements#1.0.0
com.unity.modules.umbra#1.0.0
com.unity.modules.unityanalytics#1.0.0
com.unity.modules.unitywebrequest#1.0.0
com.unity.modules.unitywebrequestassetbundle#1.0.0
com.unity.modules.unitywebrequestaudio#1.0.0
com.unity.modules.unitywebrequesttexture#1.0.0
com.unity.modules.unitywebrequestwww#1.0.0
com.unity.modules.vehicles#1.0.0
com.unity.modules.video#1.0.0
com.unity.modules.vr#1.0.0
com.unity.modules.wind#1.0.0
com.unity.modules.xr#1.0.0
com.unity.test-framework#1.1.13
com.unity.textmeshpro#2.0.1
com.unity.timeline#1.2.14
com.unity.ugui#1.0.0
See the com.unity.textmeshpro#2.0.1 line in that.
I'm totally new to Unity and I don't use Windows. So I'm wondering if that have something related to C# scripting (like libraries that I have to install in Debian to properly compile a project), or if the errors are specific to TextMesh Pro asset etc.
If anyone have had this type of error or can give me tips to make Unity works in a Debian GNU/Linux environment...
Delete the old version of TextMesh Pro in the Asset folder
Reopen Project
Window -> TextMeshPro -> Import TMP essentials
Window -> TextMeshPro -> Project Files GUID Remapping Tool.
Scan & Save.
This will update the project and fix all missing TMP scripts.

VLC Media player in WPF

When I'm trying to integrate Meta.Vlc.Wpf media player from Nuget Package, I'm getting the following error
How to solve this.
I have also tried this using nuget package
while using that
I'm facing issue as
VlcControl does not contain a definition for 'MediaPlayer and no
accessible extension method 'MediaPlayer' accepting a first argument
of type -VIcContror could be found (are you missing a using directive
or an assembly reference?)

Asp.Net c# Window Application

I'm creating an Windows Application for the database backup and I've already added the references in my projects.
But I got the error:
'System.Data.SqlClient.SqlError' does not contain a definition for
'Message' and no extension method 'Message' accepting a first argument
of type 'System.Data.SqlClient.SqlError' could be found (are you
missing a using directive or an assembly reference?)
I've already attached the screen shot of the error. Please help me with this issue. Thanks.
As stated in two of the errors, you are missing an assembly reference to System.Data. Add this at the top of your code file (outside of any class or method) as using System.Data; and that should resolve the problem.
Or, right click on the underlined code and use the context menu to automatically add the missing reference.

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

Categories