2012-02-09 98 views
0

我已经搞砸了我的视觉stuio 2010安装。 (我安装和卸载在Visual Studio 11开发者预览版)如何配置在Visual Studio 2010中构建Resources.Designer.cs的运行时版本

如果我现在建立一个简单的表格项目中的表单具有“本地化= true”时,我得到了以下错误:

Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

的原因是Runtime版本创建了Properties \ Resources.Designer.cs。 在我的情况下,它是运行时版本:4.0.30319.17020而不是运行时版本:4.0.30319.239。

哪里可以配置用于在Visual Studio中创建这些Designer文件的版本?

+0

找到了解决办法在此之后就消失了。我会立即发布它,只要stackoverflow允许我。 – Manuel 2012-02-09 11:27:12

回答

0

我发现这个问题的解决方案: 我卸载了以下工具

  • 的Microsoft .NET Framework 4.5客户端配置文件开发者预览版
  • 的Microsoft .NET Framework 4.5开发者预览多目标包
  • Microsoft .NET Framework 4.5 Extended Developer Preview

然后我重新安装了Visual Studio 2010.

在此之后,我没有得到任何有关资源版本的错误。

btw:当使用msbuild 4.0为目标版本3.5构建解决方案时,这也解决了一个问题。 错误消息我得到:

C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Data.Entity.target(50,5): error MSB4044: The "EntityClean" task was not given a value for the required parameter "ResourceOutputPath" 

和卸下4.5的东西,并重新安装VS2010

相关问题