2017-05-18 18 views
2

最近リリースされたVisual Studio for Macを使用しています。私は単純なMVC Webアプリケーションを作成することができますが、Entity Frameworkの追加に問題があります。.Net Core(Visual Studio Mac)Entityフレームワークを追加できません。

私はManage Nugetパッケージを使用し、EntityFrameworkを選択します。それはパッケージステートメントを取得する束の中を走り、ついに私が正しくインストールしたと思ったOpenSSLへの参照で失敗します。

私は確かにここには何かが欠けていると確信していますが、私はそれが何であるか把握するのに苦労しています。

私が欲しいのは、私は1.6バージョン(プロジェクトを右クリックし、後藤に.NETのコアターゲットを更新し、この問題を解決し、私はAzureのDB

Retrieving package 'System.Threading 4.3.0' from 'nuget.org'. 
Retrieving package 'System.Threading.Tasks 4.3.0' from 'nuget.org'. 
Retrieving package 'System.Threading.Tasks.Extensions 4.3.0' from 'nuget.org'. 
Retrieving package 'System.Threading.Timer 4.3.0' from 'nuget.org'. 
Retrieving package 'System.Xml.ReaderWriter 4.3.0' from 'nuget.org'. 
Retrieving package 'System.Xml.XDocument 4.3.0' from 'nuget.org'. 
Adding package 'Microsoft.NETCore.Platforms.1.1.0' to folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Added package 'Microsoft.NETCore.Platforms.1.1.0' to folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Added package 'Microsoft.NETCore.Platforms.1.1.0' to 'packages.config' 
    OK https://api.nuget.org/packages/microsoft.entityframeworkcore.tools.1.1.0-preview4-final.nupkg 1146ms 
Installing Microsoft.EntityFrameworkCore.Tools 1.1.0-preview4-final. 
Successfully installed 'Microsoft.NETCore.Platforms 1.1.0' to LighthouseFSQ 
Adding package 'Microsoft.NETCore.Targets.1.1.0' to folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Added package 'Microsoft.NETCore.Targets.1.1.0' to folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Added package 'Microsoft.NETCore.Targets.1.1.0' to 'packages.config' 
Successfully installed 'Microsoft.NETCore.Targets 1.1.0' to LighthouseFSQ 
Install failed. Rolling back... 
Package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0' does not exist in project 'LighthouseFSQ'* 
Removed package 'Microsoft.NETCore.Targets.1.1.0' from 'packages.config' 
Removed package 'Microsoft.NETCore.Platforms.1.1.0' from 'packages.config' 
Package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0' does not exist in folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Removing package 'Microsoft.NETCore.Targets.1.1.0' from folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Removed package 'Microsoft.NETCore.Targets.1.1.0' from folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Removing package 'Microsoft.NETCore.Platforms.1.1.0' from folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Removed package 'Microsoft.NETCore.Platforms.1.1.0' from folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Executing nuget actions took 4.14 sec 
One or more errors occurred. 
    Could not install package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0'. You are trying to install this package into a project that targets '.NETCoreApp,Version=v1.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 
PM> Install-Package runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 


Attempting to gather dependency information for package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.1' with respect to project 'LighthouseFSQ', targeting '.NETCoreApp,Version=v1.1' 
Gathering dependency information took 1.63 ms 
Attempting to resolve dependencies for package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.1' with DependencyBehavior 'Lowest' 
Resolving dependency information took 0 ms 
Resolving actions to install package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.1' 
Resolved actions to install package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.1' 
Retrieving package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1' from 'nuget.org'. 
    GET https://api.nuget.org/packages/runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl.4.3.1.nupkg 
    OK https://api.nuget.org/packages/runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl.4.3.1.nupkg 122ms 
Installing runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1. 
Install failed. Rolling back... 
Package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.1' does not exist in project 'LighthouseFSQ' 
Package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.1' does not exist in folder '/Users/jragsdale/Projects/LighthouseFSQ/packages' 
Executing nuget actions took 510.64 ms 
One or more errors occurred. 
    Could not install package 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1'. You are trying to install this package into a project that targets '.NETCoreApp,Version=v1.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 
+0

https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools/明らかにそれが1.1.1の公式リリースを持っているのに役立ちます願っています。なぜあなたはプレビューをインストールしようとしますか? –

答えて

0

にEFを使用して接続することができ、簡単なMVCのWebアプリですOptions-> Build-> General-> TargetFramework)を実行した後、runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl Nugetパッケージをインストールします。

私は

関連する問題