|
-
May 24th, 2007, 05:00 AM
#1
Project conflicts with itself?
Hello.
I'm writing my first bigger C#-Application, which has worked fine so far. But suddenly (don't know what I did), I get over 130 warnings like:
D:\Src\MyApp\TabCustomers.cs(12,51): warning CS0436: The type 'MyApp.Tabs.TabBase' in 'D:\Src\MyApp\TabBase.cs' conflicts with the imported type 'MyApp.Tabs.TabBase' in 'D:\Debug\MyApp\MyApp.exe'.
The code is:
Code:
namespace MyApp.Tabs
{
public partial class TabCustomers : MyApp.Tabs.TabBase
..
I understand that somehow "TabBase" seem to be defineid twice, but I don't know why, becaus MyApp.exe is the .exe right from THIS project. So how could this project conflict with itself?
If I clean the project, I get no more warnings till I compile the src again...
Last edited by martho; May 24th, 2007 at 05:02 AM.
-
May 24th, 2007, 06:53 AM
#2
Re: Project conflicts with itself?
If you are trying to declare the same type in two different ASSEMBLIES then this can happen. If you can cut this down to a managable repro, please clean and post the project.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
May 24th, 2007, 07:53 AM
#3
Re: Project conflicts with itself?
Thanks for your reply. The strange thing was it was the SAME assemblie... I found that I somehow added a Reference to itself to the project. Now it works.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|