標籤:style blog http color io 檔案 for 2014
此時在3.5架構工程中會出現
【未能負載檔案或程式集“System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一個依賴項。系統找不到指定的檔案。 行 123,位置 5。】
的錯誤,解決辦法是將4.0.0.0改成2.0.0.0。如下面的代碼。
另外,在namespace進行了修改後需要將“原命名空間.properties.resource ”改成“現在的命名空間.properties.resource”
全部好了後還會出現一個警告,請不要嘗試解決此警告,會出錯。
【警告 1 自訂工具“ResXFileCodeGenerator”與檔案“Properties\Resources.resx”關聯,但在項目中沒有找到自訂工具的輸出。您可在“方案總管”中右擊該檔案並選擇“運行自訂工具”,嘗試重新運行自訂工具。 】
<resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <data name="EHB" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\EHB.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="FHA" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\FHA.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="THB" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\THB.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="HHA" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\HHA.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="CHA1" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\CHA1.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="SDH" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\SDH.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="EHA" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\EHA.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="THA" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\THA.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="CHA2" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\CHA2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="CHA0" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\CHA0.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data>