2017-06-01 69 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

我還沒有使用,相較於蘋果,但它看起來像項目正在使用Microsoft .NET 4.5,並不能找到它。

如果它適用於mac,則可以下載並安裝該軟件包。

是否有你的目標.net和不使用xamarin的原因? Chetan說,改變你的目標框架。

(我會離開這個作爲一個評論,但我沒有REP)

+0

謝謝,它的工作 –

+0

真棒,你是否檢查了正確的答案,以便其他人搜索這個知道它回答。 – Slipoch