Strange issue since entityframework update - entity-framework

I am working on a Linux .Net application. This is a classical Xamarin .Net console application.
This application is working with a mysql database and entityframework.
This application was working fine.
This morning, i wanted to update dependency packages.
I updated the .Net framework version too.
Here are the version i am working with:
.Net framework 4.6.2
Entityframework 6.2.0
Google.Protobuf 3.5.1 (this package has appeared)
Mysql.Data 8.0.11
Mysql.data.Entity 6.10.7
Now, when my program tries to work with the database, i have this string error:
System.Data.Entity.Core.ProviderIncompatibleException: The provider
did not return a ProviderManifestToken string. --->
System.MethodAccessException: Method
MySql.Data.MySqlClient.MySqlProviderServices:GetDbProviderManifestToken
(System.Data.Common.DbConnection)' is inaccessible from method
MySql.Data.MySqlClient.MySqlConnection:get_Settings ()'
I don't know what to do.
Here is the mono version on Linux server:
# mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 21 12:08:40 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

Related

Cannot Add a Migration using EF Core 6

I have installed Visual Code 2022 preview (17.1). I have created a simple console app following https://learn.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=netcore-cli
When I try to add a migration I get the following error
> dotnet ef migrations add One
Build started...
Build succeeded.
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.0' (x64) was not found.
- The following frameworks were found:
5.0.8 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
6.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=win10-x64
Why would it want dot net 2.0?
Add the package Microsoft.EntityFrameworkCore.Design to your main project. if that doesn't work, add to your Data Access layer (project).

EdmGen not supporting .Net Framework version 4.7.2

EdmGen.exe is not supporting targetversion 4.7.2.
Exception thrown as "error 7025: Only .NET Framework version 4 and 4.5 are supported. To use another version use the tools that shipped with that version."
To the best of my knowledge there is latest version of EdmGen.exe. Is there any way that I can generate edmx with target .net framework version 4.7.2 ...?

I'm having issues using postsharp 5.0.31 and .net core 1.1 on macOS Sierra, I'm getting a build error

I'm trying to build a .netcore 1.1 console project using postsharp 5.0.31 on macOS Sierra, but when I run the command line:
dotnet build
The build fail and show the next output;
MacBook-Pro:PostsharpSample userx$ dotnet build
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
PostsharpSample -> /Users/userx/Documents/VSCode/netcore/PostsharpSample/bin/Debug/netcoreapp1.1/PostsharpSample.dll/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5): error MSB4062:
The "PostSharp.MSBuild.PostSharp30ChangeAppConfig" task could not be loaded from the assembly /Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.MSBuild.v5.0.31.Release.dll.
Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5):
error MSB4062: Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]
It is possible to use .netcore and Postsharp on macOS Sierra?
I need specific configuration?
As of version 5.0, PostSharp does not support building under any OS other the Windows. .NET Core is supported only as a target framework for your projects.
Please refer to http://doc.postsharp.net/requirements for latest information on compatibility.
You can also vote for adding support for .NET Core as a build platform on this UserVoice page: Support for CoreCLR as a build platform (including Linux, iOS).

Build Windows IoT Core application based on .netcore.app 1.1.2

I'm testing the possibilities of a raspberry pi2 and .NET Core 1.1.
If I create an application with .NET Core 1.1 and try to build it to RID "Win10-arm", I receive following error:
Unable to resolve 'runtime.win8-arm.Microsoft.NETCore.Jit (>= 1.1.2)'
for '.NETCoreApp,Version=v1.1 (win10-arm)'.
Is this something that is not supported yet?
I think this issue is similar to https://github.com/dotnet/coreclr/issues/9694 but I couldn't find any reference which stated that.
Thank you for your answer!
can you try this?
I created an .NET Core Console App and published successfully with win10-arm
Get this Nuget Package:
Install-Package runtime.win8-arm.Microsoft.NETCore.Jit -Version 2.0.0-preview1-25301-02 -Pre
then you can build and publish.
:\Users\x\Documents\Visual Studio 2017\Projects\TestArm\TestArm>dotnet publish -c Release -r win10-arm
Microsoft (R) Build Engine version 15.3.117.23532
Copyright (C) Microsoft Corporation. All rights reserved.
TestArm -> C:\Users\x\Documents\Visual Studio 2017\Projects\TestArm\TestArm\bin\Release\netcoreapp1.1\win10-arm\TestArm.dll
TestArm -> C:\Users\x\Documents\Visual Studio 2017\Projects\TestArm\TestArm\bin\Release\netcoreapp1.1\win10-arm\publish\

Entity Framework Version Number

wanted to check my EF version number - Properties says 6.0.0.0, so I used the PM console to Install-Package EntityFramework & it (the PM Console) reports EntityFramework 6.1.2 already installed.
I'm using .Net framework 4.5 so I'm expecting no problems. Does EF in fact report the most current version under properties, or does it always say 6.0.0.0? Any advice?
Look at the file properties of EntityFramework.dll in Windows Explorer, and you will see a product version of 6.1.2 - the 6.0.0.0 version is the assembly version