-2

I would like to learn how to do a very simple application with Xamarin.Android. I am using VS2019 community.

To create the new project, I choose the template empty application (Android). IN the solution explorer I can see my main.xaml y a file that it is MainActivity.fs.

My doubt is in this case. I have watch a tutorial in which the person is using VS2017 community, He selects Blank App (Android). But in his cases he has a MainActivity.cs file instead of MainActivity.fs file. And in the code he has use a class instead.

So my doubt is which is the difference between .fs and .cs files and which are the advantages and disadvantages of each type.

Thanks.

Álvaro García
  • 18,114
  • 30
  • 102
  • 193

1 Answers1

1

.cs means it's a C# file.

.fs is an F# file.

You can find more info about these two languages in this SO question.

Diogo Rocha
  • 9,759
  • 4
  • 48
  • 52