Hi guys, does anybody know how to download a MVC project from GitHub and get it to work in Visual Studio?
I'm following a MVC tutorial and these are the various modules of the projects https://github.com/jongalloway/MVA-Introduction-to-ASPNET-MVC and I'd like to get them out of there, on my computer and use them on Visual Studio, but I've really got no idea as there are so many files. Has anybody done something similar before?
thanks

Do you have a Git account?

If not create one and sign in.

Go to the link you gave and click on Fork (top right)

Then click on Download Zip. Save and unzip open the parent folder then open the next folde then open the MVCMusicStoreFolder and double click on the Sln file and you should be good to go.

Or if that's too much work and since I have done it already you can download it from my site @ www.paxium.co.uk/content/MVA-Introduction-to-ASPNET-MVC-master.zip

If you just want to download the ZIP, no account is needed.

thanks guys, I eventually created the account anyway as I may need it in the future and downloaded it. One thing though, when I then open the project in Visual it doesn't compile, and I get like hundreds and hundreds of errors, here are just a bunch of them
microsoftAcademyError.png

Now, surely something went sideways, but literally, all I did was to open the project (module 3, although the module doesn't seem to matter because they all do that).
DaveAmour, you said you've done it, did you have this problem as well by any chance?

Hi Violet

It needs to restore many nuget packages. Do you have nuget installed and setup ok? Mine compiles ok after these have been restored.

Just in case, you can find the restore here:

OK thanks. Done that but nothing changed really, as in still had hundreds of errors. Then I thought that it may have something to do with the Entity framework - which I am absolutely sure I had installed previously - but I did it again any way (right click on Reference and Manage nuget packages ) and installed it from there. Believe it or not, that worked, so I presume that the Entity Framework has to be installed on a project basis?!
Anyway, it works, altough I noticed that when I restart the project I have this window coming up:
razor.png
which is a bit weird because I've used razor before. In any case, when I tried to install it, or at least when I looked for it, I realized that I wasn't sure what I was looking for...any idea? And above all, since the app seems to work, do I have to?
razor_install.png
Cheers

Hmm not sure really.

EF is normally installed via nuget though I think.

Sorry no idea about what else to downloadl.

eh eh, that's ok, like I said it works, so that's the main thing!

Ok cool.

I do MVC all day long so fire away if you have any questions.

thank you very much, I will take that into consideration. I'm trying to learn MVC, still doing largely theory with little practice, but I hope to get more hands-on as I go along : - )!

Are you learning through books or videos?

well, a bit of everything to be honest. I did a bit of webforms before, so I got a an MVC book out but I couldn't follow it, it was a bit too advanced, so I found a few great resources online this http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-fundamentals and this http://www.microsoftvirtualacademy.com/training-courses/introduction-to-asp-net-mvc and I'm doing a bit of both. Needless to say, if you have any other suggestion, let me know : - )!

I first learned MVC from some excellent videos by David Finley on http://www.learnvisualstudio.net/

They were really good and easy to follow.

Plural Sign is also really good - http://www.pluralsight.com

Both of these are not free thouhg so depends on your budget. I think PluralSight have a few free ones thouhg.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.