.NET 4 新建 webform 项目编译不通过

.NET 4 新建 webform 项目编译不通过,可能需要做如下改动。

一、根据编译错误,删除 packages.config 中相关包

二、安装包
install-package Microsoft.AspNet.Membership.OpenAuth -Version 2.0.1

install-package Microsoft.AspNet.FriendlyUrls -Version 1.0.0
install-package Microsoft.AspNet.FriendlyUrls.Core.zh-Hans -Version 1.0.0
    <package id="Microsoft.AspNet.FriendlyUrls" version="1.0.0" targetFramework="net40" />
    <package id="Microsoft.AspNet.FriendlyUrls.Core" version="1.0.0" targetFramework="net40" />
    <package id="Microsoft.AspNet.FriendlyUrls.Core.zh-Hans" version="1.0.0" targetFramework="net40" />

install-package EntityFramework -Version 6.1.1
install-package EntityFramework.zh-Hans -Version 6.1.1
    <package id="EntityFramework" version="6.1.1" targetFramework="net40" />
    <package id="EntityFramework.zh-Hans" version="6.1.1" targetFramework="net40" />


install-package AspNet.ScriptManager.jQuery -Version 1.8.2
install-package AspNet.ScriptManager.jQuery.UI.Combined -Version 1.8.24
    <package id="AspNet.ScriptManager.jQuery" version="1.8.2" targetFramework="net40" />
    <package id="AspNet.ScriptManager.jQuery.UI.Combined" version="1.8.24" targetFramework="net40" />

install-package DotNetOpenAuth.AspNet -Version 4.1.4.12333
    <package id="DotNetOpenAuth.AspNet" version="4.1.4.12333" targetFramework="net40" />
    <package id="DotNetOpenAuth.Core" version="4.1.4.12333" targetFramework="net40" />
    <package id="DotNetOpenAuth.OAuth.Consumer" version="4.1.4.12333" targetFramework="net40" />
    <package id="DotNetOpenAuth.OAuth.Core" version="4.1.4.12333" targetFramework="net40" />
    <package id="DotNetOpenAuth.OpenId.Core" version="4.1.4.12333" targetFramework="net40" />
    <package id="DotNetOpenAuth.OpenId.RelyingParty" version="4.1.4.12333" targetFramework="net40" />

install-package Microsoft.AspNet.Providers -Version 2.0.0
install-package Microsoft.AspNet.Providers.Core.zh-Hans -Version 2.0.0
install-package Microsoft.AspNet.Providers.LocalDB -Version 2.0.1
    <package id="Microsoft.AspNet.Providers" version="2.0.0" targetFramework="net40" />
    <package id="Microsoft.AspNet.Providers.Core" version="2.0.0" targetFramework="net40" />
    <package id="Microsoft.AspNet.Providers.Core.zh-Hans" version="2.0.0" targetFramework="net40" />
    <package id="Microsoft.AspNet.Providers.LocalDB" version="2.0.1" targetFramework="net40" />

你可能感兴趣的:(.NET 4 新建 webform 项目编译不通过)