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 trialElizabeth Fust
9,651 PointsI downloaded zip file, extracted and created new project in Visual Studio, added the files, but I'm getting errors
I downloaded the zipfile from the Top Ten Scorers video in the C# Streams and DataProcessing class. Then I extracted all files. I opened Visual Studio Community and created a new project. Then I added existing files from the extracted files I downloaded. Now I'm getting red squiggly lines under "using Newtonsoft.Json, and under the Solution name, project name, Player.cs, and Program.cs in the Solution Explorer window. The error says: "The Type or namespace name "Newtonsoft could not be found (are you missing a using directive or assembly reference?)"
I don't know what this means, or what I should do.
1 Answer
Allan Clark
10,810 PointsThe project is likely missing references to NuGet packages, you should be able to find them using the NuGet package manager. However, I'd suggest a different approach.
The Project Files zip that you download from that page is a full project, complete with all the references required. I would simply go to where you extracted the files, and double click the 'SoccerStats.sln' file. This is a Visual Studio Solution file, it should open in VS with everything you need.
Hope this helps, Happy Coding!!