我很难跑步
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.ModelBinding;
namespace PartyInvites {
public class GuestResponse {
public string Name { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public bool? WillAttend { get; set;}
}
public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) {
GuestResponse rsvp = new GuestResponse(); if (TryUpdateModel(rsvp, new FormValueProvider(ModelBindingExecutionContext))) { }
}
}
}
}
我运行时,使用msbuild可以很好地编译代码
返回 System.Web.Compilation.CompilationException
。
我在其他线程中尝试过建议。
https://stackoverflow.com/a/20313379/6721448```