Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# ASP.NET MVC Basics Project Setup Creating a Project Using Visual Studio

Adam Futrell
Adam Futrell
11,976 Points

Large amount of files for Initial commit?

There seems to be alot of files for my initial commit of this project. The only things that I noticed that was different about my project was that I am on .NET version 4.7 and I checked the "Include unit tests" checkbox when creating the Solution. Your video contains 11 changes on the first commit, whereas mine contains 272 changes! Most of them appear to be package files (Razor, Webpages, MVC, etc). Is that normal?

2 Answers

Ryan Doubleday
Ryan Doubleday
1,840 Points

Normal if you are not using a C#/.NET based .gitignore file.

Here is a great resource for Gitignore files (specifically one for Visual Studio based projects) https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

Adam Futrell
Adam Futrell
11,976 Points

I think I had accidentally chosen the "core" project instead of the .net framework MVC project. I deleted the project and started over with the correct project type and that seems to have worked. There were only 15 files to commit this time.

I was having trouble with this too :) In Visual Studio, go to your Team Explorer view,
Go to your repo > go to settings > Repository Settings> and if you do not have a .gitignore already, you can create one and it will ignore all unnecessary files

Happy learning friends🐾