0
打開VS 2010後,我創建了一個空的MVC 4 Web應用程序'UmbracoTest'以及一個新的解決方案。視圖引擎剃刀和.Net 4.在包管理器控制檯,我輸入PM>安裝包umbracocms和提示此:未能通過Visual Studio 2010中的Nuget/Package Manager安裝umbraco 7.5.4
PM> install-package umbracocms
Attempting to resolve dependency 'UmbracoCms.Core (= 7.5.4)'.
Attempting to resolve dependency 'Microsoft.AspNet.Mvc (≥ 5.2.3 && < 6.0.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.2.3 && < 3.3.0)'.
...
...
Installing 'Microsoft.AspNet.Razor 3.2.3'.
Successfully installed 'Microsoft.AspNet.Razor 3.2.3'.
...
...
Removing 'Microsoft.AspNet.Razor 2.0.20710.0' from UmbracoTest.
Successfully removed 'Microsoft.AspNet.Razor 2.0.20710.0' from UmbracoTest.
Adding 'Microsoft.AspNet.Razor 3.2.3' to UmbracoTest.
Uninstalling 'Microsoft.AspNet.Razor 3.2.3'.
Successfully uninstalled 'Microsoft.AspNet.Razor 3.2.3'.
Install failed. Rolling back...
Install-Package : Could not install package 'Microsoft.AspNet.Razor 3.2.3'. You are trying to install this package into a project that targets '.NETFramewo
rk,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework.
For more information,
contact the package author.
At line:1 char:16
+ install-package <<<< umbracocms
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>