日期:2014-05-20  浏览次数:20714 次

VS2010的项目无法在2012中正常编译?
本帖最后由 qq542369628 于 2013-01-29 15:16:56 编辑
使用WPF开发的项目,其中使用了ResourceDicitionary,代码如下:

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/SharedResource;component/Color/HealthcareNGColor.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

今天公司想让项目移植到VS2012中继续开发,我试了一下发现报错:
Exception: An error occurred while finding the resource dictionary "pack://application:,,,/SharedResource;component/Color/HealthcareNGColor.xaml".

我在谷歌上搜了一下,发现也有人遇到这种问题,
Designer doesn't support sharing of Resource Dictionaries via network share, please use a source control (ex: Team Foundation Server) to handle sharing of files across multiple machines. 
这句是微软Connect网站上找到的回复,不过看不太懂,有人知道怎么回事解决不?

------解决方案--------------------
让你和代码管理器连接起来。你的代码之前是不是用VSS 或者TFS管理了?

Team Foundation Server 就是VS2012 工具-设置里面 代码管理里面设置一下
------解决方案--------------------
没错,你把HealthcareNGColor.xaml这个文件找到,然后替换掉吧。