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.
Related
Can someone help me resolve this error? I downloaded the Hangfire v1.7.18 from GitHub and I get the following error when I add/edit a key/value in the Strings.resx file.
The error is thrown on line 42 and specifically on this part - typeof(Strings).Assembly
and it looks like it is happening for .netstandard 1.3. Here is the complete error:
Error|CS1061| ‘Type’ does not contain a definition for ‘Assembly’ and no accessible extension method ‘Assembly’ accepting a first argument of type ‘Type’ could be found (are you missing a using directive or an assembly reference?) in Project Hangfire.Core (netstandard1.3) The file is src\Hangfire.Core\Dashboard\Content\resx\Strings.Designer.cs at Line 42
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?)
I have an MVP c# application where I have an SQLLite database for development purposes and a SQLServer database for deployment purposes. Whenever I try to build it with the SQL server database, it shows: "Build failed."
I am a student Informatica and our teacher says that we could solve our problem by using a simple "if else" to switch between development and deployment but we have no idea how.
We have already used dependency injection and migrations.
Here are 2 images with the error:
1)
2)
3) This is the error:
Startup.cs(41,71): error CS1061: 'DbContextOptionsBuilder' does not contain a definition for 'UseMySQL' and no accessible extension method 'UseMySQL' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?) [/cityofideas_dotnet/cityofideas/cityofideas.csproj]
Startup.cs(42,76): error CS1061: 'DbContextOptionsBuilder' does not contain a definition for 'UseMySQL' and no accessible extension method 'UseMySQL' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?) [/cityofideas_dotnet/cityofideas/cityofideas.csproj] Build FAILED.
4) Finally
Microsoft.EntityFrameworkCore.Tools.CommandException: Build failed.
at Microsoft.EntityFrameworkCore.Tools.Project.Build()
at Microsoft.EntityFrameworkCore.Tools.RootCommand.Execute()
at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
Build failed.
Please help us!
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 ?
I have unity 2019.1.0f2 version, and I have used 2d spriteshape(Version 2.0.0) in my project.I get the following error.
Assets/2D SpriteShape/Extras/Scripts/SimpleDraw.cs(39,20): error CS1061: 'Spline' does not contain a definition for 'SetBevelSize' and no accessible extension method 'SetBevelSize' accepting a first argument of type 'Spline' could be found (are you missing a using directive or an assembly reference?)