c# - Error CS0436 : a resource has conflict with itself if the resource and caller is in a same folder -
i have class named "basehelper" in "app_code" folder. class contains few static methods use in projects give me functionalities have write multiple lines of code use functionality.
now problem have few other helper methods in folder. there no problem using class' helper methods in whole project when want use methods in other helper methods in "app_code" folder warning this:
warning cs0436 type 'basehelper' in 'c:\users[username]\documents\visual studio 2015...\app_code\basehelper.cs' conflicts imported type 'basehelper' in '[project name], version=1.0.0.0, culture=neutral, publickeytoken=null'. using type defined in 'c:\users[username]\documents\visual studio 2015...\app_code\basehelper.cs'. c:\users[username]\documents\visual studio 2015\projects...\app_code\sitemanager.cs
and once more should emphasize problem present when want use helper methods in same folder not when want use different folders. problem not in "basehelper" every time want use helper method in same folder.
because want use classes throughout project used project's name name space , i've tried use no namespace @ didn't change anything.
thanks in advance , sorry bad english.
i somehow found out problem lies in folder app_code , code files put in there.
i don't know exact problem , i'd happy if knowledge please enlighten me.
i solved problem moving files folder , removing app_code folder altogether
Comments
Post a Comment