Dot-Net
無法在 Visual Studio 項目屬性中選擇 .NET Framework 4.6.1
我使用以下網址安裝了 .NET Framework 4.6.1:http: //www.microsoft.com/en-us/download/details.aspx?id=49981
但是當我打開 Visual Studio (2015) 項目時,我無法選擇版本 4.6.1
見圖片:
為什麼我不能選擇我安裝的 4.6.1?
轉到~~http://getdotnet.azurewebsites.net/target-dotnet-platforms.html~~ https://www.microsoft.com/net/targeting
下載並安裝
.NET Framework 4.6.1 Targeting Pack然後我會推薦使用一個名為的擴展,
Target Framework Migrator你可以從這裡下載它https://visualstudiogallery.msdn.microsoft.com/47bded90-80d8-42af-bc35-4736fdd8cd13 或通過工具->擴展和更新獲取它請注意,如果您使用 Visual Studio 中的下拉菜單將目標框架更改為 4.6.1,您可能會遇到 VS 掛起一分鐘左右的情況,使用 VS
Target Framework Migrator可以避免此問題,您可以一次升級解決方案中的所有項目。4.6.1 也預裝了 Visual Studio 2015 Update 2
更新:確保在 .NET Framework 安裝後安裝 Developer Pack,如下圖所示。


