Recommended .gitignore file for Visual Studio Xamarin project

11,017

Solution 1

You can check gitignore.io for recommended gitignore files. Here is the one it generated for Visual Studio and Xamarin.

Solution 2

I will use this. It will ignore unnecessary files such as Android Resource.designer.cs and was created by Xamarin.

https://github.com/xamarin/xamarin-forms-samples/blob/master/.gitignore

Share:
11,017
jasonlam604
Author by

jasonlam604

More about me at https://github.com/jasonlam604

Updated on June 04, 2022

Comments

  • jasonlam604
    jasonlam604 about 2 years

    Looked around I can't seem to find the recommended template .gitignore file for Visual Studio Xamarin project. I looked here as well https://github.com/github/gitignore

    Will the Visual Studio one be ok?

    https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

    Thx in advance.

  • pixel
    pixel almost 6 years
    how did you generate this file? I just tried and it recognizes only VisualStudio but the file you provided link to has both VisualStudio and XamarinStudio? Thanks
  • EarthDragon
    EarthDragon almost 6 years
    I just wrote Visual studio in the box and also wrote Xamarin and then clicked the button, not very complicated
  • pixel
    pixel almost 6 years
    Thanks, got it. Tricky part is to hit enter after each entry; otherwise, wont do it :) Thanks again