当我执行 File->New WebSite 并选择 C# ASP.NET 项目时 - 它使用 About.aspx、Default.aspx 等创建了一个基本项目。这构建得很好。但是,当我得到网站-> 启动选项并选择目标框架为 .NET 2.0 时,项目不再编译。
这些是我得到的错误
WebSite2\Account\Register.aspx(8): Build (page): Type 'System.Web.UI.WebControls.CreateUserWizard' does not have a public property named 'LayoutTemplate'.
WebSite2\Account\Register.aspx(9): Build (page): Type 'System.Web.UI.WebControls.CreateUserWizard' does not have a public property named 'PlaceHolder'.
WebSite2\Account\Register.aspx(10): Build (page): Type 'System.Web.UI.WebControls.CreateUserWizard' does not have a public property named 'PlaceHolder'.
WebSite2\Account\Register.aspx(9): Build (page): Content ('</asp:PlaceHolder> </asp:PlaceHolder> </LayoutTemplate>') does not match any properties within a 'System.Web.UI.WebControls.CreateUserWizard', make sure it is well-formed.
WebSite2\Site.master.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
有没有办法创建一个适用于 .NET 2.0 的默认非空项目?