當我嘗試單擊設計選項卡上,以獲得設計圖,我得到這個錯誤:無法看到在Visual Studio中的設計視圖2008年C#Windows窗體由於奇怪的錯誤
To prevent possible data loss before loading the designer, the following errors must be resolved:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form1 --- The base class 'System.Windows.Forms.Form' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
我我喜歡進入設計師,不知道什麼是錯的。我的Form1代碼看起來像這樣在頂部:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Diagnostics;
namespace foobar
{
public partial class Form1 : Form
{
List<CharLabel> allChars = new List<CharLabel>();
public Form1()
{
... etc ...
任何想法?
我沒有(和錯誤沒有提及「.dll」部分,所以我不知道看看)。我將如何提供這種參考? 關於這一點的事情是,它只是突然開始給出錯誤,然後重新啓動可能會修復它一點,等等。 感謝您的幫助。 – cksubs 2009-07-25 01:29:47
@cksubs,我只是添加了一些步驟,以將其添加到您的項目中。 – JaredPar 2009-07-25 01:35:38