Resume Templater Project

Link to Resume Templater Project

I am struggling to get this setup in Visual Studio so it can aid me through this project. On step #2 it says…

In order for our view pages to work with their respective models we need to add the right directives. Navigate to Index.cshtml and add the @model directive followed by the model for the page. Navigate to Projects.cshtml and add the @model directive followed by the model for the page.

Which I have done with this…

@page
<!-- Index.cshtml -->
<!-- Add model directive below -->
@model IndexModel
@{
    // Add ViewData Title below
}


<div class="jumbotron jumbotron-fluid jumbotron-container resume-jumbotron text-white">
    <div class="container-fluid jumbotron-content">
        <p class="text-center jumbotron-header mb-4">Hey there, I'm <!-- Your name here -->!</p>
    </div>
</div>


<div class="container">
    <div class="resume-content">
        <h4 class="general-header mb-3">Summary:</h4>
        <p class="general-content mb-3">I'm an enthusiastic software engineer with <!-- Years of experience -->+ years of experience participating in the complete lifecyclye of successfully launched applications. I am skilled in developing business plans, requirements specifications, user documentation, and architectural systems research. Strong written and verbal communications.</p>
    </div>

    <div class="resume-content">
        <h4 class="general-header mb-3">Languages:</h4>
        <ul class="list-group general-content">
            <li class="list-item" style="width: 18rem;">
                <!-- Language -->
            </li>
        </ul>
    </div>

    <div class="resume-content">
        <h4 class="general-header mb-3">Contact</h4>
        <p class="general-content">
            <!-- Render partial for Link below -->
        </p>
    </div>
</div>
@page
<!-- Projects.cshtml -->
<!-- Add model directive below -->
@model ProjectsModel
@{
    // Add ViewData Title below
}

<div class="jumbotron jumbotron-fluid jumbotron-container text-white project-jumbotron">
    <div class="container-fluid jumbotron-content">
        <p class="text-center mb-4 jumbotron-header">Projects</p>
    </div>
</div>

<div class="container">
    <div class="project-container">
        <h4 class="project-title general-header">
            <!--  Project Title -->
        </h4>
        <p class="project-year general-header">
            <!--  Project Year -->
        </p>
        <p class="project-description general-content">
            <!--  Project Description -->
        </p>
    </div>

    <br>
    <h4 class="general-header">Portfolio</h4>
    <p class="general-content">
        <!-- Render partial for Link below -->
    </p>
    <br>
</div>
// Index.cshtml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;

namespace ResumeTemplater.Pages
{
	public class IndexModel : PageModel
	{
		public string FullName { get; set; }
		public string LinkedInUsername { get; set; }
		public int YearsOfExperience { get; set; }
		public List<string> Languages { get; set; }
		public void OnGet()
		{
			FullName = "Scott Milliorn";
			LinkedInUsername = "ScottM";
			YearsOfExperience = 15;
			Languages = new List<string> {
				"C#",
				"C++",
				"Python"
			};
		}
	}
}
// Projects.cshtml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using ResumeTemplater.Models;

namespace ResumeTemplater.Pages
{
	public class ProjectsModel : PageModel
	{

		public List<Project> Projects { get; set; }

		public string GithubUsername { get; set; }

		public void OnGet()
		{
			GithubUsername = "";
			Projects = new List<Project> {
				new Project()
				{
					Title = "Explorella",
					Description = "A large scale travelling application built to help plan your destination and itinerary on your next trip! Built on React, Node, Express, and MongoDB.",
					Year = 2019,
					Technologies = new List<string> {
						"React",
						"Node",
						"Express",
						"MongoDB"
					}
				},
				new Project()
				{
					Title = "Cypher Clothing",
					Description = "A large scale e-commerce clothing store application. Built with Razor Pages and SQLite.",
					Year = 2019,
					Technologies = new List<string> {
						"Razor Pages",
						"SQLite",
					}
				},
				new Project()
				{
					Title = "Password Box",
					Description = "A password manager Chrome plugin used to create and safely store all your passwords! Built with Javascript and HTML.",
					Year = 2020,
					Technologies = new List<string> {
						"Javascript",
						"HTML",
					}
				},
				new Project()
				{
					Title = "Spotivize",
					Description = "Spotivize is a music platform that uses geolocation to track when your favorite artists are playing in your local city! Built with Node, Express, React and MongoDB.",
					Year = 2016,
					Technologies = new List<string> {
						"Express",
						"React",
						"MongoDB"
					}
				}
			};
		}
	}
}

Which results in 29 errors, all being basically this…

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name ‘AboutMeModel’ could not be found (are you missing a using directive or an assembly reference?) Resume-Templater C:\Users\scott\Desktop\Resume-Templater\Resume-Templater\Pages\AboutMe.cshtml 1 Active

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name ‘ErrorModel’ could not be found (are you missing a using directive or an assembly reference?) Resume-Templater C:\Users\scott\Desktop\Resume-Templater\Resume-Templater\Pages\Error.cshtml 1 Active

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name ‘IndexModel’ could not be found (are you missing a using directive or an assembly reference?) Resume-Templater C:\Users\scott\Desktop\Resume-Templater\Resume-Templater\Pages\Index.cshtml 1 Active

Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name ‘Models’ does not exist in the namespace ‘ResumeTemplater’ (are you missing an assembly reference?) Resume-Templater C:\Users\scott\Desktop\Resume-Templater\Resume-Templater\Pages\Projects.cshtml.cs 8 Active

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name ‘Project’ could not be found (are you missing a using directive or an assembly reference?) Resume-Templater C:\Users\scott\Desktop\Resume-Templater\Resume-Templater\Pages\Projects.cshtml.cs 15 Active

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name ‘ProjectsModel’ could not be found (are you missing a using directive or an assembly reference?) Resume-Templater C:\Users\scott\Desktop\Resume-Templater\Resume-Templater\Pages\Projects.cshtml 1 Active

Are these errors going to be resolved later in the project? I am on step #4 an nothing is working so I can’t tell if a mistake has been made or not. I’ve passed the lessons up to this point, but every lesson, the output of the page is full of errors so I have no idea if I have done things right up to this point or this is full of bugs(course).

Anyone can answer this? I finished the project the it still has errors.

Can someone help me with the below errors for the Resume Templater Project.

Pages/_ViewStart.cshtml(5,11): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement [/home/ccuser/workspace/resume-templater/ResumeTemplater.csproj]

Pages/_ViewStart.cshtml(5,3): warning CS0164: This label has not been referenced [/home/ccuser/workspace/resume-templater/ResumeTemplater.csproj]

I’m waiting on CC to update this or MS to do more updates. I’m not sure what’s wrong here but this is the second time I’ve tried to do this course. I got this far the second time but I can’t tell if its broken here or its me until someone else answers my original post.