2018-12-10
嚴重性 程式碼 說明 專案 檔案 行 隱藏項目狀態 警告 Microsoft Azure Cloud Service projects only support roles that run on .NET Framework versions 4.0, 4.5 and 4.6. Please set the Target Framework property in the project settings for project 'WebRole1' to .NET Framework 4.0, .NET Framework 4.5 or .NET Framework 4.6. CloudService1 ..\WebRole1\WebRole1.csproj 1 警告 The project 'WebRole1' targets .NET Framework 4.7. To make sure that the role starts, this version of the .NET Framework must be installed on the virtual machine for this role. You can use a startup task to install the required version, if it is not already installed as part of the Microsoft Azure guest OS. For more details, see https://go.microsoft.com/fwlink/?LinkId=309796. CloudService1 WebRole1 1 |
Install .NET on Azure Cloud Services roles
06/22/2018
https://go.microsoft.com/fwlink/?LinkId=309796
在專案名稱上按下滑鼠右鍵,選「屬性」,中央畫面選「應用程式」,把 .NET Framework 改成 4.6.2 版,重新編譯,正常無警告,表示目前 Microsoft Azure 的「雲端服務」支援的 .NET Framework 只到 4.6.2,升到 4.7.0 就會警告。
(完)
沒有留言:
張貼留言