From the course: Learning ASP.NET

Using the exercise files for this course

From the course: Learning ASP.NET

Start my 1-month free trial

Using the exercise files for this course

- [Instructor] As we explore the ASP.NET platform, we'll be writing code using Visual Studio. You can follow along by using the Exercise files for this course. They're organized and named by chapter and lesson to help you follow along. I'd like to share a few tips to help you build and run the sample application successfully. Go ahead and open the chapter two folder and the sub-folder named 02_03_begin. Then, double click the Solution file to open it in Visual Studio. The sample applications we'll be working with consume reusable code in the form of NuGet packages. These packages are installed with the Package Manager. If you right click on a project and select Manage NuGet Packages, you'll see what's installed. To have a cleaner development environment and reduce the size of the source code, these packages aren't installed by default. You need to use Nuget Package Restore to restore them. Notice this message up here, which is letting you know that the NuGet packages are missing. You can simply click the Restore button to restore them. Another way to manually restore is to right click the Solution file and select Restore NuGet Packages. You can also restore packages automatically whenever you build a project. Go to the Tools menu, Options, and expand NuGet Package Manager. Then, check both options under Package Restore to enable it automatically. And now, it's time to build the solution. If you have issues building or running the projects after restoring the packages, go ahead and clean the solution, and then rebuild it here in the Build menu. Sometimes, it's necessary to clean the solution and build all the project files and components. One more thing I want to show you is how to run your application when you have multiple projects in a solution. You can simply right click the project you want to run and select Set a Startup Project. You'll then see the project name appears in bold. I encourage you to refer to the source code in the Exercise files as often as you need to. They're available to help you get the most out of this course.

Contents