Using VS2013 Pro, TFS 2013 Express
I am currently making a tutorial from an asp.net mvc 5 book, and everything is fine. Yesterday I installed TFS 2013 Express on my local machine, copied the project to the TFS folder and added the project to the source code.
Since then I get errors similar to the topic. In this case, the controller simply uses:
using System.Web;
using System.Web.Mvc;
using PartyInvites.**Models**;
namespace PartyInvites.Controllers
{
public class HomeController : Controller
{
public ViewResult Index()
{
int hour = DateTime.Now.Hour;
ViewBag.Greeting = hour < 12 ? "Good Morning" : "Good Afternoon";
return View();
}
[HttpGet]
public ViewResult RsvpForm()
{
return View();
}
[HttpPost]
public ViewResult RsvpForm(**GuestResponse** guestResponse)
{
return View("Thanks", guestResponse);
}
}
}
in HttpPost, the "GuestResponse" object is where the red line is, but this IS object is in the model namespace, etc. EDIT The red line also refers to the word “Models” in the usage instructions at the top.
, SUO , , , . , - , .
- , , .
, SUO TFS, NST , SUO TFS. .
Q) - , , SUO ?
1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PartyInvites.Models
{
public class GuestResponse
{
public string Name { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public bool? WillAttend { get; set; }
}
}
2
FILE > SourceControl > , , ... . , TFS. -- . TFS .