2013-10-01 91 views
1

我是VS2012的新手。當我按下F5 執行項目,我得到一個錯誤:調試項目時未找到.NET Framework

Warning 1 The reference assemblies for framework ".NETCore,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.

我已經安裝了.NET Framework 4.5,我也拿起修復,但我仍然面臨着這樣的錯誤。我該如何解決這個問題?

+0

你是否已經瞄準了.NET 4.5的項目?單擊項目文件,然後按Alt + Enter,然後檢查它在應用程序選項卡中的含義。 –

+0

我猜你實際上是在使用Express版本,而你的版本有誤。 –

回答

0

右鍵單擊您的項目。選擇「屬性」並將「目標」框架更改爲4.5。 enter image description here

相關問題