Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Error on The namespace '<global namespace="">' already contains a definition for 'WindowsApplication'
Posted

1 solution

If this is a designer generated code, there will be multiple files with partial classes, if that is the case then

there are two things you might try:
1.If it's an auto-generated file (as 'Resources.Designer.cs' tend to be), try deleting it and regenerating it through VS.

2.Either separately or along with the aforementioned point, select Show All Files in the Solution Explorer or open the solution folder in Windows Explorer - it could be that a version of the file somehow got excluded from the project and is therefor 'invisible' to VS. This can cause some confusion and it might solve your problem
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900