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 Controllers Adding a Controller

Eliot Ostling
Eliot Ostling
9,599 Points

ASP. net Team explorer Github offline

Hello all, When I go to git commit & push when I hover over the changes it says I am offline. I rechecked my credentials and its all correct. I made sure my clone was correct but it won't come online. Any ideas?

James Churchill
James Churchill
Treehouse Teacher

Are you using the Visual Studio Git or GitHub integration?

5 Answers

James Churchill
STAFF
James Churchill
Treehouse Teacher

Eliot,

Using the VS GitHub tools, create a new repo. Can you commit a simple change, like a new text file, to that repo? If you can, then try switching back to your original repo by opening its Visual Studio project. Is your repo online now?

Thanks, James

Eliot Ostling
Eliot Ostling
9,599 Points

Hello! I am using the Github Integration. So it shows the repo of comic-book-gallery and right above it when I go to "make changes" and commit and push if I hover over the area it says offline and it doesn't allow me to do anything.

James Churchill
James Churchill
Treehouse Teacher

If you go to Tools -> Options -> Source Control -> Plug-in Selection, is "Git" selected as the current source control plug-in?

Eliot Ostling
Eliot Ostling
9,599 Points

Yes, when I navigate there Git is the current source control plug-in

Eliot Ostling
Eliot Ostling
9,599 Points

James, Thank you so much for your help, that resolved my issue! It seems that when I make my repo in Github it doesn't see it and I'm not able to commit....but using it from the Github tool it works! Thank you again!

Zachary Hale
PLUS
Zachary Hale
Courses Plus Student 10,946 Points

Well, I guess it may be obvious but Visual Studio it required for this but I have a Mac. I hope to get a Virtual Machine to run Windows but that might take a while.

I'm trying to just do everything through the terminal with Visual Studio Code but I can't figure out how to include the System.Web.MVC parts using the project.json file.

Is there any way to do this or am I just stuck?

James Churchill
James Churchill
Treehouse Teacher

Zachary,

Sounds like you're trying to use ASP.NET Core, is that correct? Yes, you can add the MVC dependencies by editing the project.json file, though it might be easier to use the dotnet new -t web command to create a new web application project. Make sure that you're in an empty directory when you run that command!

After running that command, you'll have a complete ASP.NET Core web application. For following along with our ASP.NET MVC Basics course, it's almost TOO much of an application.

You can also generate projects using the yeoman command tool (see http://yeoman.io/learning/). Once you've got yeoman installed, you can then install the yeoman ASP.NET templates (see https://docs.asp.net/en/latest/client-side/yeoman.html). When running the yo aspnet command, you'll see an option for "Web Application Basic [without Membership and Authorization]", which will generate a smaller, simpler ASP.NET Core web application.

Also, in September, Treehouse will be publishing a "Getting Started with ASP.NET Core" workshop, so keep an eye out for that.

Thanks, James