當我做File-> New WebSite &選擇了C#ASP.NET項目 - 它創建了一個Basic.aspx,Default.aspx等基本項目這樣建立起來很好。但是,當我得到Website-> Start Options並選擇了目標Framework作爲.NET 2.0時,該項目不再編譯。Visual Web Developer 2010 Express - 創建一個面向.NET 2.0的ASP.NET網站
這些都是錯誤的,我得到
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工作的默認非空的項目?
對於LINQ,您現在必須手動添加引用。對於v4,它是爲您預先參考的。這應該照顧'site.master'錯誤。 – Abhitalks