C
C#17mo ago
nein

❔ class not showing up

there's no option to add class from vistual studio where u normally add class. what should i do
15 Replies
ero
ero17mo ago
let me look at my crystal ball 🔮 nope, no idea maybe you can give more context
nein
nein17mo ago
nein
nein17mo ago
i'm trying to add class in a Model folder but there's no option to add class
ero
ero17mo ago
i mean i don't know anything about f# but just add a source file and write the class in it...?
Denis
Denis17mo ago
F# is a functional programming language. Yes, you can define classes, but it is not the focus on the language. Thus, there is no template in the Add new Item window for a class Instead you create a new F# file and write what you want inside it
Denis
Denis17mo ago
O’Reilly Online Learning
Programming F#
Denis
Denis17mo ago
Microsoft
Learn F# | Free tutorials, courses, videos, and more | .NET
Free courses, tutorials, videos, and more to learn to program in F#. Resources from the .NET team, .NET community, and training companies.
nein
nein17mo ago
i just started c# and i was making mvc project in it by watching tutorial idk how f# is in it
Denis
Denis17mo ago
You probably created an F# project by accident Remove it, and create a C# project
nein
nein17mo ago
okay thanks
Pobiega
Pobiega17mo ago
$close
MODiX
MODiX17mo ago
Use the /close command to mark a forum thread as answered
Pobiega
Pobiega17mo ago
since this seems to be answered, it would be great if you could close it
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.