什么会导致Visual Studio / C#错误MSB3105:重复资源 [英] What could cause Visual Studio / C# error MSB3105: Duplicate resources

查看:426
本文介绍了什么会导致Visual Studio / C#错误MSB3105:重复资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然现有项目工作,我突然接到试图编译解决方案时出现以下错误:

While working on an existing project I suddenly got the following error when trying to compile the solution:

错误MSB3105:该项目[文件名]指定不止一次在资源参数。重复的项目不是由资源参数的支持。

现在,据我所知,我没有做任何更改项目影响的资源。我还检查了每个与项目中的每一个文件,但没有重复参照该文件的任何地方。
现在我已经找到关于此错误的一些论坛的条目:

Now, as far as I'm aware, I did not make any change to the project that affects the resources. Also I have checked each and every file within the project, but there is no duplicate reference anywhere to this file. Now I already found some forum entries regarding this error:

1)打开的.csproj文件,并删除重复的参考。 [试过,但它,我无法找到任何重复]

1) Open the .csproj file and remove the duplicate reference. [Tried this, but I cannot find any duplicates in it]

2)在部分类项目,将一切的类。 [可试试这个,但自启动该项目已被分成部分类的,我不想改变,只是因为这个错误]

2) In a 'partial class' project, move everything to a single class. [ Could try this, but the project has been split up into partial classes since the start, and I do not want to change this just because of the error ]

那么什么否则可能会导致此?

So what else could cause this ?

推荐答案

你尝试显示在Solution Explorer中的所有文件?你可以有一个重复的.rsx在那里的地方文件。

Did you try showing all files in the Solution Explorer? You could have a duplicate .rsx file somewhere in there.

这篇关于什么会导致Visual Studio / C#错误MSB3105:重复资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆