How resolve unity 2019.1.0f2 error with 2D SpriteShape? - c#

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

Related

EventFlow registration in .net core 3.1 API

I have package references to EventFlow and EventFlow.AspNetCore. But can't register service:
services.AddEventFlow(ef =>
{
ef.AddDefaults(typeof(Startup).Assembly);
ef.AddAspNetCoreMetadataProviders();
});
Receiving an error:
CS1061 'IServiceCollection' does not contain a definition for 'AddEventFlow' and no accessible extension method 'AddEventFlow' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)
Usings as follows:
using EventFlow.AspNetCore.Extensions;
using EventFlow.AspNetCore.Configuration;
using EventFlow;
using EventFlow.Extensions;
I had same problem. You need to add EventFlow.DependencyInjection package to your project. AddEventFlow method is defined there.

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

How can I switch between databases in startup

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!

CS1061 'object' does not contain a definition for 'Text' and no extension method

Hi im getting the Error CS1061 'object' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
No matter what i do i cannot seem to get rid of this error. Im trying to make the csv file importable to my SQL DB.

Categories