1

So I'm running into this problem with my Visual Studio project.
I'm trying to add a new simple class to my project. I'm pretty sure this is the way to do it.

Trying to add a file.

So whenever I click New Item, this menu pops up:

What I see when I try to add a new class

I can't seem to add anything other than those files. Changing tabs doesn't help. All of them are empty, except for the data tab, which contains The Sql Server Database, XML File and XML Schema. The general tab contains the Text File option.

Any help from you guys is appriciated!

Tvde1
  • 1,246
  • 3
  • 21
  • 41

2 Answers2

1

The problem was that my files were stored in the App_Data folder that had been automatically generated. It apprears to be meant for data storage and not logic.

If you have the same problem, move your files to e.g. a Helpers folder.

Tvde1
  • 1,246
  • 3
  • 21
  • 41
0

You can actually add the file upon clicking Add option, there is a class option here:

enter image description here

Regarding additional templates, you can refer to this link for solution:

no templates in Visual Studio 2017

Willy David Jr
  • 8,604
  • 6
  • 46
  • 57