Mat*_*and 3 .net wpf networking visual-studio-2010
移动到新的企业发行的Windows 7机器(来自老旧的XP机器)后,我在Visual Studio 2010中遇到了一个问题.
我将我的项目复制到新机器,但Visual Studio似乎在加载WPF设计器时遇到问题.我有一个包含几个项目的解决方案,它构建良好并且运行良好,但是当我尝试在设计器中打开一个WPF窗口时,我收到了大量的错误消息:
"unable to load the metadata for assembly 'Foo'. This assembly may have been
downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545.
The following error was encountered during load: Could not load file or assembly
'Foo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified."
Run Code Online (Sandbox Code Playgroud)
(注意错误消息中的链接似乎没有任何用处)
我认为这里的问题是我的公司IT人员已经设置了Windows 7计算机,因此"我的文档"实际上是一个本地缓存的网络驱动器.这不是一件坏事,因为现在我在公司网络上备份所有文件,但我认为这会让Visual Studio感到不安.
有没有解决方案,不涉及放弃同步网络驱动器(我喜欢)并将所有内容复制到本地硬盘驱动器(将备份放回我身上).
小智 9
在stackoverflow上找到的解决方案:
这似乎适用于某些人
"打开devenv.exe.config(在我的机器上的C:\ Program Files\Microsoft Visual Studio 10.0\Common7\IDE中),并添加"
Run Code Online (Sandbox Code Playgroud)<runtime> <loadFromRemoteSources enabled="true" /> </runtime>
为我工作.在企业环境中工作的问题相同,而不是在我自己的机器上.
归档时间: |
|
查看次数: |
5376 次 |
最近记录: |