2017-06-01 15 views
0

Mac OSでVisual StudioコードからC#コードを実行すると、homebrew、.netcore、Visual Studioコードを使用してopenSSLをインストールしました。次のエラーが発生しています。Mac OS上でVisual StudioコードのC#コードをコンパイルするときにエラーが発生しました

/usr/local/share/dotnet/sdk/1.0.4/Microsoft.Common.CurrentVersion.targets(1111,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/Users/swayans hupanda/Documents/ProgrammingFundamentals/Day1/HelloWorld/HelloWorld.csproj]

誰でも手伝っていただけますか? >アプリケーション - -

答えて

0

は、プロジェクトのプロパティを確認してください>ターゲットフレームワーク

0

私はMac用の対を使用し、まだ持っているが、このプロジェクトは、Microsoft .NET 4.5を使用しようとしているし、それを見つけることができないように見えます。

マックで利用できる場合は、パッケージをダウンロードしてインストールすることができます。

xamarinを使用せずに.netをターゲティングする理由はありますか? Chetanが言ったようにあなたのターゲットフレームワークを変更してください。

(私はコメントとしてこれを残しているだろうが、私は担当者を持っていない)

+0

誰が、これはそれが答えであることを知って検索して、あなたが正しい答えを確認することができればおかげで、それは、恐ろしい –

+0

を働きました。 – Slipoch

関連する問題