How come classes in subfolders in my App_Code folder are not being found correctly?

后端 未结 6 1486
野性不改
野性不改 2020-12-15 00:47

I am getting the following error when I put class files in subfolders of my App_Code folder:

errorCS0246: The type or namespace name \'MyClassName\' could not be fou

6条回答
  •  爱一瞬间的悲伤
    2020-12-15 01:11

    It might not be the correct way but I find it the easiest.

    Create the class in the main Folder as usual, then move it with your mouse to your sub-folder. Re-compile and all should be fine.

提交回复
热议问题