最近我的工作是將原來的 VS.Net 2003 Project 升級上 VS.Net 2005,很多問題都解決了,Application Compile 到又 Run 到,但發現所有的 Form 和 UserControl 都不能正常開啟 Design View。

我遇到的問題是:[RefA] VS2005 Designer Issue - WinForms not opening after migrating 提到的,已依照裡面的解決方法做,將有關的 resouce (.resx) 都 Check 過,並成功 Generate 到 YourResourceFileName.Designer.cs,但問題依然存在。

再睇過:

都不能解決我的問題,直到找到這個 Post:
  • [RefE] Designer Fails to Show From after VS 2003 Port - Problem Fixed!!!!!
    “It turns out that one of the project wide language resx files (we have four) had a slightly different format than the other project wide language resx files."

    我想會不會因為一個 Project Wide 的 resx file 有錯誤,而影響到 Project 內其他無關的 UserControl?
我嘗試 Exclude 一個和 Control 無關的 resx file,最後竟然係 Work!並發現那個 resx file 出現了 [RefA] 裡的格式問題,我將之修正再 Rebuild 一次 Project,Control 的 Design View 終能成功開啟。

P.S. 及後再出現了 [RefC] [RefD] 提到的 Error,參考內文已有解決方法。

2 Comments:

  1. mobilebilly said...
    Congraduation
    Matthew Lai said...
    謝謝 ^^

Post a Comment



較新的文章 較舊的文章 首頁

Blogger Template by Blogcrowds.