I have normal website project. In the past I had the structure of App_Code like this:
- App_Code
- ClassA.cs
- ClassB.cs
All was fine. Till once (because of so many classes in App_Code) I have created the subfolders structure like:
- App_Code
- SubFolderA
- ClassA1.cs
- ClassA2.cs
- SubFolderB
- ClassB1.cs
- ClassB2.cs
- SubFolderA
When I did this, my aspx pages stopped to "see" the classes. Exactly in code-behind where the ClassA1 was used, VS sais that the class does not exist.
Sure, I tried to move the classes back directly to the App_Code, but working no more.
My Classes are in no namespace (humble website project), they are Public. I have found the tip for web.config where I tried to set:
<codeSubDirectories>
<add directoryName="SubFolderA" />
<add directoryName="SubFolderB" />
</codeSubDirectories>
Also not working.
Any tips for help?