terug naar bijna af...

This commit is contained in:
Joham 2020-05-02 21:07:44 +02:00
parent a69a1d99fb
commit ad65c44b24
54 changed files with 33314 additions and 33314 deletions

View file

@ -1,189 +1,189 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using NerdDinner.Helpers;
using NerdDinner.Models;
namespace NerdDinner.Controllers {
//
// ViewModel Classes
public class DinnerFormViewModel {
// Properties
public Dinner Dinner { get; private set; }
public SelectList Countries { get; private set; }
// Constructor
public DinnerFormViewModel(Dinner dinner) {
Dinner = dinner;
Countries = new SelectList(PhoneValidator.Countries, Dinner.Country);
}
}
//
// Controller Class
[HandleError]
public class DinnersController : Controller {
IDinnerRepository dinnerRepository;
//
// Dependency Injection enabled constructors
public DinnersController()
: this(new DinnerRepository()) {
}
public DinnersController(IDinnerRepository repository) {
dinnerRepository = repository;
}
//
// GET: /Dinners/
// /Dinners/Page/2
public ActionResult Index(int? page) {
const int pageSize = 10;
var upcomingDinners = dinnerRepository.FindUpcomingDinners();
var paginatedDinners = new PaginatedList<Dinner>(upcomingDinners, page ?? 0, pageSize);
return View(paginatedDinners);
}
//
// GET: /Dinners/Details/5
public ActionResult Details(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (dinner == null)
return View("NotFound");
return View(dinner);
}
//
// GET: /Dinners/Edit/5
[Authorize]
public ActionResult Edit(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
return View(new DinnerFormViewModel(dinner));
}
//
// POST: /Dinners/Edit/5
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Edit(int id, FormCollection collection) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
try {
UpdateModel(dinner);
dinnerRepository.Save();
return RedirectToAction("Details", new { id=dinner.DinnerID });
}
catch {
ModelState.AddModelErrors(dinner.GetRuleViolations());
return View(new DinnerFormViewModel(dinner));
}
}
//
// GET: /Dinners/Create
[Authorize]
public ActionResult Create() {
Dinner dinner = new Dinner() {
EventDate = DateTime.Now.AddDays(7)
};
return View(new DinnerFormViewModel(dinner));
}
//
// POST: /Dinners/Create
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Create(Dinner dinner) {
if (ModelState.IsValid) {
try {
dinner.HostedBy = User.Identity.Name;
RSVP rsvp = new RSVP();
rsvp.AttendeeName = User.Identity.Name;
dinner.RSVPs.Add(rsvp);
dinnerRepository.Add(dinner);
dinnerRepository.Save();
return RedirectToAction("Details", new { id=dinner.DinnerID });
}
catch {
ModelState.AddModelErrors(dinner.GetRuleViolations());
}
}
return View(new DinnerFormViewModel(dinner));
}
//
// HTTP GET: /Dinners/Delete/1
[Authorize]
public ActionResult Delete(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (dinner == null)
return View("NotFound");
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
return View(dinner);
}
//
// HTTP POST: /Dinners/Delete/1
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Delete(int id, string confirmButton) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (dinner == null)
return View("NotFound");
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
dinnerRepository.Delete(dinner);
dinnerRepository.Save();
return View("Deleted");
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using NerdDinner.Helpers;
using NerdDinner.Models;
namespace NerdDinner.Controllers {
//
// ViewModel Classes
public class DinnerFormViewModel {
// Properties
public Dinner Dinner { get; private set; }
public SelectList Countries { get; private set; }
// Constructor
public DinnerFormViewModel(Dinner dinner) {
Dinner = dinner;
Countries = new SelectList(PhoneValidator.Countries, Dinner.Country);
}
}
//
// Controller Class
[HandleError]
public class DinnersController : Controller {
IDinnerRepository dinnerRepository;
//
// Dependency Injection enabled constructors
public DinnersController()
: this(new DinnerRepository()) {
}
public DinnersController(IDinnerRepository repository) {
dinnerRepository = repository;
}
//
// GET: /Dinners/
// /Dinners/Page/2
public ActionResult Index(int? page) {
const int pageSize = 10;
var upcomingDinners = dinnerRepository.FindUpcomingDinners();
var paginatedDinners = new PaginatedList<Dinner>(upcomingDinners, page ?? 0, pageSize);
return View(paginatedDinners);
}
//
// GET: /Dinners/Details/5
public ActionResult Details(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (dinner == null)
return View("NotFound");
return View(dinner);
}
//
// GET: /Dinners/Edit/5
[Authorize]
public ActionResult Edit(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
return View(new DinnerFormViewModel(dinner));
}
//
// POST: /Dinners/Edit/5
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Edit(int id, FormCollection collection) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
try {
UpdateModel(dinner);
dinnerRepository.Save();
return RedirectToAction("Details", new { id=dinner.DinnerID });
}
catch {
ModelState.AddModelErrors(dinner.GetRuleViolations());
return View(new DinnerFormViewModel(dinner));
}
}
//
// GET: /Dinners/Create
[Authorize]
public ActionResult Create() {
Dinner dinner = new Dinner() {
EventDate = DateTime.Now.AddDays(7)
};
return View(new DinnerFormViewModel(dinner));
}
//
// POST: /Dinners/Create
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Create(Dinner dinner) {
if (ModelState.IsValid) {
try {
dinner.HostedBy = User.Identity.Name;
RSVP rsvp = new RSVP();
rsvp.AttendeeName = User.Identity.Name;
dinner.RSVPs.Add(rsvp);
dinnerRepository.Add(dinner);
dinnerRepository.Save();
return RedirectToAction("Details", new { id=dinner.DinnerID });
}
catch {
ModelState.AddModelErrors(dinner.GetRuleViolations());
}
}
return View(new DinnerFormViewModel(dinner));
}
//
// HTTP GET: /Dinners/Delete/1
[Authorize]
public ActionResult Delete(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (dinner == null)
return View("NotFound");
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
return View(dinner);
}
//
// HTTP POST: /Dinners/Delete/1
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Delete(int id, string confirmButton) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (dinner == null)
return View("NotFound");
if (!dinner.IsHostedBy(User.Identity.Name))
return View("InvalidOwner");
dinnerRepository.Delete(dinner);
dinnerRepository.Save();
return View("Deleted");
}
}
}

View file

@ -1,20 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace NerdDinner.Controllers {
[HandleError]
public class HomeController : Controller {
public ActionResult Index() {
return View();
}
public ActionResult About() {
return View();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace NerdDinner.Controllers {
[HandleError]
public class HomeController : Controller {
public ActionResult Index() {
return View();
}
public ActionResult About() {
return View();
}
}
}

View file

@ -1,45 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NerdDinner.Models;
namespace NerdDinner.Controllers
{
public class RSVPController : Controller {
IDinnerRepository dinnerRepository;
//
// Dependency Injection enabled constructors
public RSVPController()
: this(new DinnerRepository()) {
}
public RSVPController(IDinnerRepository repository) {
dinnerRepository = repository;
}
//
// AJAX: /Dinners/Register/1
[Authorize, AcceptVerbs(HttpVerbs.Post)]
public ActionResult Register(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (!dinner.IsUserRegistered(User.Identity.Name)) {
RSVP rsvp = new RSVP();
rsvp.AttendeeName = User.Identity.Name;
dinner.RSVPs.Add(rsvp);
dinnerRepository.Save();
}
return Content("Thanks - we'll see you there!");
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NerdDinner.Models;
namespace NerdDinner.Controllers
{
public class RSVPController : Controller {
IDinnerRepository dinnerRepository;
//
// Dependency Injection enabled constructors
public RSVPController()
: this(new DinnerRepository()) {
}
public RSVPController(IDinnerRepository repository) {
dinnerRepository = repository;
}
//
// AJAX: /Dinners/Register/1
[Authorize, AcceptVerbs(HttpVerbs.Post)]
public ActionResult Register(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
if (!dinner.IsUserRegistered(User.Identity.Name)) {
RSVP rsvp = new RSVP();
rsvp.AttendeeName = User.Identity.Name;
dinner.RSVPs.Add(rsvp);
dinnerRepository.Save();
}
return Content("Thanks - we'll see you there!");
}
}
}

View file

@ -1,55 +1,55 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NerdDinner.Models;
namespace NerdDinner.Controllers {
public class JsonDinner {
public int DinnerID { get; set; }
public string Title { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
public string Description { get; set; }
public int RSVPCount { get; set; }
}
public class SearchController : Controller {
IDinnerRepository dinnerRepository;
//
// Dependency Injection enabled constructors
public SearchController()
: this(new DinnerRepository()) {
}
public SearchController(IDinnerRepository repository) {
dinnerRepository = repository;
}
//
// AJAX: /Search/FindByLocation?longitude=45&latitude=-90
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SearchByLocation(float latitude, float longitude) {
var dinners = dinnerRepository.FindByLocation(latitude, longitude);
var jsonDinners = from dinner in dinners
select new JsonDinner {
DinnerID = dinner.DinnerID,
Latitude = dinner.Latitude,
Longitude = dinner.Longitude,
Title = dinner.Title,
Description = dinner.Description,
RSVPCount = dinner.RSVPs.Count
};
return Json(jsonDinners.ToList());
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NerdDinner.Models;
namespace NerdDinner.Controllers {
public class JsonDinner {
public int DinnerID { get; set; }
public string Title { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
public string Description { get; set; }
public int RSVPCount { get; set; }
}
public class SearchController : Controller {
IDinnerRepository dinnerRepository;
//
// Dependency Injection enabled constructors
public SearchController()
: this(new DinnerRepository()) {
}
public SearchController(IDinnerRepository repository) {
dinnerRepository = repository;
}
//
// AJAX: /Search/FindByLocation?longitude=45&latitude=-90
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SearchByLocation(float latitude, float longitude) {
var dinners = dinnerRepository.FindByLocation(latitude, longitude);
var jsonDinners = from dinner in dinners
select new JsonDinner {
DinnerID = dinner.DinnerID,
Latitude = dinner.Latitude,
Longitude = dinner.Longitude,
Title = dinner.Title,
Description = dinner.Description,
RSVPCount = dinner.RSVPs.Count
};
return Json(jsonDinners.ToList());
}
}
}

View file

@ -1,13 +1,13 @@
using System.Web;
using System.Web.Mvc;
using System.Web.UI;
namespace NerdDinner {
public partial class _Default : Page {
public void Page_Load(object sender, System.EventArgs e) {
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}
}
}
using System.Web;
using System.Web.Mvc;
using System.Web.UI;
namespace NerdDinner {
public partial class _Default : Page {
public void Page_Load(object sender, System.EventArgs e) {
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}
}
}

View file

@ -1,37 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Dlrsoft.Asp.Mvc;
namespace NerdDinner {
public class MvcApplication : System.Web.HttpApplication {
public void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"UpcomingDinners",
"Dinners/Page/{page}",
new { controller = "Dinners", action = "Index" }
);
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
void Application_Start() {
RegisterRoutes(RouteTable.Routes);
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new AspViewEngine());
ViewEngines.Engines.Add(new WebFormViewEngine());
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Dlrsoft.Asp.Mvc;
namespace NerdDinner {
public class MvcApplication : System.Web.HttpApplication {
public void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"UpcomingDinners",
"Dinners/Page/{page}",
new { controller = "Dinners", action = "Index" }
);
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
void Application_Start() {
RegisterRoutes(RouteTable.Routes);
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new AspViewEngine());
ViewEngines.Engines.Add(new WebFormViewEngine());
}
}
}

View file

@ -1,19 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NerdDinner.Models;
using System.Web.Mvc;
namespace NerdDinner.Helpers {
public static class ModelStateHelpers {
public static void AddModelErrors(this ModelStateDictionary modelState, IEnumerable<RuleViolation> errors) {
foreach (RuleViolation issue in errors) {
modelState.AddModelError(issue.PropertyName, issue.ErrorMessage);
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NerdDinner.Models;
using System.Web.Mvc;
namespace NerdDinner.Helpers {
public static class ModelStateHelpers {
public static void AddModelErrors(this ModelStateDictionary modelState, IEnumerable<RuleViolation> errors) {
foreach (RuleViolation issue in errors) {
modelState.AddModelError(issue.PropertyName, issue.ErrorMessage);
}
}
}
}

View file

@ -1,35 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace NerdDinner.Helpers {
public class PaginatedList<T> : List<T> {
public int PageIndex { get; private set; }
public int PageSize { get; private set; }
public int TotalCount { get; private set; }
public int TotalPages { get; private set; }
public PaginatedList(IQueryable<T> source, int pageIndex, int pageSize) {
PageIndex = pageIndex;
PageSize = pageSize;
TotalCount = source.Count();
TotalPages = (int) Math.Ceiling(TotalCount / (double)PageSize);
this.AddRange(source.Skip(PageIndex * PageSize).Take(PageSize));
}
public bool HasPreviousPage {
get {
return (PageIndex > 0);
}
}
public bool HasNextPage {
get {
return (PageIndex+1 < TotalPages);
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
namespace NerdDinner.Helpers {
public class PaginatedList<T> : List<T> {
public int PageIndex { get; private set; }
public int PageSize { get; private set; }
public int TotalCount { get; private set; }
public int TotalPages { get; private set; }
public PaginatedList(IQueryable<T> source, int pageIndex, int pageSize) {
PageIndex = pageIndex;
PageSize = pageSize;
TotalCount = source.Count();
TotalPages = (int) Math.Ceiling(TotalCount / (double)PageSize);
this.AddRange(source.Skip(PageIndex * PageSize).Take(PageSize));
}
public bool HasPreviousPage {
get {
return (PageIndex > 0);
}
}
public bool HasNextPage {
get {
return (PageIndex+1 < TotalPages);
}
}
}
}

View file

@ -1,32 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;
namespace NerdDinner.Helpers {
public class PhoneValidator {
static IDictionary<string, Regex> countryRegex = new Dictionary<string, Regex>()
{
{ "USA", new Regex("^[2-9]\\d{2}-\\d{3}-\\d{4}$")},
{ "UK", new Regex("(^1300\\d{6}$)|(^1800|1900|1902\\d{6}$)|(^0[2|3|7|8]{1}[0-9]{8}$)|(^13\\d{4}$)|(^04\\d{2,3}\\d{6}$)")},
{ "Netherlands", new Regex("(^\\+[0-9]{2}|^\\+[0-9]{2}\\(0\\)|^\\(\\+[0-9]{2}\\)\\(0\\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\\-\\s]{10}$)")},
};
public static bool IsValidNumber(string phoneNumber, string country) {
if (country != null && countryRegex.ContainsKey(country))
return countryRegex[country].IsMatch(phoneNumber);
else
return false;
}
public static IEnumerable<string> Countries {
get {
return countryRegex.Keys;
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;
namespace NerdDinner.Helpers {
public class PhoneValidator {
static IDictionary<string, Regex> countryRegex = new Dictionary<string, Regex>()
{
{ "USA", new Regex("^[2-9]\\d{2}-\\d{3}-\\d{4}$")},
{ "UK", new Regex("(^1300\\d{6}$)|(^1800|1900|1902\\d{6}$)|(^0[2|3|7|8]{1}[0-9]{8}$)|(^13\\d{4}$)|(^04\\d{2,3}\\d{6}$)")},
{ "Netherlands", new Regex("(^\\+[0-9]{2}|^\\+[0-9]{2}\\(0\\)|^\\(\\+[0-9]{2}\\)\\(0\\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\\-\\s]{10}$)")},
};
public static bool IsValidNumber(string phoneNumber, string country) {
if (country != null && countryRegex.ContainsKey(country))
return countryRegex[country].IsMatch(phoneNumber);
else
return false;
}
public static IEnumerable<string> Countries {
get {
return countryRegex.Keys;
}
}
}
}

View file

@ -1,56 +1,56 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Web.Mvc;
using NerdDinner.Helpers;
namespace NerdDinner.Models {
[Bind(Include="Title,Description,EventDate,Address,Country,ContactPhone,Latitude,Longitude")]
public partial class Dinner {
public bool IsHostedBy(string userName) {
return HostedBy.Equals(userName, StringComparison.InvariantCultureIgnoreCase);
}
public bool IsUserRegistered(string userName) {
return RSVPs.Any(r => r.AttendeeName.Equals(userName, StringComparison.InvariantCultureIgnoreCase));
}
public bool IsValid {
get { return (GetRuleViolations().Count() == 0); }
}
public IEnumerable<RuleViolation> GetRuleViolations() {
if (String.IsNullOrEmpty(Title))
yield return new RuleViolation("Title is required", "Title");
if (String.IsNullOrEmpty(Description))
yield return new RuleViolation("Description is required", "Description");
if (String.IsNullOrEmpty(HostedBy))
yield return new RuleViolation("HostedBy is required", "HostedBy");
if (String.IsNullOrEmpty(Address))
yield return new RuleViolation("Address is required", "Address");
if (String.IsNullOrEmpty(Country))
yield return new RuleViolation("Country is required", "Address");
if (String.IsNullOrEmpty(ContactPhone))
yield return new RuleViolation("Phone# is required", "ContactPhone");
if (!PhoneValidator.IsValidNumber(ContactPhone, Country))
yield return new RuleViolation("Phone# does not match country", "ContactPhone");
yield break;
}
partial void OnValidate(ChangeAction action) {
if (!IsValid)
throw new ApplicationException("Rule violations prevent saving");
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Web.Mvc;
using NerdDinner.Helpers;
namespace NerdDinner.Models {
[Bind(Include="Title,Description,EventDate,Address,Country,ContactPhone,Latitude,Longitude")]
public partial class Dinner {
public bool IsHostedBy(string userName) {
return HostedBy.Equals(userName, StringComparison.InvariantCultureIgnoreCase);
}
public bool IsUserRegistered(string userName) {
return RSVPs.Any(r => r.AttendeeName.Equals(userName, StringComparison.InvariantCultureIgnoreCase));
}
public bool IsValid {
get { return (GetRuleViolations().Count() == 0); }
}
public IEnumerable<RuleViolation> GetRuleViolations() {
if (String.IsNullOrEmpty(Title))
yield return new RuleViolation("Title is required", "Title");
if (String.IsNullOrEmpty(Description))
yield return new RuleViolation("Description is required", "Description");
if (String.IsNullOrEmpty(HostedBy))
yield return new RuleViolation("HostedBy is required", "HostedBy");
if (String.IsNullOrEmpty(Address))
yield return new RuleViolation("Address is required", "Address");
if (String.IsNullOrEmpty(Country))
yield return new RuleViolation("Country is required", "Address");
if (String.IsNullOrEmpty(ContactPhone))
yield return new RuleViolation("Phone# is required", "ContactPhone");
if (!PhoneValidator.IsValidNumber(ContactPhone, Country))
yield return new RuleViolation("Phone# does not match country", "ContactPhone");
yield break;
}
partial void OnValidate(ChangeAction action) {
if (!IsValid)
throw new ApplicationException("Rule violations prevent saving");
}
}
}

View file

@ -1,58 +1,58 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NerdDinner.Models {
public class DinnerRepository : NerdDinner.Models.IDinnerRepository {
NerdDinnerDataContext db = new NerdDinnerDataContext();
//
// Query Methods
public IQueryable<Dinner> FindAllDinners() {
return db.Dinners;
}
public IQueryable<Dinner> FindUpcomingDinners() {
return from dinner in FindAllDinners()
where dinner.EventDate > DateTime.Now
orderby dinner.EventDate
select dinner;
}
public IQueryable<Dinner> FindByLocation(float latitude, float longitude) {
var dinners = from dinner in FindUpcomingDinners()
join i in db.NearestDinners(latitude, longitude)
on dinner.DinnerID equals i.DinnerID
select dinner;
return dinners;
}
public Dinner GetDinner(int id) {
return db.Dinners.SingleOrDefault(d => d.DinnerID == id);
}
//
// Insert/Delete Methods
public void Add(Dinner dinner) {
db.Dinners.InsertOnSubmit(dinner);
}
public void Delete(Dinner dinner) {
db.RSVPs.DeleteAllOnSubmit(dinner.RSVPs);
db.Dinners.DeleteOnSubmit(dinner);
}
//
// Persistence
public void Save() {
db.SubmitChanges();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NerdDinner.Models {
public class DinnerRepository : NerdDinner.Models.IDinnerRepository {
NerdDinnerDataContext db = new NerdDinnerDataContext();
//
// Query Methods
public IQueryable<Dinner> FindAllDinners() {
return db.Dinners;
}
public IQueryable<Dinner> FindUpcomingDinners() {
return from dinner in FindAllDinners()
where dinner.EventDate > DateTime.Now
orderby dinner.EventDate
select dinner;
}
public IQueryable<Dinner> FindByLocation(float latitude, float longitude) {
var dinners = from dinner in FindUpcomingDinners()
join i in db.NearestDinners(latitude, longitude)
on dinner.DinnerID equals i.DinnerID
select dinner;
return dinners;
}
public Dinner GetDinner(int id) {
return db.Dinners.SingleOrDefault(d => d.DinnerID == id);
}
//
// Insert/Delete Methods
public void Add(Dinner dinner) {
db.Dinners.InsertOnSubmit(dinner);
}
public void Delete(Dinner dinner) {
db.RSVPs.DeleteAllOnSubmit(dinner.RSVPs);
db.Dinners.DeleteOnSubmit(dinner);
}
//
// Persistence
public void Save() {
db.SubmitChanges();
}
}
}

View file

@ -1,18 +1,18 @@
using System;
using System.Linq;
namespace NerdDinner.Models {
public interface IDinnerRepository {
IQueryable<Dinner> FindAllDinners();
IQueryable<Dinner> FindByLocation(float latitude, float longitude);
IQueryable<Dinner> FindUpcomingDinners();
Dinner GetDinner(int id);
void Add(Dinner dinner);
void Delete(Dinner dinner);
void Save();
}
}
using System;
using System.Linq;
namespace NerdDinner.Models {
public interface IDinnerRepository {
IQueryable<Dinner> FindAllDinners();
IQueryable<Dinner> FindByLocation(float latitude, float longitude);
IQueryable<Dinner> FindUpcomingDinners();
Dinner GetDinner(int id);
void Add(Dinner dinner);
void Delete(Dinner dinner);
void Save();
}
}

View file

@ -1,22 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NerdDinner.Models {
public class RuleViolation {
public string ErrorMessage { get; private set; }
public string PropertyName { get; private set; }
public RuleViolation(string errorMessage) {
ErrorMessage = errorMessage;
}
public RuleViolation(string errorMessage, string propertyName) {
ErrorMessage = errorMessage;
PropertyName = propertyName;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NerdDinner.Models {
public class RuleViolation {
public string ErrorMessage { get; private set; }
public string PropertyName { get; private set; }
public RuleViolation(string errorMessage) {
ErrorMessage = errorMessage;
}
public RuleViolation(string errorMessage, string propertyName) {
ErrorMessage = errorMessage;
PropertyName = propertyName;
}
}
}

View file

@ -1,215 +1,215 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{328C148C-DBEE-41A4-B1C7-104CBB216556}</ProjectGuid>
<ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NerdDinner</RootNamespace>
<AssemblyName>NerdDinner</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="Dlrsoft.Asp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\asp\bin\Release\Dlrsoft.Asp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Abstractions.dll</HintPath>
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Mvc.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Routing.dll</HintPath>
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Web.Mobile" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controllers\AccountController.cs" />
<Compile Include="Controllers\DinnersController.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\SearchController.cs" />
<Compile Include="Controllers\RSVPController.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Helpers\ControllerHelpers.cs" />
<Compile Include="Helpers\PaginatedList.cs" />
<Compile Include="Helpers\PhoneValidator.cs" />
<Compile Include="Models\Dinner.cs" />
<Compile Include="Models\DinnerRepository.cs" />
<Compile Include="Models\IDinnerRepository.cs" />
<Compile Include="Models\NerdDinner.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>NerdDinner.dbml</DependentUpon>
</Compile>
<Compile Include="Models\RuleViolation.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="App_Data\NerdDinner.mdf">
</Content>
<Content Include="App_Data\NerdDinner_log.ldf">
<DependentUpon>NerdDinner.mdf</DependentUpon>
</Content>
<Content Include="Content\nerd.jpg" />
<Content Include="Default.aspx" />
<Content Include="Global.asax" />
<Content Include="Scripts\Map.js" />
<None Include="Views\Dinners\DinnerForm.asc" />
<None Include="Views\Dinners\DinnerForm.ascx.bak" />
<None Include="Views\Dinners\EditAndDeleteLinks.asc" />
<None Include="Views\Dinners\EditAndDeleteLinks.ascx.bak" />
<None Include="Views\Dinners\RSVPStatus.asc" />
<Content Include="Views\Dinners\Map.asp" />
<Content Include="Views\Dinners\Index.asp" />
<None Include="Views\Dinners\RSVPStatus.ascx.bak">
<SubType>ASPXCodeBehind</SubType>
</None>
<None Include="Views\Dinners\Map.ascx.bak" />
<Content Include="Views\Dinners\Edit.asp" />
<Content Include="Views\Dinners\Create.asp" />
<Content Include="Views\Dinners\Details.asp" />
<Content Include="Views\Dinners\Delete.asp" />
<Content Include="Views\Dinners\InvalidOwner.asp" />
<Content Include="Views\Dinners\NotFound.asp" />
<Content Include="Views\Dinners\Deleted.asp" />
<Content Include="Views\Home\Index.asp" />
<Content Include="Views\Home\About.asp" />
<Content Include="Views\Shared\header.asp" />
<Content Include="Views\Shared\template.asp" />
<Content Include="Web.config" />
<Content Include="Content\Site.css" />
<Content Include="Scripts\jquery-1.2.6.js" />
<Content Include="Scripts\jquery-1.2.6.min.js" />
<Content Include="Scripts\jquery-1.2.6-vsdoc.js" />
<Content Include="Scripts\jquery-1.2.6.min-vsdoc.js" />
<Content Include="Scripts\MicrosoftAjax.js" />
<Content Include="Scripts\MicrosoftAjax.debug.js" />
<Content Include="Scripts\MicrosoftMvcAjax.js" />
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
<Content Include="Views\Account\ChangePassword.aspx" />
<Content Include="Views\Account\ChangePasswordSuccess.aspx" />
<Content Include="Views\Account\LogOn.aspx" />
<Content Include="Views\Account\Register.aspx" />
<Content Include="Views\Shared\Error.aspx" />
<Content Include="Views\Shared\LoginStatus.ascx" />
<Content Include="Views\Shared\Site.Master" />
<Content Include="Views\Web.config" />
</ItemGroup>
<ItemGroup>
<None Include="Models\NerdDinner.dbml">
<Generator>MSLinqToSQLGenerator</Generator>
<LastGenOutput>NerdDinner.designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
</ItemGroup>
<ItemGroup>
<None Include="Models\NerdDinner.dbml.layout">
<DependentUpon>NerdDinner.dbml</DependentUpon>
</None>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target> -->
<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" />
</Target>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>60848</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{328C148C-DBEE-41A4-B1C7-104CBB216556}</ProjectGuid>
<ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NerdDinner</RootNamespace>
<AssemblyName>NerdDinner</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="Dlrsoft.Asp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\asp\bin\Release\Dlrsoft.Asp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Abstractions.dll</HintPath>
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Mvc.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Routing.dll</HintPath>
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Web.Mobile" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controllers\AccountController.cs" />
<Compile Include="Controllers\DinnersController.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\SearchController.cs" />
<Compile Include="Controllers\RSVPController.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Helpers\ControllerHelpers.cs" />
<Compile Include="Helpers\PaginatedList.cs" />
<Compile Include="Helpers\PhoneValidator.cs" />
<Compile Include="Models\Dinner.cs" />
<Compile Include="Models\DinnerRepository.cs" />
<Compile Include="Models\IDinnerRepository.cs" />
<Compile Include="Models\NerdDinner.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>NerdDinner.dbml</DependentUpon>
</Compile>
<Compile Include="Models\RuleViolation.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="App_Data\NerdDinner.mdf">
</Content>
<Content Include="App_Data\NerdDinner_log.ldf">
<DependentUpon>NerdDinner.mdf</DependentUpon>
</Content>
<Content Include="Content\nerd.jpg" />
<Content Include="Default.aspx" />
<Content Include="Global.asax" />
<Content Include="Scripts\Map.js" />
<None Include="Views\Dinners\DinnerForm.asc" />
<None Include="Views\Dinners\DinnerForm.ascx.bak" />
<None Include="Views\Dinners\EditAndDeleteLinks.asc" />
<None Include="Views\Dinners\EditAndDeleteLinks.ascx.bak" />
<None Include="Views\Dinners\RSVPStatus.asc" />
<Content Include="Views\Dinners\Map.asp" />
<Content Include="Views\Dinners\Index.asp" />
<None Include="Views\Dinners\RSVPStatus.ascx.bak">
<SubType>ASPXCodeBehind</SubType>
</None>
<None Include="Views\Dinners\Map.ascx.bak" />
<Content Include="Views\Dinners\Edit.asp" />
<Content Include="Views\Dinners\Create.asp" />
<Content Include="Views\Dinners\Details.asp" />
<Content Include="Views\Dinners\Delete.asp" />
<Content Include="Views\Dinners\InvalidOwner.asp" />
<Content Include="Views\Dinners\NotFound.asp" />
<Content Include="Views\Dinners\Deleted.asp" />
<Content Include="Views\Home\Index.asp" />
<Content Include="Views\Home\About.asp" />
<Content Include="Views\Shared\header.asp" />
<Content Include="Views\Shared\template.asp" />
<Content Include="Web.config" />
<Content Include="Content\Site.css" />
<Content Include="Scripts\jquery-1.2.6.js" />
<Content Include="Scripts\jquery-1.2.6.min.js" />
<Content Include="Scripts\jquery-1.2.6-vsdoc.js" />
<Content Include="Scripts\jquery-1.2.6.min-vsdoc.js" />
<Content Include="Scripts\MicrosoftAjax.js" />
<Content Include="Scripts\MicrosoftAjax.debug.js" />
<Content Include="Scripts\MicrosoftMvcAjax.js" />
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
<Content Include="Views\Account\ChangePassword.aspx" />
<Content Include="Views\Account\ChangePasswordSuccess.aspx" />
<Content Include="Views\Account\LogOn.aspx" />
<Content Include="Views\Account\Register.aspx" />
<Content Include="Views\Shared\Error.aspx" />
<Content Include="Views\Shared\LoginStatus.ascx" />
<Content Include="Views\Shared\Site.Master" />
<Content Include="Views\Web.config" />
</ItemGroup>
<ItemGroup>
<None Include="Models\NerdDinner.dbml">
<Generator>MSLinqToSQLGenerator</Generator>
<LastGenOutput>NerdDinner.designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
</ItemGroup>
<ItemGroup>
<None Include="Models\NerdDinner.dbml.layout">
<DependentUpon>NerdDinner.dbml</DependentUpon>
</None>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target> -->
<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" />
</Target>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>60848</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

View file

@ -1,35 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NerdDinner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NerdDinner")]
[assembly: AssemblyCopyright("Copyright © 2009")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3f961952-a5a3-4ca2-bc29-5b46b500177d")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.5.2.32072")]
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NerdDinner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NerdDinner")]
[assembly: AssemblyCopyright("Copyright © 2009")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3f961952-a5a3-4ca2-bc29-5b46b500177d")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.5.2.32072")]

View file

@ -1,138 +1,138 @@
/// <reference path="jquery-1.2.6.js" />
var map = null;
var points = [];
var shapes = [];
var center = null;
function LoadMap(latitude, longitude, onMapLoaded) {
map = new VEMap('theMap');
options = new VEMapOptions();
options.EnableBirdseye = false;
// Makes the control bar less obtrusize.
map.SetDashboardSize(VEDashboardSize.Small);
if (onMapLoaded != null)
map.onLoadMap = onMapLoaded;
if (latitude != null && longitude != null) {
center = new VELatLong(latitude, longitude);
}
map.LoadMap(center, null, null, null, null, null, null, options);
}
function LoadPin(LL, name, description) {
var shape = new VEShape(VEShapeType.Pushpin, LL);
//Make a nice Pushpin shape with a title and description
shape.SetTitle("<span class=\"pinTitle\"> " + escape(name) + "</span>");
if (description !== undefined) {
shape.SetDescription("<p class=\"pinDetails\">" +
escape(description) + "</p>");
}
map.AddShape(shape);
points.push(LL);
shapes.push(shape);
}
function FindAddressOnMap(where) {
var numberOfResults = 20;
var setBestMapView = true;
var showResults = true;
map.Find("", where, null, null, null,
numberOfResults, showResults, true, true,
setBestMapView, callbackForLocation);
}
function callbackForLocation(layer, resultsArray, places,
hasMore, VEErrorMessage) {
clearMap();
if (places == null)
return;
//Make a pushpin for each place we find
$.each(places, function(i, item) {
var description = "";
if (item.Description !== undefined) {
description = item.Description;
}
var LL = new VELatLong(item.LatLong.Latitude,
item.LatLong.Longitude);
LoadPin(LL, item.Name, description);
});
//Make sure all pushpins are visible
if (points.length > 1) {
map.SetMapView(points);
}
//If we've found exactly one place, that's our address.
if (points.length === 1) {
$("#Latitude").val(points[0].Latitude);
$("#Longitude").val(points[0].Longitude);
}
}
function clearMap() {
map.Clear();
points = [];
shapes = [];
}
function FindDinnersGivenLocation(where) {
map.Find("", where, null, null, null, null, null, false,
null, null, callbackUpdateMapDinners);
}
function callbackUpdateMapDinners(layer, resultsArray, places, hasMore, VEErrorMessage) {
$("#dinnerList").empty();
clearMap();
var center = map.GetCenter();
$.post("/Search/SearchByLocation", { latitude: center.Latitude,
longitude: center.Longitude
}, function(dinners) {
$.each(dinners, function(i, dinner) {
var LL = new VELatLong(dinner.Latitude, dinner.Longitude, 0, null);
var RsvpMessage = "";
if (dinner.RSVPCount == 1)
RsvpMessage = "" + dinner.RSVPCount + " RSVP";
else
RsvpMessage = "" + dinner.RSVPCount + " RSVPs";
// Add Pin to Map
LoadPin(LL, '<a href="/Dinners/Details/' + dinner.DinnerID + '">'
+ dinner.Title + '</a>',
"<p>" + dinner.Description + "</p>" + RsvpMessage);
//Add a dinner to the <ul> dinnerList on the right
$('#dinnerList').append($('<li/>')
.attr("class", "dinnerItem")
.append($('<a/>').attr("href",
"/Dinners/Details/" + dinner.DinnerID)
.html(dinner.Title)).append(" ("+RsvpMessage+")"));
});
// Adjust zoom to display all the pins we just added.
if (points.length > 1) {
map.SetMapView(points);
}
// Display the event's pin-bubble on hover.
$(".dinnerItem").each(function(i, dinner) {
$(dinner).hover(
function() { map.ShowInfoBox(shapes[i]); },
function() { map.HideInfoBox(shapes[i]); }
);
});
}, "json");
}
/// <reference path="jquery-1.2.6.js" />
var map = null;
var points = [];
var shapes = [];
var center = null;
function LoadMap(latitude, longitude, onMapLoaded) {
map = new VEMap('theMap');
options = new VEMapOptions();
options.EnableBirdseye = false;
// Makes the control bar less obtrusize.
map.SetDashboardSize(VEDashboardSize.Small);
if (onMapLoaded != null)
map.onLoadMap = onMapLoaded;
if (latitude != null && longitude != null) {
center = new VELatLong(latitude, longitude);
}
map.LoadMap(center, null, null, null, null, null, null, options);
}
function LoadPin(LL, name, description) {
var shape = new VEShape(VEShapeType.Pushpin, LL);
//Make a nice Pushpin shape with a title and description
shape.SetTitle("<span class=\"pinTitle\"> " + escape(name) + "</span>");
if (description !== undefined) {
shape.SetDescription("<p class=\"pinDetails\">" +
escape(description) + "</p>");
}
map.AddShape(shape);
points.push(LL);
shapes.push(shape);
}
function FindAddressOnMap(where) {
var numberOfResults = 20;
var setBestMapView = true;
var showResults = true;
map.Find("", where, null, null, null,
numberOfResults, showResults, true, true,
setBestMapView, callbackForLocation);
}
function callbackForLocation(layer, resultsArray, places,
hasMore, VEErrorMessage) {
clearMap();
if (places == null)
return;
//Make a pushpin for each place we find
$.each(places, function(i, item) {
var description = "";
if (item.Description !== undefined) {
description = item.Description;
}
var LL = new VELatLong(item.LatLong.Latitude,
item.LatLong.Longitude);
LoadPin(LL, item.Name, description);
});
//Make sure all pushpins are visible
if (points.length > 1) {
map.SetMapView(points);
}
//If we've found exactly one place, that's our address.
if (points.length === 1) {
$("#Latitude").val(points[0].Latitude);
$("#Longitude").val(points[0].Longitude);
}
}
function clearMap() {
map.Clear();
points = [];
shapes = [];
}
function FindDinnersGivenLocation(where) {
map.Find("", where, null, null, null, null, null, false,
null, null, callbackUpdateMapDinners);
}
function callbackUpdateMapDinners(layer, resultsArray, places, hasMore, VEErrorMessage) {
$("#dinnerList").empty();
clearMap();
var center = map.GetCenter();
$.post("/Search/SearchByLocation", { latitude: center.Latitude,
longitude: center.Longitude
}, function(dinners) {
$.each(dinners, function(i, dinner) {
var LL = new VELatLong(dinner.Latitude, dinner.Longitude, 0, null);
var RsvpMessage = "";
if (dinner.RSVPCount == 1)
RsvpMessage = "" + dinner.RSVPCount + " RSVP";
else
RsvpMessage = "" + dinner.RSVPCount + " RSVPs";
// Add Pin to Map
LoadPin(LL, '<a href="/Dinners/Details/' + dinner.DinnerID + '">'
+ dinner.Title + '</a>',
"<p>" + dinner.Description + "</p>" + RsvpMessage);
//Add a dinner to the <ul> dinnerList on the right
$('#dinnerList').append($('<li/>')
.attr("class", "dinnerItem")
.append($('<a/>').attr("href",
"/Dinners/Details/" + dinner.DinnerID)
.html(dinner.Title)).append(" ("+RsvpMessage+")"));
});
// Adjust zoom to display all the pins we just added.
if (points.length > 1) {
map.SetMapView(points);
}
// Display the event's pin-bubble on hover.
$(".dinnerItem").each(function(i, dinner) {
$(dinner).hover(
function() { map.ShowInfoBox(shapes[i]); },
function() { map.HideInfoBox(shapes[i]); }
);
});
}, "json");
}

File diff suppressed because one or more lines are too long

View file

@ -1,337 +1,337 @@
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftMvcAjax.js
Type.registerNamespace('Sys.Mvc');
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AjaxOptions
Sys.Mvc.$create_AjaxOptions = function Sys_Mvc_AjaxOptions() { return {}; }
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.InsertionMode
Sys.Mvc.InsertionMode = function() {
/// <field name="replace" type="Number" integer="true" static="true">
/// </field>
/// <field name="insertBefore" type="Number" integer="true" static="true">
/// </field>
/// <field name="insertAfter" type="Number" integer="true" static="true">
/// </field>
};
Sys.Mvc.InsertionMode.prototype = {
replace: 0,
insertBefore: 1,
insertAfter: 2
}
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode', false);
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AjaxContext
Sys.Mvc.AjaxContext = function Sys_Mvc_AjaxContext(request, updateTarget, loadingElement, insertionMode) {
/// <param name="request" type="Sys.Net.WebRequest">
/// </param>
/// <param name="updateTarget" type="Object" domElement="true">
/// </param>
/// <param name="loadingElement" type="Object" domElement="true">
/// </param>
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
/// </param>
/// <field name="_insertionMode" type="Sys.Mvc.InsertionMode">
/// </field>
/// <field name="_loadingElement" type="Object" domElement="true">
/// </field>
/// <field name="_response" type="Sys.Net.WebRequestExecutor">
/// </field>
/// <field name="_request" type="Sys.Net.WebRequest">
/// </field>
/// <field name="_updateTarget" type="Object" domElement="true">
/// </field>
this._request = request;
this._updateTarget = updateTarget;
this._loadingElement = loadingElement;
this._insertionMode = insertionMode;
}
Sys.Mvc.AjaxContext.prototype = {
_insertionMode: 0,
_loadingElement: null,
_response: null,
_request: null,
_updateTarget: null,
get_data: function Sys_Mvc_AjaxContext$get_data() {
/// <value type="String"></value>
if (this._response) {
return this._response.get_responseData();
}
else {
return null;
}
},
get_insertionMode: function Sys_Mvc_AjaxContext$get_insertionMode() {
/// <value type="Sys.Mvc.InsertionMode"></value>
return this._insertionMode;
},
get_loadingElement: function Sys_Mvc_AjaxContext$get_loadingElement() {
/// <value type="Object" domElement="true"></value>
return this._loadingElement;
},
get_response: function Sys_Mvc_AjaxContext$get_response() {
/// <value type="Sys.Net.WebRequestExecutor"></value>
return this._response;
},
set_response: function Sys_Mvc_AjaxContext$set_response(value) {
/// <value type="Sys.Net.WebRequestExecutor"></value>
this._response = value;
return value;
},
get_request: function Sys_Mvc_AjaxContext$get_request() {
/// <value type="Sys.Net.WebRequest"></value>
return this._request;
},
get_updateTarget: function Sys_Mvc_AjaxContext$get_updateTarget() {
/// <value type="Object" domElement="true"></value>
return this._updateTarget;
}
}
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AsyncHyperlink
Sys.Mvc.AsyncHyperlink = function Sys_Mvc_AsyncHyperlink() {
}
Sys.Mvc.AsyncHyperlink.handleClick = function Sys_Mvc_AsyncHyperlink$handleClick(anchor, evt, ajaxOptions) {
/// <param name="anchor" type="Object" domElement="true">
/// </param>
/// <param name="evt" type="Sys.UI.DomEvent">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
evt.preventDefault();
Sys.Mvc.MvcHelpers._asyncRequest(anchor.href, 'post', '', anchor, ajaxOptions);
}
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.MvcHelpers
Sys.Mvc.MvcHelpers = function Sys_Mvc_MvcHelpers() {
}
Sys.Mvc.MvcHelpers._serializeForm = function Sys_Mvc_MvcHelpers$_serializeForm(form) {
/// <param name="form" type="Object" domElement="true">
/// </param>
/// <returns type="String"></returns>
var formElements = form.elements;
var formBody = new Sys.StringBuilder();
var count = formElements.length;
for (var i = 0; i < count; i++) {
var element = formElements[i];
var name = element.name;
if (!name || !name.length) {
continue;
}
var tagName = element.tagName.toUpperCase();
if (tagName === 'INPUT') {
var inputElement = element;
var type = inputElement.type;
if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) {
formBody.append(encodeURIComponent(name));
formBody.append('=');
formBody.append(encodeURIComponent(inputElement.value));
formBody.append('&');
}
}
else if (tagName === 'SELECT') {
var selectElement = element;
var optionCount = selectElement.options.length;
for (var j = 0; j < optionCount; j++) {
var optionElement = selectElement.options[j];
if (optionElement.selected) {
formBody.append(encodeURIComponent(name));
formBody.append('=');
formBody.append(encodeURIComponent(optionElement.value));
formBody.append('&');
}
}
}
else if (tagName === 'TEXTAREA') {
formBody.append(encodeURIComponent(name));
formBody.append('=');
formBody.append(encodeURIComponent((element.value)));
formBody.append('&');
}
}
return formBody.toString();
}
Sys.Mvc.MvcHelpers._asyncRequest = function Sys_Mvc_MvcHelpers$_asyncRequest(url, verb, body, triggerElement, ajaxOptions) {
/// <param name="url" type="String">
/// </param>
/// <param name="verb" type="String">
/// </param>
/// <param name="body" type="String">
/// </param>
/// <param name="triggerElement" type="Object" domElement="true">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
if (ajaxOptions.confirm) {
if (!confirm(ajaxOptions.confirm)) {
return;
}
}
if (ajaxOptions.url) {
url = ajaxOptions.url;
}
if (ajaxOptions.httpMethod) {
verb = ajaxOptions.httpMethod;
}
if (body.length > 0 && !body.endsWith('&')) {
body += '&';
}
body += 'X-Requested-With=XMLHttpRequest';
var requestBody = '';
if (verb.toUpperCase() === 'GET' || verb.toUpperCase() === 'DELETE') {
if (url.indexOf('?') > -1) {
if (!url.endsWith('&')) {
url += '&';
}
url += body;
}
else {
url += '?';
url += body;
}
}
else {
requestBody = body;
}
var request = new Sys.Net.WebRequest();
request.set_url(url);
request.set_httpVerb(verb);
request.set_body(requestBody);
if (verb.toUpperCase() === 'PUT') {
request.get_headers()['Content-Type'] = 'application/x-www-form-urlencoded;';
}
request.get_headers()['X-Requested-With'] = 'XMLHttpRequest';
var updateElement = null;
if (ajaxOptions.updateTargetId) {
updateElement = $get(ajaxOptions.updateTargetId);
}
var loadingElement = null;
if (ajaxOptions.loadingElementId) {
loadingElement = $get(ajaxOptions.loadingElementId);
}
var ajaxContext = new Sys.Mvc.AjaxContext(request, updateElement, loadingElement, ajaxOptions.insertionMode);
var continueRequest = true;
if (ajaxOptions.onBegin) {
continueRequest = ajaxOptions.onBegin(ajaxContext) !== false;
}
if (loadingElement) {
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), true);
}
if (continueRequest) {
request.add_completed(Function.createDelegate(null, function(executor) {
Sys.Mvc.MvcHelpers._onComplete(request, ajaxOptions, ajaxContext);
}));
request.invoke();
}
}
Sys.Mvc.MvcHelpers._onComplete = function Sys_Mvc_MvcHelpers$_onComplete(request, ajaxOptions, ajaxContext) {
/// <param name="request" type="Sys.Net.WebRequest">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
/// <param name="ajaxContext" type="Sys.Mvc.AjaxContext">
/// </param>
ajaxContext.set_response(request.get_executor());
if (ajaxOptions.onComplete && ajaxOptions.onComplete(ajaxContext) === false) {
return;
}
var statusCode = ajaxContext.get_response().get_statusCode();
if ((statusCode >= 200 && statusCode < 300) || statusCode === 304 || statusCode === 1223) {
if (statusCode !== 204 && statusCode !== 304 && statusCode !== 1223) {
var contentType = ajaxContext.get_response().getResponseHeader('Content-Type');
if ((contentType) && (contentType.indexOf('application/x-javascript') !== -1)) {
eval(ajaxContext.get_data());
}
else {
Sys.Mvc.MvcHelpers.updateDomElement(ajaxContext.get_updateTarget(), ajaxContext.get_insertionMode(), ajaxContext.get_data());
}
}
if (ajaxOptions.onSuccess) {
ajaxOptions.onSuccess(ajaxContext);
}
}
else {
if (ajaxOptions.onFailure) {
ajaxOptions.onFailure(ajaxContext);
}
}
if (ajaxContext.get_loadingElement()) {
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), false);
}
}
Sys.Mvc.MvcHelpers.updateDomElement = function Sys_Mvc_MvcHelpers$updateDomElement(target, insertionMode, content) {
/// <param name="target" type="Object" domElement="true">
/// </param>
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
/// </param>
/// <param name="content" type="String">
/// </param>
if (target) {
switch (insertionMode) {
case Sys.Mvc.InsertionMode.replace:
target.innerHTML = content;
break;
case Sys.Mvc.InsertionMode.insertBefore:
if (content && content.length > 0) {
target.innerHTML = content + target.innerHTML.trimStart();
}
break;
case Sys.Mvc.InsertionMode.insertAfter:
if (content && content.length > 0) {
target.innerHTML = target.innerHTML.trimEnd() + content;
}
break;
}
}
}
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AsyncForm
Sys.Mvc.AsyncForm = function Sys_Mvc_AsyncForm() {
}
Sys.Mvc.AsyncForm.handleSubmit = function Sys_Mvc_AsyncForm$handleSubmit(form, evt, ajaxOptions) {
/// <param name="form" type="Object" domElement="true">
/// </param>
/// <param name="evt" type="Sys.UI.DomEvent">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
evt.preventDefault();
var body = Sys.Mvc.MvcHelpers._serializeForm(form);
Sys.Mvc.MvcHelpers._asyncRequest(form.action, form.method || 'post', body, form, ajaxOptions);
}
Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');
Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');
Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');
Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm');
// ---- Do not remove this footer ----
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
// -----------------------------------
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftMvcAjax.js
Type.registerNamespace('Sys.Mvc');
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AjaxOptions
Sys.Mvc.$create_AjaxOptions = function Sys_Mvc_AjaxOptions() { return {}; }
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.InsertionMode
Sys.Mvc.InsertionMode = function() {
/// <field name="replace" type="Number" integer="true" static="true">
/// </field>
/// <field name="insertBefore" type="Number" integer="true" static="true">
/// </field>
/// <field name="insertAfter" type="Number" integer="true" static="true">
/// </field>
};
Sys.Mvc.InsertionMode.prototype = {
replace: 0,
insertBefore: 1,
insertAfter: 2
}
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode', false);
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AjaxContext
Sys.Mvc.AjaxContext = function Sys_Mvc_AjaxContext(request, updateTarget, loadingElement, insertionMode) {
/// <param name="request" type="Sys.Net.WebRequest">
/// </param>
/// <param name="updateTarget" type="Object" domElement="true">
/// </param>
/// <param name="loadingElement" type="Object" domElement="true">
/// </param>
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
/// </param>
/// <field name="_insertionMode" type="Sys.Mvc.InsertionMode">
/// </field>
/// <field name="_loadingElement" type="Object" domElement="true">
/// </field>
/// <field name="_response" type="Sys.Net.WebRequestExecutor">
/// </field>
/// <field name="_request" type="Sys.Net.WebRequest">
/// </field>
/// <field name="_updateTarget" type="Object" domElement="true">
/// </field>
this._request = request;
this._updateTarget = updateTarget;
this._loadingElement = loadingElement;
this._insertionMode = insertionMode;
}
Sys.Mvc.AjaxContext.prototype = {
_insertionMode: 0,
_loadingElement: null,
_response: null,
_request: null,
_updateTarget: null,
get_data: function Sys_Mvc_AjaxContext$get_data() {
/// <value type="String"></value>
if (this._response) {
return this._response.get_responseData();
}
else {
return null;
}
},
get_insertionMode: function Sys_Mvc_AjaxContext$get_insertionMode() {
/// <value type="Sys.Mvc.InsertionMode"></value>
return this._insertionMode;
},
get_loadingElement: function Sys_Mvc_AjaxContext$get_loadingElement() {
/// <value type="Object" domElement="true"></value>
return this._loadingElement;
},
get_response: function Sys_Mvc_AjaxContext$get_response() {
/// <value type="Sys.Net.WebRequestExecutor"></value>
return this._response;
},
set_response: function Sys_Mvc_AjaxContext$set_response(value) {
/// <value type="Sys.Net.WebRequestExecutor"></value>
this._response = value;
return value;
},
get_request: function Sys_Mvc_AjaxContext$get_request() {
/// <value type="Sys.Net.WebRequest"></value>
return this._request;
},
get_updateTarget: function Sys_Mvc_AjaxContext$get_updateTarget() {
/// <value type="Object" domElement="true"></value>
return this._updateTarget;
}
}
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AsyncHyperlink
Sys.Mvc.AsyncHyperlink = function Sys_Mvc_AsyncHyperlink() {
}
Sys.Mvc.AsyncHyperlink.handleClick = function Sys_Mvc_AsyncHyperlink$handleClick(anchor, evt, ajaxOptions) {
/// <param name="anchor" type="Object" domElement="true">
/// </param>
/// <param name="evt" type="Sys.UI.DomEvent">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
evt.preventDefault();
Sys.Mvc.MvcHelpers._asyncRequest(anchor.href, 'post', '', anchor, ajaxOptions);
}
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.MvcHelpers
Sys.Mvc.MvcHelpers = function Sys_Mvc_MvcHelpers() {
}
Sys.Mvc.MvcHelpers._serializeForm = function Sys_Mvc_MvcHelpers$_serializeForm(form) {
/// <param name="form" type="Object" domElement="true">
/// </param>
/// <returns type="String"></returns>
var formElements = form.elements;
var formBody = new Sys.StringBuilder();
var count = formElements.length;
for (var i = 0; i < count; i++) {
var element = formElements[i];
var name = element.name;
if (!name || !name.length) {
continue;
}
var tagName = element.tagName.toUpperCase();
if (tagName === 'INPUT') {
var inputElement = element;
var type = inputElement.type;
if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) {
formBody.append(encodeURIComponent(name));
formBody.append('=');
formBody.append(encodeURIComponent(inputElement.value));
formBody.append('&');
}
}
else if (tagName === 'SELECT') {
var selectElement = element;
var optionCount = selectElement.options.length;
for (var j = 0; j < optionCount; j++) {
var optionElement = selectElement.options[j];
if (optionElement.selected) {
formBody.append(encodeURIComponent(name));
formBody.append('=');
formBody.append(encodeURIComponent(optionElement.value));
formBody.append('&');
}
}
}
else if (tagName === 'TEXTAREA') {
formBody.append(encodeURIComponent(name));
formBody.append('=');
formBody.append(encodeURIComponent((element.value)));
formBody.append('&');
}
}
return formBody.toString();
}
Sys.Mvc.MvcHelpers._asyncRequest = function Sys_Mvc_MvcHelpers$_asyncRequest(url, verb, body, triggerElement, ajaxOptions) {
/// <param name="url" type="String">
/// </param>
/// <param name="verb" type="String">
/// </param>
/// <param name="body" type="String">
/// </param>
/// <param name="triggerElement" type="Object" domElement="true">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
if (ajaxOptions.confirm) {
if (!confirm(ajaxOptions.confirm)) {
return;
}
}
if (ajaxOptions.url) {
url = ajaxOptions.url;
}
if (ajaxOptions.httpMethod) {
verb = ajaxOptions.httpMethod;
}
if (body.length > 0 && !body.endsWith('&')) {
body += '&';
}
body += 'X-Requested-With=XMLHttpRequest';
var requestBody = '';
if (verb.toUpperCase() === 'GET' || verb.toUpperCase() === 'DELETE') {
if (url.indexOf('?') > -1) {
if (!url.endsWith('&')) {
url += '&';
}
url += body;
}
else {
url += '?';
url += body;
}
}
else {
requestBody = body;
}
var request = new Sys.Net.WebRequest();
request.set_url(url);
request.set_httpVerb(verb);
request.set_body(requestBody);
if (verb.toUpperCase() === 'PUT') {
request.get_headers()['Content-Type'] = 'application/x-www-form-urlencoded;';
}
request.get_headers()['X-Requested-With'] = 'XMLHttpRequest';
var updateElement = null;
if (ajaxOptions.updateTargetId) {
updateElement = $get(ajaxOptions.updateTargetId);
}
var loadingElement = null;
if (ajaxOptions.loadingElementId) {
loadingElement = $get(ajaxOptions.loadingElementId);
}
var ajaxContext = new Sys.Mvc.AjaxContext(request, updateElement, loadingElement, ajaxOptions.insertionMode);
var continueRequest = true;
if (ajaxOptions.onBegin) {
continueRequest = ajaxOptions.onBegin(ajaxContext) !== false;
}
if (loadingElement) {
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), true);
}
if (continueRequest) {
request.add_completed(Function.createDelegate(null, function(executor) {
Sys.Mvc.MvcHelpers._onComplete(request, ajaxOptions, ajaxContext);
}));
request.invoke();
}
}
Sys.Mvc.MvcHelpers._onComplete = function Sys_Mvc_MvcHelpers$_onComplete(request, ajaxOptions, ajaxContext) {
/// <param name="request" type="Sys.Net.WebRequest">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
/// <param name="ajaxContext" type="Sys.Mvc.AjaxContext">
/// </param>
ajaxContext.set_response(request.get_executor());
if (ajaxOptions.onComplete && ajaxOptions.onComplete(ajaxContext) === false) {
return;
}
var statusCode = ajaxContext.get_response().get_statusCode();
if ((statusCode >= 200 && statusCode < 300) || statusCode === 304 || statusCode === 1223) {
if (statusCode !== 204 && statusCode !== 304 && statusCode !== 1223) {
var contentType = ajaxContext.get_response().getResponseHeader('Content-Type');
if ((contentType) && (contentType.indexOf('application/x-javascript') !== -1)) {
eval(ajaxContext.get_data());
}
else {
Sys.Mvc.MvcHelpers.updateDomElement(ajaxContext.get_updateTarget(), ajaxContext.get_insertionMode(), ajaxContext.get_data());
}
}
if (ajaxOptions.onSuccess) {
ajaxOptions.onSuccess(ajaxContext);
}
}
else {
if (ajaxOptions.onFailure) {
ajaxOptions.onFailure(ajaxContext);
}
}
if (ajaxContext.get_loadingElement()) {
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), false);
}
}
Sys.Mvc.MvcHelpers.updateDomElement = function Sys_Mvc_MvcHelpers$updateDomElement(target, insertionMode, content) {
/// <param name="target" type="Object" domElement="true">
/// </param>
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
/// </param>
/// <param name="content" type="String">
/// </param>
if (target) {
switch (insertionMode) {
case Sys.Mvc.InsertionMode.replace:
target.innerHTML = content;
break;
case Sys.Mvc.InsertionMode.insertBefore:
if (content && content.length > 0) {
target.innerHTML = content + target.innerHTML.trimStart();
}
break;
case Sys.Mvc.InsertionMode.insertAfter:
if (content && content.length > 0) {
target.innerHTML = target.innerHTML.trimEnd() + content;
}
break;
}
}
}
////////////////////////////////////////////////////////////////////////////////
// Sys.Mvc.AsyncForm
Sys.Mvc.AsyncForm = function Sys_Mvc_AsyncForm() {
}
Sys.Mvc.AsyncForm.handleSubmit = function Sys_Mvc_AsyncForm$handleSubmit(form, evt, ajaxOptions) {
/// <param name="form" type="Object" domElement="true">
/// </param>
/// <param name="evt" type="Sys.UI.DomEvent">
/// </param>
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
/// </param>
evt.preventDefault();
var body = Sys.Mvc.MvcHelpers._serializeForm(form);
Sys.Mvc.MvcHelpers._asyncRequest(form.action, form.method || 'post', body, form, ajaxOptions);
}
Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');
Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');
Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');
Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm');
// ---- Do not remove this footer ----
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
// -----------------------------------

View file

@ -1,4 +1,4 @@
Type.registerNamespace('Sys.Mvc');Sys.Mvc.$create_AjaxOptions=function(){return {};}
Sys.Mvc.InsertionMode=function(){};Sys.Mvc.InsertionMode.prototype = {replace:0,insertBefore:1,insertAfter:2}
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode',false);Sys.Mvc.AjaxContext=function(request,updateTarget,loadingElement,insertionMode){this.$3=request;this.$4=updateTarget;this.$1=loadingElement;this.$0=insertionMode;}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,25 +1,25 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Host a Dinner</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<% Html.RenderPartial("DinnerForm") %>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Host a Dinner</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<% Html.RenderPartial("DinnerForm") %>
</div>
</div>
</body>
</html>

View file

@ -1,39 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Delete Confirmation: <%=Html.Encode(Model.Title) %></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>
Delete Confirmation
</h2>
<div>
<p>Please confirm you want to cancel the dinner titled:
<i> <%=Html.Encode(Model.Title) %>? </i> </p>
</div>
<% dim myForm
myForm = Html.BeginForm() %>
<input name="confirmButton" type="submit" value="Delete" />
<% myForm.dispose() %>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Delete Confirmation: <%=Html.Encode(Model.Title) %></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>
Delete Confirmation
</h2>
<div>
<p>Please confirm you want to cancel the dinner titled:
<i> <%=Html.Encode(Model.Title) %>? </i> </p>
</div>
<% dim myForm
myForm = Html.BeginForm() %>
<input name="confirmButton" type="submit" value="Delete" />
<% myForm.dispose() %>
</div>
</div>
</body>
</html>

View file

@ -1,33 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Deleted</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Dinner Deleted</h2>
<div>
<p>Your dinner was successfully deleted.</p>
</div>
<div>
<p><a href="/dinners">Click for Upcoming Dinners</a></p>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Deleted</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Dinner Deleted</h2>
<div>
<p>Your dinner was successfully deleted.</p>
</div>
<div>
<p><a href="/dinners">Click for Upcoming Dinners</a></p>
</div>
</div>
</div>
</body>
</html>

View file

@ -1,57 +1,57 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title><%= Html.Encode(Model.Title) %></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<div id="dinnerDiv">
<h2><%= Html.Encode(Model.Title) %></h2>
<p>
<strong>When:</strong>
<%= Model.EventDate.ToShortDateString() %>
<strong>@</strong>
<%= Model.EventDate.ToShortTimeString() %>
</p>
<p>
<strong>Where:</strong>
<%= Html.Encode(Model.Address) %>,
<%= Html.Encode(Model.Country) %>
</p>
<p>
<strong>Description:</strong>
<%= Html.Encode(Model.Description) %>
</p>
<p>
<strong>Organizer:</strong>
<%= Html.Encode(Model.HostedBy) %>
(<%= Html.Encode(Model.ContactPhone) %>)
</p>
<% Html.RenderPartial("RSVPStatus"); %>
<% Html.RenderPartial("EditAndDeleteLinks"); %>
</div>
<div id="mapDiv">
<% Html.RenderPartial("map"); %>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title><%= Html.Encode(Model.Title) %></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<div id="dinnerDiv">
<h2><%= Html.Encode(Model.Title) %></h2>
<p>
<strong>When:</strong>
<%= Model.EventDate.ToShortDateString() %>
<strong>@</strong>
<%= Model.EventDate.ToShortTimeString() %>
</p>
<p>
<strong>Where:</strong>
<%= Html.Encode(Model.Address) %>,
<%= Html.Encode(Model.Country) %>
</p>
<p>
<strong>Description:</strong>
<%= Html.Encode(Model.Description) %>
</p>
<p>
<strong>Organizer:</strong>
<%= Html.Encode(Model.HostedBy) %>
(<%= Html.Encode(Model.ContactPhone) %>)
</p>
<% Html.RenderPartial("RSVPStatus"); %>
<% Html.RenderPartial("EditAndDeleteLinks"); %>
</div>
<div id="mapDiv">
<% Html.RenderPartial("map"); %>
</div>
</div>
</div>
</body>
</html>

View file

@ -1,27 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Edit: <%=Html.Encode(Model.Dinner.Title) %></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Edit Dinner</h2>
<% Html.RenderPartial("DinnerForm"); %>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Edit: <%=Html.Encode(Model.Dinner.Title) %></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Edit Dinner</h2>
<% Html.RenderPartial("DinnerForm"); %>
</div>
</div>
</body>
</html>

View file

@ -1,62 +1,62 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Upcoming Dinners</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>
Upcoming Dinners
</h2>
<ul>
<% dim dinner
for each dinner in Model %>
<li>
<%= Html.ActionLink(dinner.Title, "Details", Html.RouteValue("id", dinner.DinnerID)) %>
on
<%= Html.Encode(dinner.EventDate.ToShortDateString())%>
@
<%= Html.Encode(dinner.EventDate.ToShortTimeString())%>
</li>
<% next %>
</ul>
<div class="pagination">
<% if Model.HasPreviousPage then %>
<%= Html.RouteLink("<<<", "UpcomingDinners", Html.RouteValue("page", Model.PageIndex-1)) %>
<% end if %>
<% if Model.HasNextPage then %>
<%= Html.RouteLink(">>>", "UpcomingDinners", Html.RouteValue("page", Model.PageIndex+1)) %>
<% end if %>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Upcoming Dinners</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>
Upcoming Dinners
</h2>
<ul>
<% dim dinner
for each dinner in Model %>
<li>
<%= Html.ActionLink(dinner.Title, "Details", Html.RouteValue("id", dinner.DinnerID)) %>
on
<%= Html.Encode(dinner.EventDate.ToShortDateString())%>
@
<%= Html.Encode(dinner.EventDate.ToShortTimeString())%>
</li>
<% next %>
</ul>
<div class="pagination">
<% if Model.HasPreviousPage then %>
<%= Html.RouteLink("<<<", "UpcomingDinners", Html.RouteValue("page", Model.PageIndex-1)) %>
<% end if %>
<% if Model.HasNextPage then %>
<%= Html.RouteLink(">>>", "UpcomingDinners", Html.RouteValue("page", Model.PageIndex+1)) %>
<% end if %>
</div>
</div>
</div>
</body>
</html>

View file

@ -1,27 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>You Don't Own This Dinner</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Error Accessing Dinner</h2>
<p>Sorry - but only the host of a Dinner can edit or delete it.</p>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>You Don't Own This Dinner</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Error Accessing Dinner</h2>
<p>Sorry - but only the host of a Dinner can edit or delete it.</p>
</div>
</div>
</body>
</html>

View file

@ -1,28 +1,28 @@
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
<script src="/Scripts/Map.js" type="text/javascript"></script>
<div id="theMap" style="width:520px">
</div>
<script type="text/javascript">
$(document).ready(function() {
var latitude = <%=Model.Latitude %>;
var longitude = <%=Model.Longitude %>;
if ((latitude == 0) || (longitude == 0))
LoadMap();
else
LoadMap(latitude, longitude, mapLoaded);
});
function mapLoaded() {
var title = "<%= Html.Encode(Model.Title) %>";
var address = "<%= Html.Encode(Model.Address) %>";
LoadPin(center, title, address);
map.SetZoomLevel(14);
}
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
<script src="/Scripts/Map.js" type="text/javascript"></script>
<div id="theMap" style="width:520px">
</div>
<script type="text/javascript">
$(document).ready(function() {
var latitude = <%=Model.Latitude %>;
var longitude = <%=Model.Longitude %>;
if ((latitude == 0) || (longitude == 0))
LoadMap();
else
LoadMap(latitude, longitude, mapLoaded);
});
function mapLoaded() {
var title = "<%= Html.Encode(Model.Title) %>";
var address = "<%= Html.Encode(Model.Address) %>";
LoadPin(center, title, address);
map.SetZoomLevel(14);
}
</script>

View file

@ -1,29 +1,29 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Dinner Not Found</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Dinner Not Found</h2>
<p>Sorry - but the dinner you requested doesn't exist or was deleted.</p>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Dinner Not Found</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>Dinner Not Found</h2>
<p>Sorry - but the dinner you requested doesn't exist or was deleted.</p>
</div>
</div>
</body>
</html>

View file

@ -1,35 +1,35 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>About</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>What is NerdDinner.com?</h2>
<p>
<p><img src="/Content/nerd.jpg" align="left" height="200" style="padding-right:20px" />Are you a huge nerd? Perhaps a geek? No? Maybe a dork, dweeb or wonk.
Quite possibly you're just a normal person. Either way, you're a social being. You need to get out for a bite
to eat occasionally, preferably with folks that are like you.</p>
<p>Enter <a href="http://www.nerddinner.com">NerdDinner.com</a>, for all your event planning needs. We're focused on one thing. Organizing the world's
nerds and helping them eat in packs. </p>
<p>We're free and fun. <a href="/">Find a dinner near you</a>, or <a href="/dinners/create">host a dinner</a>. Be social.</p>
<p>We also have blog badges and widgets that you can install on your blog or website so your readers can get
involved in the Nerd Dinner movement. Well, it's not really a movement. Mostly just geeks in a food court, but still.</p>
</p>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>About</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<h2>What is NerdDinner.com?</h2>
<p>
<p><img src="/Content/nerd.jpg" align="left" height="200" style="padding-right:20px" />Are you a huge nerd? Perhaps a geek? No? Maybe a dork, dweeb or wonk.
Quite possibly you're just a normal person. Either way, you're a social being. You need to get out for a bite
to eat occasionally, preferably with folks that are like you.</p>
<p>Enter <a href="http://www.nerddinner.com">NerdDinner.com</a>, for all your event planning needs. We're focused on one thing. Organizing the world's
nerds and helping them eat in packs. </p>
<p>We're free and fun. <a href="/">Find a dinner near you</a>, or <a href="/dinners/create">host a dinner</a>. Be social.</p>
<p>We also have blog badges and widgets that you can install on your blog or website so your readers can get
involved in the Nerd Dinner movement. Well, it's not really a movement. Mostly just geeks in a food court, but still.</p>
</p>
</div>
</div>
</body>
</html>

View file

@ -1,60 +1,60 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Find a Dinner</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
<script src="/Scripts/Map.js" type="text/javascript"></script>
<h2>Find a Dinner</h2>
<div id="mapDivLeft">
<div id="searchBox">
Enter your location: <%= Html.TextBox("Location") %> or <%= Html.ActionLink("View All Upcoming Dinners", "Index", "Dinners") %>.
<input id="search" type="submit" value="Search" />
</div>
<div id="theMap">
</div>
</div>
<div id="mapDivRight">
<div id="dinnerList"></div>
</div>
<script type="text/javascript">
$(document).ready(function() {
LoadMap();
});
$("#search").click(function(evt) {
var where = jQuery.trim($("#Location").val());
if (where.length < 1)
return;
FindDinnersGivenLocation(where);
});
</script>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Find a Dinner</title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
<script src="/Scripts/Map.js" type="text/javascript"></script>
<h2>Find a Dinner</h2>
<div id="mapDivLeft">
<div id="searchBox">
Enter your location: <%= Html.TextBox("Location") %> or <%= Html.ActionLink("View All Upcoming Dinners", "Index", "Dinners") %>.
<input id="search" type="submit" value="Search" />
</div>
<div id="theMap">
</div>
</div>
<div id="mapDivRight">
<div id="dinnerList"></div>
</div>
<script type="text/javascript">
$(document).ready(function() {
LoadMap();
});
$("#search").click(function(evt) {
var where = jQuery.trim($("#Location").val());
if (where.length < 1)
return;
FindDinnersGivenLocation(where);
});
</script>
</div>
</div>
</body>
</html>

View file

@ -1,14 +1,14 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
if (Request.IsAuthenticated) {
%>
Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
[ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
<%
}
else {
%>
[ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ]
<%
}
%>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
if (Request.IsAuthenticated) {
%>
Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
[ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
<%
}
else {
%>
[ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ]
<%
}
%>

View file

@ -1,17 +1,17 @@
 <div id="header">
<div id="title">
<h1>NerdDinner</h1>
</div>
<div id="logindisplay">
<% Html.RenderPartial("LoginStatus") %>
</div>
<div id="menucontainer">
<ul id="menu">
<li><%= Html.ActionLink("Find Dinner", "Index", "Home")%></li>
<li><%= Html.ActionLink("Host Dinner", "Create", "Dinners")%></li>
<li><%= Html.ActionLink("About", "About", "Home")%></li>
</ul>
</div>
 <div id="header">
<div id="title">
<h1>NerdDinner</h1>
</div>
<div id="logindisplay">
<% Html.RenderPartial("LoginStatus") %>
</div>
<div id="menucontainer">
<ul id="menu">
<li><%= Html.ActionLink("Find Dinner", "Index", "Home")%></li>
<li><%= Html.ActionLink("Host Dinner", "Create", "Dinners")%></li>
<li><%= Html.ActionLink("About", "About", "Home")%></li>
</ul>
</div>
</div>

View file

@ -1,25 +1,25 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
<div class="page">
<% Html.RenderPartial("header") %>
<div id="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
</div>
</body>
</html>

View file

@ -1,34 +1,34 @@
<?xml version="1.0"?>
<configuration>
<system.web>
<httpHandlers>
<add path="*" verb="*"
type="System.Web.HttpNotFoundHandler"/>
</httpHandlers>
<!--
Enabling request validation in view pages would cause validation to occur
after the input has already been processed by the controller. By default
MVC performs request validation before a controller processes the input.
To change this behavior apply the ValidateInputAttribute to a
controller or action.
-->
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler"/>
</handlers>
</system.webServer>
</configuration>
<?xml version="1.0"?>
<configuration>
<system.web>
<httpHandlers>
<add path="*" verb="*"
type="System.Web.HttpNotFoundHandler"/>
</httpHandlers>
<!--
Enabling request validation in view pages would cause validation to occur
after the input has already been processed by the controller. By default
MVC performs request validation before a controller processes the input.
To change this behavior apply the ValidateInputAttribute to a
controller or action.
-->
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler"/>
</handlers>
</system.webServer>
</configuration>

View file

@ -1,156 +1,156 @@
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings configSource="ConnectionStrings.config" />
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms">
<forms loginUrl="~/Account/Logon" />
</authentication>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear />
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<customErrors mode="Off" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</controls>
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Linq" />
<add namespace="System.Collections.Generic" />
</namespaces>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="WarnAsError" value="false" />
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="OptionInfer" value="true" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="ScriptModule" />
<remove name="UrlRoutingModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<remove name="MvcHttpHandler" />
<remove name="UrlRoutingHandler" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</assemblyBinding>
</runtime>
<appSettings>
<add key="microsoft.visualstudio.teamsystems.backupinfo" value="6;web.config.backup" />
</appSettings>
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings configSource="ConnectionStrings.config" />
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms">
<forms loginUrl="~/Account/Logon" />
</authentication>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear />
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<customErrors mode="Off" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</controls>
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Linq" />
<add namespace="System.Collections.Generic" />
</namespaces>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="WarnAsError" value="false" />
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="OptionInfer" value="true" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="ScriptModule" />
<remove name="UrlRoutingModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<remove name="MvcHttpHandler" />
<remove name="UrlRoutingHandler" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</assemblyBinding>
</runtime>
<appSettings>
<add key="microsoft.visualstudio.teamsystems.backupinfo" value="6;web.config.backup" />
</appSettings>
</configuration>

View file

@ -1,57 +1,57 @@
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' An external checksum for a file.
''' </summary>
Public NotInheritable Class ExternalChecksum
Private ReadOnly _Filename As String
Private ReadOnly _Guid As String
Private ReadOnly _Checksum As String
''' <summary>
''' The filename that the checksum is for.
''' </summary>
Public ReadOnly Property Filename() As String
Get
Return _Filename
End Get
End Property
''' <summary>
''' The guid of the file.
''' </summary>
Public ReadOnly Property Guid() As String
Get
Return _Guid
End Get
End Property
''' <summary>
''' The checksum for the file.
''' </summary>
Public ReadOnly Property Checksum() As String
Get
Return _Checksum
End Get
End Property
''' <summary>
''' Constructs a new external checksum.
''' </summary>
''' <param name="filename">The filename that the checksum is for.</param>
''' <param name="guid">The guid of the file.</param>
''' <param name="checksum">The checksum for the file.</param>
Public Sub New(ByVal filename As String, ByVal guid As String, ByVal checksum As String)
_Filename = filename
_Guid = guid
_Checksum = checksum
End Sub
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' An external checksum for a file.
''' </summary>
Public NotInheritable Class ExternalChecksum
Private ReadOnly _Filename As String
Private ReadOnly _Guid As String
Private ReadOnly _Checksum As String
''' <summary>
''' The filename that the checksum is for.
''' </summary>
Public ReadOnly Property Filename() As String
Get
Return _Filename
End Get
End Property
''' <summary>
''' The guid of the file.
''' </summary>
Public ReadOnly Property Guid() As String
Get
Return _Guid
End Get
End Property
''' <summary>
''' The checksum for the file.
''' </summary>
Public ReadOnly Property Checksum() As String
Get
Return _Checksum
End Get
End Property
''' <summary>
''' Constructs a new external checksum.
''' </summary>
''' <param name="filename">The filename that the checksum is for.</param>
''' <param name="guid">The guid of the file.</param>
''' <param name="checksum">The checksum for the file.</param>
Public Sub New(ByVal filename As String, ByVal guid As String, ByVal checksum As String)
_Filename = filename
_Guid = guid
_Checksum = checksum
End Sub
End Class

View file

@ -1,68 +1,68 @@
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' A line mapping from a source span to an external file and line.
''' </summary>
Public NotInheritable Class ExternalLineMapping
Private ReadOnly _Start, _Finish As Location
Private ReadOnly _File As String
Private ReadOnly _Line As Long
''' <summary>
''' The start location of the mapping in the source.
''' </summary>
Public ReadOnly Property Start() As Location
Get
Return _Start
End Get
End Property
''' <summary>
''' The end location of the mapping in the source.
''' </summary>
Public ReadOnly Property Finish() As Location
Get
Return _Finish
End Get
End Property
''' <summary>
''' The external file the source maps to.
''' </summary>
Public ReadOnly Property File() As String
Get
Return _File
End Get
End Property
''' <summary>
''' The external line number the source maps to.
''' </summary>
Public ReadOnly Property Line() As Long
Get
Return _Line
End Get
End Property
''' <summary>
''' Constructs a new external line mapping.
''' </summary>
''' <param name="start">The start location in the source.</param>
''' <param name="finish">The end location in the source.</param>
''' <param name="file">The name of the external file.</param>
''' <param name="line">The line number in the external file.</param>
Public Sub New(ByVal start As Location, ByVal finish As Location, ByVal file As String, ByVal line As Long)
_Start = start
_Finish = finish
_File = file
_Line = line
End Sub
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' A line mapping from a source span to an external file and line.
''' </summary>
Public NotInheritable Class ExternalLineMapping
Private ReadOnly _Start, _Finish As Location
Private ReadOnly _File As String
Private ReadOnly _Line As Long
''' <summary>
''' The start location of the mapping in the source.
''' </summary>
Public ReadOnly Property Start() As Location
Get
Return _Start
End Get
End Property
''' <summary>
''' The end location of the mapping in the source.
''' </summary>
Public ReadOnly Property Finish() As Location
Get
Return _Finish
End Get
End Property
''' <summary>
''' The external file the source maps to.
''' </summary>
Public ReadOnly Property File() As String
Get
Return _File
End Get
End Property
''' <summary>
''' The external line number the source maps to.
''' </summary>
Public ReadOnly Property Line() As Long
Get
Return _Line
End Get
End Property
''' <summary>
''' Constructs a new external line mapping.
''' </summary>
''' <param name="start">The start location in the source.</param>
''' <param name="finish">The end location in the source.</param>
''' <param name="file">The name of the external file.</param>
''' <param name="line">The line number in the external file.</param>
Public Sub New(ByVal start As Location, ByVal finish As Location, ByVal file As String, ByVal line As Long)
_Start = start
_Finish = finish
_File = file
_Line = line
End Sub
End Class

View file

@ -1,24 +1,24 @@
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' The numeric base of an integer literal.
''' </summary>
Public Enum IntegerBase
''' <summary>Base 10.</summary>
[Decimal]
''' <summary>Base 8.</summary>
Octal
''' <summary>Base 16.</summary>
Hexadecimal
End Enum
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' The numeric base of an integer literal.
''' </summary>
Public Enum IntegerBase
''' <summary>Base 10.</summary>
[Decimal]
''' <summary>Base 8.</summary>
Octal
''' <summary>Base 16.</summary>
Hexadecimal
End Enum

View file

@ -1,27 +1,27 @@
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' The version of the language you want.
''' </summary>
<Flags()> _
Public Enum LanguageVersion
None = &H0
''' <summary>Visual Basic 7.1</summary>
''' <remarks>Shipped in Visual Basic 2003</remarks>
VisualBasic71 = &H1
''' <summary>Visual Basic 8.0</summary>
''' <remarks>Shipped in Visual Basic 2005</remarks>
VisualBasic80 = &H2
All = &H3
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' The version of the language you want.
''' </summary>
<Flags()> _
Public Enum LanguageVersion
None = &H0
''' <summary>Visual Basic 7.1</summary>
''' <remarks>Shipped in Visual Basic 2003</remarks>
VisualBasic71 = &H1
''' <summary>Visual Basic 8.0</summary>
''' <remarks>Shipped in Visual Basic 2005</remarks>
VisualBasic80 = &H2
All = &H3
End Enum

View file

@ -1,48 +1,48 @@
Shared Source License for VBParser
This license governs use of the accompanying software ('Software'), and your
use of the Software constitutes acceptance of this license.
You may use the Software for any commercial or noncommercial purpose,
including distributing derivative works.
In return, we simply require that you agree:
1. Not to remove any copyright or other notices from the Software.
2. That if you distribute the Software in source code form you do so only
under this license (i.e. you must include a complete copy of this license
with your distribution), and if you distribute the Software solely in
object form you only do so under a license that complies with this
license.
3. That the Software comes "as is", with no warranties. None whatsoever.
This means no express, implied or statutory warranty, including without
limitation, warranties of merchantability or fitness for a particular
purpose or any warranty of title or non-infringement. Also, you must pass
this disclaimer on whenever you distribute the Software or derivative
works.
4. That no contributor to the Software will be liable for any of those types
of damages known as indirect, special, consequential, or incidental
related to the Software or this license, to the maximum extent the law
permits, no matter what legal theory its based on. Also, you must pass
this limitation of liability on whenever you distribute the Software or
derivative works.
5. That if you sue anyone over patents that you think may apply to the
Software for a person's use of the Software, your license to the Software
ends automatically.
6. That the patent rights, if any, granted in this license only apply to the
Software, not to any derivative works you make.
7. That the Software is subject to U.S. export jurisdiction at the time it
is licensed to you, and it may be subject to additional export or import
laws in other places. You agree to comply with all such laws and
regulations that may apply to the Software after delivery of the software
to you.
8. That if you are an agency of the U.S. Government, (i) Software provided
pursuant to a solicitation issued on or after December 1, 1995, is
provided with the commercial license rights set forth in this license,
and (ii) Software provided pursuant to a solicitation issued prior to
December 1, 1995, is provided with “Restricted Rights” as set forth in
FAR, 48 C.F.R. 52.227-14 (June 1987) or DFAR, 48 C.F.R. 252.227-7013
(Oct 1988), as applicable.
9. That your rights under this License end automatically if you breach it in
any way.
10.That all rights not expressly granted to you in this license are reserved.
Shared Source License for VBParser
This license governs use of the accompanying software ('Software'), and your
use of the Software constitutes acceptance of this license.
You may use the Software for any commercial or noncommercial purpose,
including distributing derivative works.
In return, we simply require that you agree:
1. Not to remove any copyright or other notices from the Software.
2. That if you distribute the Software in source code form you do so only
under this license (i.e. you must include a complete copy of this license
with your distribution), and if you distribute the Software solely in
object form you only do so under a license that complies with this
license.
3. That the Software comes "as is", with no warranties. None whatsoever.
This means no express, implied or statutory warranty, including without
limitation, warranties of merchantability or fitness for a particular
purpose or any warranty of title or non-infringement. Also, you must pass
this disclaimer on whenever you distribute the Software or derivative
works.
4. That no contributor to the Software will be liable for any of those types
of damages known as indirect, special, consequential, or incidental
related to the Software or this license, to the maximum extent the law
permits, no matter what legal theory its based on. Also, you must pass
this limitation of liability on whenever you distribute the Software or
derivative works.
5. That if you sue anyone over patents that you think may apply to the
Software for a person's use of the Software, your license to the Software
ends automatically.
6. That the patent rights, if any, granted in this license only apply to the
Software, not to any derivative works you make.
7. That the Software is subject to U.S. export jurisdiction at the time it
is licensed to you, and it may be subject to additional export or import
laws in other places. You agree to comply with all such laws and
regulations that may apply to the Software after delivery of the software
to you.
8. That if you are an agency of the U.S. Government, (i) Software provided
pursuant to a solicitation issued on or after December 1, 1995, is
provided with the commercial license rights set forth in this license,
and (ii) Software provided pursuant to a solicitation issued prior to
December 1, 1995, is provided with “Restricted Rights” as set forth in
FAR, 48 C.F.R. 52.227-14 (June 1987) or DFAR, 48 C.F.R. 252.227-7013
(Oct 1988), as applicable.
9. That your rights under this License end automatically if you breach it in
any way.
10.That all rights not expressly granted to you in this license are reserved.

View file

@ -1,160 +1,160 @@
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' Stores source code line and column information.
''' </summary>
Public Structure Location
Private ReadOnly _Index As Integer
Private ReadOnly _Line As Integer
Private ReadOnly _Column As Integer
''' <summary>
''' The index in the stream (0-based).
''' </summary>
Public ReadOnly Property Index() As Integer
Get
Return _Index
End Get
End Property
''' <summary>
''' The physical line number (1-based).
''' </summary>
Public ReadOnly Property Line() As Integer
Get
Return _Line
End Get
End Property
''' <summary>
''' The physical column number (1-based).
''' </summary>
Public ReadOnly Property Column() As Integer
Get
Return _Column
End Get
End Property
''' <summary>
''' Whether the location is a valid location.
''' </summary>
Public ReadOnly Property IsValid() As Boolean
Get
Return Line <> 0 AndAlso Column <> 0
End Get
End Property
''' <summary>
''' Constructs a new Location for a particular source location.
''' </summary>
''' <param name="index">The index in the stream (0-based).</param>
''' <param name="line">The physical line number (1-based).</param>
''' <param name="column">The physical column number (1-based).</param>
Public Sub New(ByVal index As Integer, ByVal line As Integer, ByVal column As Integer)
_Index = index
_Line = line
_Column = column
End Sub
''' <summary>
''' Compares two specified Location values to see if they are equal.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the locations are the same, False otherwise.</returns>
Public Shared Operator =(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index = right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if they are not equal.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the locations are not the same, False otherwise.</returns>
Public Shared Operator <>(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index <> right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is before the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is before the other location, False otherwise.</returns>
Public Shared Operator <(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index < right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is after the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is after the other location, False otherwise.</returns>
Public Shared Operator >(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index > right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is before or the same as the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is before or the same as the other location, False otherwise.</returns>
Public Shared Operator <=(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index <= right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is after or the same as the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is after or the same as the other location, False otherwise.</returns>
Public Shared Operator >=(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index >= right.Index
End Operator
''' <summary>
''' Compares two specified Location values.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>0 if the locations are equal, -1 if the left one is less than the right one, 1 otherwise.</returns>
Public Shared Function Compare(ByVal left As Location, ByVal right As Location) As Integer
If left = right Then
Return 0
ElseIf left < right Then
Return -1
Else
Return 1
End If
End Function
Public Overrides Function ToString() As String
Return "(" & Me.Column & "," & Me.Line & ")"
End Function
Public Overrides Function Equals(ByVal obj As Object) As Boolean
If TypeOf obj Is Location Then
Return Me = DirectCast(obj, Location)
Else
Return False
End If
End Function
Public Overrides Function GetHashCode() As Integer
' Mask off the upper 32 bits of the index and use that as
' the hash code.
Return CInt(Index And &HFFFFFFFFL)
End Function
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
''' <summary>
''' Stores source code line and column information.
''' </summary>
Public Structure Location
Private ReadOnly _Index As Integer
Private ReadOnly _Line As Integer
Private ReadOnly _Column As Integer
''' <summary>
''' The index in the stream (0-based).
''' </summary>
Public ReadOnly Property Index() As Integer
Get
Return _Index
End Get
End Property
''' <summary>
''' The physical line number (1-based).
''' </summary>
Public ReadOnly Property Line() As Integer
Get
Return _Line
End Get
End Property
''' <summary>
''' The physical column number (1-based).
''' </summary>
Public ReadOnly Property Column() As Integer
Get
Return _Column
End Get
End Property
''' <summary>
''' Whether the location is a valid location.
''' </summary>
Public ReadOnly Property IsValid() As Boolean
Get
Return Line <> 0 AndAlso Column <> 0
End Get
End Property
''' <summary>
''' Constructs a new Location for a particular source location.
''' </summary>
''' <param name="index">The index in the stream (0-based).</param>
''' <param name="line">The physical line number (1-based).</param>
''' <param name="column">The physical column number (1-based).</param>
Public Sub New(ByVal index As Integer, ByVal line As Integer, ByVal column As Integer)
_Index = index
_Line = line
_Column = column
End Sub
''' <summary>
''' Compares two specified Location values to see if they are equal.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the locations are the same, False otherwise.</returns>
Public Shared Operator =(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index = right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if they are not equal.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the locations are not the same, False otherwise.</returns>
Public Shared Operator <>(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index <> right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is before the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is before the other location, False otherwise.</returns>
Public Shared Operator <(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index < right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is after the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is after the other location, False otherwise.</returns>
Public Shared Operator >(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index > right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is before or the same as the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is before or the same as the other location, False otherwise.</returns>
Public Shared Operator <=(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index <= right.Index
End Operator
''' <summary>
''' Compares two specified Location values to see if one is after or the same as the other.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>True if the first location is after or the same as the other location, False otherwise.</returns>
Public Shared Operator >=(ByVal left As Location, ByVal right As Location) As Boolean
Return left.Index >= right.Index
End Operator
''' <summary>
''' Compares two specified Location values.
''' </summary>
''' <param name="left">One location to compare.</param>
''' <param name="right">The other location to compare.</param>
''' <returns>0 if the locations are equal, -1 if the left one is less than the right one, 1 otherwise.</returns>
Public Shared Function Compare(ByVal left As Location, ByVal right As Location) As Integer
If left = right Then
Return 0
ElseIf left < right Then
Return -1
Else
Return 1
End If
End Function
Public Overrides Function ToString() As String
Return "(" & Me.Column & "," & Me.Line & ")"
End Function
Public Overrides Function Equals(ByVal obj As Object) As Boolean
If TypeOf obj Is Location Then
Return Me = DirectCast(obj, Location)
Else
Return False
End If
End Function
Public Overrides Function GetHashCode() As Integer
' Mask off the upper 32 bits of the index and use that as
' the hash code.
Return CInt(Index And &HFFFFFFFFL)
End Function
End Structure

View file

@ -1,13 +1,13 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:2.0.50727.4005
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:2.0.50727.4005
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On

File diff suppressed because it is too large Load diff

View file

@ -1,468 +1,468 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{57A0B340-BDA4-4DE3-B449-52B8C51D84B8}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>Dlrsoft.VBParser</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>On</OptionStrict>
<RootNamespace>Dlrsoft.VBScript.Parser</RootNamespace>
<StartupObject>VBParser.(None)</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\bin\Debug</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
<RunCodeAnalysis>false</RunCodeAnalysis>
<CodeAnalysisRules>
</CodeAnalysisRules>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\bin\Release\</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>bin\x86\Debug\</OutputPath>
<BaseAddress>285212672</BaseAddress>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DefineTrace>true</DefineTrace>
<OutputPath>bin\x86\Release\</OutputPath>
<BaseAddress>285212672</BaseAddress>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<Optimize>true</Optimize>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.XML" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Collections.ObjectModel" />
<Import Include="System.Diagnostics" />
<Import Include="System.IO" />
<Import Include="System.Text" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="ExternalChecksum.vb" />
<Compile Include="ExternalLineMapping.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="IntegerBase.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Location.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Include="Parser.vb" />
<Compile Include="Serializers\ErrorXmlSerializer.vb" />
<Compile Include="Serializers\TokenXmlSerializer.vb" />
<Compile Include="Serializers\TreeXmlSerializer.vb" />
<Compile Include="Tokens\UnsignedIntegerLiteralToken.vb" />
<Compile Include="Trees\Attributes\AttributeBlockCollection.vb" />
<Compile Include="Trees\Collections\TreeCollection.vb" />
<Compile Include="Trees\Declarations\AttributeDeclaration.vb" />
<Compile Include="Trees\Declarations\BlockDeclaration.vb" />
<Compile Include="Trees\Expressions\GenericQualifiedExpression.vb" />
<Compile Include="Trees\Expressions\GlobalExpression.vb" />
<Compile Include="Trees\Expressions\TryCastExpression.vb" />
<Compile Include="Trees\Files\ScriptBlock.vb" />
<Compile Include="Trees\Members\Charset.vb" />
<Compile Include="Trees\Members\AddHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\RemoveHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\RaiseEventAccessorDeclaration.vb" />
<Compile Include="Trees\Members\CustomEventDeclaration.vb" />
<Compile Include="Trees\Members\OperatorDeclaration.vb" />
<Compile Include="Trees\Names\SpecialNameTypes.vb" />
<Compile Include="Trees\Statements\ContinueStatement.vb" />
<Compile Include="Trees\Statements\UsingBlockStatement.vb" />
<Compile Include="Trees\Types\ClassDeclaration.vb" />
<Compile Include="Trees\Members\ConstructorDeclaration.vb" />
<Compile Include="Trees\Types\GenericBlockDeclaration.vb" />
<Compile Include="Trees\Declarations\Declaration.vb" />
<Compile Include="Trees\Declarations\DeclarationCollection.vb" />
<Compile Include="Trees\Types\DelegateDeclaration.vb" />
<Compile Include="Trees\Types\DelegateFunctionDeclaration.vb" />
<Compile Include="Trees\Types\DelegateSubDeclaration.vb" />
<Compile Include="Trees\Declarations\EmptyDeclaration.vb" />
<Compile Include="Trees\Declarations\EndBlockDeclaration.vb" />
<Compile Include="Trees\Types\EnumDeclaration.vb" />
<Compile Include="Trees\Members\EnumValueDeclaration.vb" />
<Compile Include="Trees\Members\EventDeclaration.vb" />
<Compile Include="Trees\Members\ExternalDeclaration.vb" />
<Compile Include="Trees\Members\ExternalFunctionDeclaration.vb" />
<Compile Include="Trees\Members\ExternalSubDeclaration.vb" />
<Compile Include="Trees\Members\FunctionDeclaration.vb" />
<Compile Include="Trees\Members\GetAccessorDeclaration.vb" />
<Compile Include="Trees\Types\ImplementsDeclaration.vb" />
<Compile Include="Trees\Files\ImportsDeclaration.vb" />
<Compile Include="Trees\Types\InheritsDeclaration.vb" />
<Compile Include="Trees\Types\InterfaceDeclaration.vb" />
<Compile Include="Trees\Members\MethodDeclaration.vb" />
<Compile Include="Trees\Declarations\ModifiedDeclaration.vb" />
<Compile Include="Trees\Types\ModuleDeclaration.vb" />
<Compile Include="Trees\Files\NamespaceDeclaration.vb" />
<Compile Include="Trees\Files\OptionDeclaration.vb" />
<Compile Include="Trees\Files\OptionType.vb" />
<Compile Include="Trees\Members\PropertyDeclaration.vb" />
<Compile Include="Trees\Members\SetAccessorDeclaration.vb" />
<Compile Include="Trees\Members\SignatureDeclaration.vb" />
<Compile Include="Trees\Types\StructureDeclaration.vb" />
<Compile Include="Trees\Members\SubDeclaration.vb" />
<Compile Include="Trees\Members\VariableListDeclaration.vb" />
<Compile Include="Trees\Expressions\AddressOfExpression.vb" />
<Compile Include="Trees\Expressions\BinaryOperatorExpression.vb" />
<Compile Include="Trees\Expressions\BooleanLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CallOrIndexExpression.vb" />
<Compile Include="Trees\Expressions\CastTypeExpression.vb" />
<Compile Include="Trees\Expressions\CharacterLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CTypeExpression.vb" />
<Compile Include="Trees\Expressions\DateLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DecimalLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DictionaryLookupExpression.vb" />
<Compile Include="Trees\Expressions\DirectCastExpression.vb" />
<Compile Include="Trees\Expressions\QualifiedExpression.vb" />
<Compile Include="Trees\Expressions\Expression.vb" />
<Compile Include="Trees\Expressions\ExpressionCollection.vb" />
<Compile Include="Trees\Expressions\FloatingPointLiteralExpression.vb" />
<Compile Include="Trees\Expressions\GetTypeExpression.vb" />
<Compile Include="Trees\Expressions\InstanceExpression.vb" />
<Compile Include="Trees\Expressions\InstanceType.vb" />
<Compile Include="Trees\Expressions\IntegerLiteralExpression.vb" />
<Compile Include="Trees\Expressions\IntrinsicCastExpression.vb" />
<Compile Include="Trees\Expressions\LiteralExpression.vb" />
<Compile Include="Trees\Expressions\NewAggregateExpression.vb" />
<Compile Include="Trees\Expressions\NewExpression.vb" />
<Compile Include="Trees\Expressions\NothingExpression.vb" />
<Compile Include="Trees\Expressions\OperatorType.vb" />
<Compile Include="Trees\Expressions\ParentheticalExpression.vb" />
<Compile Include="Trees\Expressions\SimpleNameExpression.vb" />
<Compile Include="Trees\Expressions\StringLiteralExpression.vb" />
<Compile Include="Trees\Expressions\TypeOfExpression.vb" />
<Compile Include="Trees\Expressions\TypeReferenceExpression.vb" />
<Compile Include="Trees\Expressions\UnaryExpression.vb" />
<Compile Include="Trees\Expressions\UnaryOperatorExpression.vb" />
<Compile Include="Trees\Files\File.vb" />
<Compile Include="Trees\Imports\AliasImport.vb" />
<Compile Include="Trees\Imports\Import.vb" />
<Compile Include="Trees\Imports\ImportCollection.vb" />
<Compile Include="Trees\Imports\NameImport.vb" />
<Compile Include="Trees\Initializers\AggregateInitializer.vb" />
<Compile Include="Trees\Initializers\ExpressionInitializer.vb" />
<Compile Include="Trees\Initializers\Initializer.vb" />
<Compile Include="Trees\Initializers\InitializerCollection.vb" />
<Compile Include="Trees\Modifiers\Modifier.vb" />
<Compile Include="Trees\Modifiers\ModifierCollection.vb" />
<Compile Include="Trees\Modifiers\ModifierTypes.vb" />
<Compile Include="Trees\Names\SpecialName.vb" />
<Compile Include="Trees\Names\Name.vb" />
<Compile Include="Trees\Names\NameCollection.vb" />
<Compile Include="Trees\Names\QualifiedName.vb" />
<Compile Include="Trees\Names\SimpleName.vb" />
<Compile Include="Trees\Names\VariableName.vb" />
<Compile Include="Trees\Names\VariableNameCollection.vb" />
<Compile Include="Trees\Parameters\Parameter.vb" />
<Compile Include="Trees\Parameters\ParameterCollection.vb" />
<Compile Include="Trees\Statements\AddHandlerStatement.vb" />
<Compile Include="Trees\Statements\AssignmentStatement.vb" />
<Compile Include="Trees\Statements\BlockStatement.vb" />
<Compile Include="Trees\Statements\CallStatement.vb" />
<Compile Include="Trees\Statements\CaseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseStatement.vb" />
<Compile Include="Trees\Statements\CaseStatement.vb" />
<Compile Include="Trees\Statements\CatchBlockStatement.vb" />
<Compile Include="Trees\Statements\CatchStatement.vb" />
<Compile Include="Trees\Statements\CompoundAssignmentStatement.vb" />
<Compile Include="Trees\Statements\DoBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfStatement.vb" />
<Compile Include="Trees\Statements\ElseStatement.vb" />
<Compile Include="Trees\Statements\EmptyStatement.vb" />
<Compile Include="Trees\Statements\EndBlockStatement.vb" />
<Compile Include="Trees\Statements\EndStatement.vb" />
<Compile Include="Trees\Statements\EraseStatement.vb" />
<Compile Include="Trees\Statements\ErrorStatement.vb" />
<Compile Include="Trees\Statements\ExitStatement.vb" />
<Compile Include="Trees\Statements\ExpressionBlockStatement.vb" />
<Compile Include="Trees\Statements\ExpressionStatement.vb" />
<Compile Include="Trees\Statements\FinallyBlockStatement.vb" />
<Compile Include="Trees\Statements\FinallyStatement.vb" />
<Compile Include="Trees\Statements\ForBlockStatement.vb" />
<Compile Include="Trees\Statements\ForEachBlockStatement.vb" />
<Compile Include="Trees\Statements\GotoStatement.vb" />
<Compile Include="Trees\Statements\HandlerStatement.vb" />
<Compile Include="Trees\Statements\IfBlockStatement.vb" />
<Compile Include="Trees\Statements\LabelReferenceStatement.vb" />
<Compile Include="Trees\Statements\LabelStatement.vb" />
<Compile Include="Trees\Statements\LineIfStatement.vb" />
<Compile Include="Trees\Statements\LocalDeclarationStatement.vb" />
<Compile Include="Trees\Statements\LoopStatement.vb" />
<Compile Include="Trees\Statements\MidAssignmentStatement.vb" />
<Compile Include="Trees\Statements\NextStatement.vb" />
<Compile Include="Trees\Statements\OnErrorStatement.vb" />
<Compile Include="Trees\Statements\OnErrorType.vb" />
<Compile Include="Trees\Statements\RaiseEventStatement.vb" />
<Compile Include="Trees\Statements\ReDimStatement.vb" />
<Compile Include="Trees\Statements\RemoveHandlerStatement.vb" />
<Compile Include="Trees\Statements\ResumeStatement.vb" />
<Compile Include="Trees\Statements\ResumeType.vb" />
<Compile Include="Trees\Statements\ReturnStatement.vb" />
<Compile Include="Trees\Statements\SelectBlockStatement.vb" />
<Compile Include="Trees\Statements\Statement.vb" />
<Compile Include="Trees\Statements\StatementCollection.vb" />
<Compile Include="Trees\Statements\StopStatement.vb" />
<Compile Include="Trees\Statements\SyncLockBlockStatement.vb" />
<Compile Include="Trees\Statements\ThrowStatement.vb" />
<Compile Include="Trees\Statements\TryBlockStatement.vb" />
<Compile Include="Trees\Statements\WhileStatement.vb" />
<Compile Include="Trees\Statements\WithStatement.vb" />
<Compile Include="Trees\TypeParameters\TypeParameter.vb" />
<Compile Include="Trees\TypeNames\ArrayTypeName.vb" />
<Compile Include="Trees\TypeNames\ConstructedTypeName.vb" />
<Compile Include="Trees\TypeNames\IntrinsicTypeName.vb" />
<Compile Include="Trees\TypeNames\NamedTypeName.vb" />
<Compile Include="Trees\TypeNames\TypeName.vb" />
<Compile Include="Trees\TypeNames\TypeNameCollection.vb" />
<Compile Include="Trees\TypeNames\TypeArgumentCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeConstraintCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeParameterCollection.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclarator.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclaratorCollection.vb" />
<Compile Include="TypeCharacter.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Scanner.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="SourceRegion.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Span.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="SyntaxError.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="SyntaxErrorType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\CharacterLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\CommentToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\DateLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\DecimalLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\EndOfStreamToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\ErrorToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\FloatingPointLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\IdentifierToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\IntegerLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\LineTerminatorToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\PunctuatorToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\StringLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\Token.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\TokenType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Arguments\Argument.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Arguments\ArgumentCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Attributes\Attribute.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Attributes\AttributeCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Attributes\AttributeTypes.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\BlockType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\CaseClause.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\CaseClauseCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\ComparisonCaseClause.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\RangeCaseClause.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Collections\ColonDelimitedTreeCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Collections\CommaDelimitedTreeCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Comments\Comment.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\IntrinsicType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Tree.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\TreeType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="LanguageVersion.vb" />
</ItemGroup>
<ItemGroup>
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.Targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{57A0B340-BDA4-4DE3-B449-52B8C51D84B8}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>Dlrsoft.VBParser</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>On</OptionStrict>
<RootNamespace>Dlrsoft.VBScript.Parser</RootNamespace>
<StartupObject>VBParser.(None)</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\bin\Debug</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
<RunCodeAnalysis>false</RunCodeAnalysis>
<CodeAnalysisRules>
</CodeAnalysisRules>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\bin\Release\</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>bin\x86\Debug\</OutputPath>
<BaseAddress>285212672</BaseAddress>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DefineTrace>true</DefineTrace>
<OutputPath>bin\x86\Release\</OutputPath>
<BaseAddress>285212672</BaseAddress>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<Optimize>true</Optimize>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.XML" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Collections.ObjectModel" />
<Import Include="System.Diagnostics" />
<Import Include="System.IO" />
<Import Include="System.Text" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="ExternalChecksum.vb" />
<Compile Include="ExternalLineMapping.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="IntegerBase.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Location.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Include="Parser.vb" />
<Compile Include="Serializers\ErrorXmlSerializer.vb" />
<Compile Include="Serializers\TokenXmlSerializer.vb" />
<Compile Include="Serializers\TreeXmlSerializer.vb" />
<Compile Include="Tokens\UnsignedIntegerLiteralToken.vb" />
<Compile Include="Trees\Attributes\AttributeBlockCollection.vb" />
<Compile Include="Trees\Collections\TreeCollection.vb" />
<Compile Include="Trees\Declarations\AttributeDeclaration.vb" />
<Compile Include="Trees\Declarations\BlockDeclaration.vb" />
<Compile Include="Trees\Expressions\GenericQualifiedExpression.vb" />
<Compile Include="Trees\Expressions\GlobalExpression.vb" />
<Compile Include="Trees\Expressions\TryCastExpression.vb" />
<Compile Include="Trees\Files\ScriptBlock.vb" />
<Compile Include="Trees\Members\Charset.vb" />
<Compile Include="Trees\Members\AddHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\RemoveHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\RaiseEventAccessorDeclaration.vb" />
<Compile Include="Trees\Members\CustomEventDeclaration.vb" />
<Compile Include="Trees\Members\OperatorDeclaration.vb" />
<Compile Include="Trees\Names\SpecialNameTypes.vb" />
<Compile Include="Trees\Statements\ContinueStatement.vb" />
<Compile Include="Trees\Statements\UsingBlockStatement.vb" />
<Compile Include="Trees\Types\ClassDeclaration.vb" />
<Compile Include="Trees\Members\ConstructorDeclaration.vb" />
<Compile Include="Trees\Types\GenericBlockDeclaration.vb" />
<Compile Include="Trees\Declarations\Declaration.vb" />
<Compile Include="Trees\Declarations\DeclarationCollection.vb" />
<Compile Include="Trees\Types\DelegateDeclaration.vb" />
<Compile Include="Trees\Types\DelegateFunctionDeclaration.vb" />
<Compile Include="Trees\Types\DelegateSubDeclaration.vb" />
<Compile Include="Trees\Declarations\EmptyDeclaration.vb" />
<Compile Include="Trees\Declarations\EndBlockDeclaration.vb" />
<Compile Include="Trees\Types\EnumDeclaration.vb" />
<Compile Include="Trees\Members\EnumValueDeclaration.vb" />
<Compile Include="Trees\Members\EventDeclaration.vb" />
<Compile Include="Trees\Members\ExternalDeclaration.vb" />
<Compile Include="Trees\Members\ExternalFunctionDeclaration.vb" />
<Compile Include="Trees\Members\ExternalSubDeclaration.vb" />
<Compile Include="Trees\Members\FunctionDeclaration.vb" />
<Compile Include="Trees\Members\GetAccessorDeclaration.vb" />
<Compile Include="Trees\Types\ImplementsDeclaration.vb" />
<Compile Include="Trees\Files\ImportsDeclaration.vb" />
<Compile Include="Trees\Types\InheritsDeclaration.vb" />
<Compile Include="Trees\Types\InterfaceDeclaration.vb" />
<Compile Include="Trees\Members\MethodDeclaration.vb" />
<Compile Include="Trees\Declarations\ModifiedDeclaration.vb" />
<Compile Include="Trees\Types\ModuleDeclaration.vb" />
<Compile Include="Trees\Files\NamespaceDeclaration.vb" />
<Compile Include="Trees\Files\OptionDeclaration.vb" />
<Compile Include="Trees\Files\OptionType.vb" />
<Compile Include="Trees\Members\PropertyDeclaration.vb" />
<Compile Include="Trees\Members\SetAccessorDeclaration.vb" />
<Compile Include="Trees\Members\SignatureDeclaration.vb" />
<Compile Include="Trees\Types\StructureDeclaration.vb" />
<Compile Include="Trees\Members\SubDeclaration.vb" />
<Compile Include="Trees\Members\VariableListDeclaration.vb" />
<Compile Include="Trees\Expressions\AddressOfExpression.vb" />
<Compile Include="Trees\Expressions\BinaryOperatorExpression.vb" />
<Compile Include="Trees\Expressions\BooleanLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CallOrIndexExpression.vb" />
<Compile Include="Trees\Expressions\CastTypeExpression.vb" />
<Compile Include="Trees\Expressions\CharacterLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CTypeExpression.vb" />
<Compile Include="Trees\Expressions\DateLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DecimalLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DictionaryLookupExpression.vb" />
<Compile Include="Trees\Expressions\DirectCastExpression.vb" />
<Compile Include="Trees\Expressions\QualifiedExpression.vb" />
<Compile Include="Trees\Expressions\Expression.vb" />
<Compile Include="Trees\Expressions\ExpressionCollection.vb" />
<Compile Include="Trees\Expressions\FloatingPointLiteralExpression.vb" />
<Compile Include="Trees\Expressions\GetTypeExpression.vb" />
<Compile Include="Trees\Expressions\InstanceExpression.vb" />
<Compile Include="Trees\Expressions\InstanceType.vb" />
<Compile Include="Trees\Expressions\IntegerLiteralExpression.vb" />
<Compile Include="Trees\Expressions\IntrinsicCastExpression.vb" />
<Compile Include="Trees\Expressions\LiteralExpression.vb" />
<Compile Include="Trees\Expressions\NewAggregateExpression.vb" />
<Compile Include="Trees\Expressions\NewExpression.vb" />
<Compile Include="Trees\Expressions\NothingExpression.vb" />
<Compile Include="Trees\Expressions\OperatorType.vb" />
<Compile Include="Trees\Expressions\ParentheticalExpression.vb" />
<Compile Include="Trees\Expressions\SimpleNameExpression.vb" />
<Compile Include="Trees\Expressions\StringLiteralExpression.vb" />
<Compile Include="Trees\Expressions\TypeOfExpression.vb" />
<Compile Include="Trees\Expressions\TypeReferenceExpression.vb" />
<Compile Include="Trees\Expressions\UnaryExpression.vb" />
<Compile Include="Trees\Expressions\UnaryOperatorExpression.vb" />
<Compile Include="Trees\Files\File.vb" />
<Compile Include="Trees\Imports\AliasImport.vb" />
<Compile Include="Trees\Imports\Import.vb" />
<Compile Include="Trees\Imports\ImportCollection.vb" />
<Compile Include="Trees\Imports\NameImport.vb" />
<Compile Include="Trees\Initializers\AggregateInitializer.vb" />
<Compile Include="Trees\Initializers\ExpressionInitializer.vb" />
<Compile Include="Trees\Initializers\Initializer.vb" />
<Compile Include="Trees\Initializers\InitializerCollection.vb" />
<Compile Include="Trees\Modifiers\Modifier.vb" />
<Compile Include="Trees\Modifiers\ModifierCollection.vb" />
<Compile Include="Trees\Modifiers\ModifierTypes.vb" />
<Compile Include="Trees\Names\SpecialName.vb" />
<Compile Include="Trees\Names\Name.vb" />
<Compile Include="Trees\Names\NameCollection.vb" />
<Compile Include="Trees\Names\QualifiedName.vb" />
<Compile Include="Trees\Names\SimpleName.vb" />
<Compile Include="Trees\Names\VariableName.vb" />
<Compile Include="Trees\Names\VariableNameCollection.vb" />
<Compile Include="Trees\Parameters\Parameter.vb" />
<Compile Include="Trees\Parameters\ParameterCollection.vb" />
<Compile Include="Trees\Statements\AddHandlerStatement.vb" />
<Compile Include="Trees\Statements\AssignmentStatement.vb" />
<Compile Include="Trees\Statements\BlockStatement.vb" />
<Compile Include="Trees\Statements\CallStatement.vb" />
<Compile Include="Trees\Statements\CaseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseStatement.vb" />
<Compile Include="Trees\Statements\CaseStatement.vb" />
<Compile Include="Trees\Statements\CatchBlockStatement.vb" />
<Compile Include="Trees\Statements\CatchStatement.vb" />
<Compile Include="Trees\Statements\CompoundAssignmentStatement.vb" />
<Compile Include="Trees\Statements\DoBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfStatement.vb" />
<Compile Include="Trees\Statements\ElseStatement.vb" />
<Compile Include="Trees\Statements\EmptyStatement.vb" />
<Compile Include="Trees\Statements\EndBlockStatement.vb" />
<Compile Include="Trees\Statements\EndStatement.vb" />
<Compile Include="Trees\Statements\EraseStatement.vb" />
<Compile Include="Trees\Statements\ErrorStatement.vb" />
<Compile Include="Trees\Statements\ExitStatement.vb" />
<Compile Include="Trees\Statements\ExpressionBlockStatement.vb" />
<Compile Include="Trees\Statements\ExpressionStatement.vb" />
<Compile Include="Trees\Statements\FinallyBlockStatement.vb" />
<Compile Include="Trees\Statements\FinallyStatement.vb" />
<Compile Include="Trees\Statements\ForBlockStatement.vb" />
<Compile Include="Trees\Statements\ForEachBlockStatement.vb" />
<Compile Include="Trees\Statements\GotoStatement.vb" />
<Compile Include="Trees\Statements\HandlerStatement.vb" />
<Compile Include="Trees\Statements\IfBlockStatement.vb" />
<Compile Include="Trees\Statements\LabelReferenceStatement.vb" />
<Compile Include="Trees\Statements\LabelStatement.vb" />
<Compile Include="Trees\Statements\LineIfStatement.vb" />
<Compile Include="Trees\Statements\LocalDeclarationStatement.vb" />
<Compile Include="Trees\Statements\LoopStatement.vb" />
<Compile Include="Trees\Statements\MidAssignmentStatement.vb" />
<Compile Include="Trees\Statements\NextStatement.vb" />
<Compile Include="Trees\Statements\OnErrorStatement.vb" />
<Compile Include="Trees\Statements\OnErrorType.vb" />
<Compile Include="Trees\Statements\RaiseEventStatement.vb" />
<Compile Include="Trees\Statements\ReDimStatement.vb" />
<Compile Include="Trees\Statements\RemoveHandlerStatement.vb" />
<Compile Include="Trees\Statements\ResumeStatement.vb" />
<Compile Include="Trees\Statements\ResumeType.vb" />
<Compile Include="Trees\Statements\ReturnStatement.vb" />
<Compile Include="Trees\Statements\SelectBlockStatement.vb" />
<Compile Include="Trees\Statements\Statement.vb" />
<Compile Include="Trees\Statements\StatementCollection.vb" />
<Compile Include="Trees\Statements\StopStatement.vb" />
<Compile Include="Trees\Statements\SyncLockBlockStatement.vb" />
<Compile Include="Trees\Statements\ThrowStatement.vb" />
<Compile Include="Trees\Statements\TryBlockStatement.vb" />
<Compile Include="Trees\Statements\WhileStatement.vb" />
<Compile Include="Trees\Statements\WithStatement.vb" />
<Compile Include="Trees\TypeParameters\TypeParameter.vb" />
<Compile Include="Trees\TypeNames\ArrayTypeName.vb" />
<Compile Include="Trees\TypeNames\ConstructedTypeName.vb" />
<Compile Include="Trees\TypeNames\IntrinsicTypeName.vb" />
<Compile Include="Trees\TypeNames\NamedTypeName.vb" />
<Compile Include="Trees\TypeNames\TypeName.vb" />
<Compile Include="Trees\TypeNames\TypeNameCollection.vb" />
<Compile Include="Trees\TypeNames\TypeArgumentCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeConstraintCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeParameterCollection.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclarator.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclaratorCollection.vb" />
<Compile Include="TypeCharacter.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Scanner.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="SourceRegion.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Span.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="SyntaxError.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="SyntaxErrorType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\CharacterLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\CommentToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\DateLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\DecimalLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\EndOfStreamToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\ErrorToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\FloatingPointLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\IdentifierToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\IntegerLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\LineTerminatorToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\PunctuatorToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\StringLiteralToken.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\Token.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Tokens\TokenType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Arguments\Argument.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Arguments\ArgumentCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Attributes\Attribute.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Attributes\AttributeCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Attributes\AttributeTypes.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\BlockType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\CaseClause.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\CaseClauseCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\ComparisonCaseClause.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\CaseClauses\RangeCaseClause.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Collections\ColonDelimitedTreeCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Collections\CommaDelimitedTreeCollection.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Comments\Comment.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\IntrinsicType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\Tree.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="Trees\TreeType.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="LanguageVersion.vb" />
</ItemGroup>
<ItemGroup>
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.Targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>

View file

@ -1,347 +1,347 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{FAE34487-11A6-4EE2-96BB-7F73C7611097}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Dlrsoft.VBScript.Parser</RootNamespace>
<AssemblyName>Dlrsoft.VBParser</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<OptionExplicit>On</OptionExplicit>
<OptionCompare>Binary</OptionCompare>
<OptionStrict>Off</OptionStrict>
<OptionInfer>On</OptionInfer>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<MyType>Empty</MyType>
<OutputPath>..Bin\Silverlight Debug\</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<DefineConstants>SILVERLIGHT=1</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<Optimize>true</Optimize>
<OutputPath>..\Bin\Silverlight Release\</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<DefineConstants>SILVERLIGHT=1</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Windows" />
<Reference Include="mscorlib" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Xml" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Collections.ObjectModel" />
<Import Include="System.Diagnostics" />
<Import Include="System.IO" />
<Import Include="System.Text" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.vb" />
<Compile Include="ExternalChecksum.vb" />
<Compile Include="ExternalLineMapping.vb" />
<Compile Include="IntegerBase.vb" />
<Compile Include="LanguageVersion.vb" />
<Compile Include="Location.vb" />
<Compile Include="Parser.vb" />
<Compile Include="Scanner.vb" />
<Compile Include="Serializers\ErrorXmlSerializer.vb" />
<Compile Include="Serializers\TokenXmlSerializer.vb" />
<Compile Include="Serializers\TreeXmlSerializer.vb" />
<Compile Include="SourceRegion.vb" />
<Compile Include="Span.vb" />
<Compile Include="SyntaxError.vb" />
<Compile Include="SyntaxErrorType.vb" />
<Compile Include="Tokens\CharacterLiteralToken.vb" />
<Compile Include="Tokens\CommentToken.vb" />
<Compile Include="Tokens\DateLiteralToken.vb" />
<Compile Include="Tokens\DecimalLiteralToken.vb" />
<Compile Include="Tokens\EndOfStreamToken.vb" />
<Compile Include="Tokens\ErrorToken.vb" />
<Compile Include="Tokens\FloatingPointLiteralToken.vb" />
<Compile Include="Tokens\IdentifierToken.vb" />
<Compile Include="Tokens\IntegerLiteralToken.vb" />
<Compile Include="Tokens\LineTerminatorToken.vb" />
<Compile Include="Tokens\PunctuatorToken.vb" />
<Compile Include="Tokens\StringLiteralToken.vb" />
<Compile Include="Tokens\Token.vb" />
<Compile Include="Tokens\TokenType.vb" />
<Compile Include="Tokens\UnsignedIntegerLiteralToken.vb" />
<Compile Include="Trees\Arguments\Argument.vb" />
<Compile Include="Trees\Arguments\ArgumentCollection.vb" />
<Compile Include="Trees\Attributes\Attribute.vb" />
<Compile Include="Trees\Attributes\AttributeBlockCollection.vb" />
<Compile Include="Trees\Attributes\AttributeCollection.vb" />
<Compile Include="Trees\Attributes\AttributeTypes.vb" />
<Compile Include="Trees\BlockType.vb" />
<Compile Include="Trees\CaseClauses\CaseClause.vb" />
<Compile Include="Trees\CaseClauses\CaseClauseCollection.vb" />
<Compile Include="Trees\CaseClauses\ComparisonCaseClause.vb" />
<Compile Include="Trees\CaseClauses\RangeCaseClause.vb" />
<Compile Include="Trees\Collections\ColonDelimitedTreeCollection.vb" />
<Compile Include="Trees\Collections\CommaDelimitedTreeCollection.vb" />
<Compile Include="Trees\Collections\TreeCollection.vb" />
<Compile Include="Trees\Comments\Comment.vb" />
<Compile Include="Trees\Declarations\AttributeDeclaration.vb" />
<Compile Include="Trees\Declarations\BlockDeclaration.vb" />
<Compile Include="Trees\Declarations\Declaration.vb" />
<Compile Include="Trees\Declarations\DeclarationCollection.vb" />
<Compile Include="Trees\Declarations\EmptyDeclaration.vb" />
<Compile Include="Trees\Declarations\EndBlockDeclaration.vb" />
<Compile Include="Trees\Declarations\ModifiedDeclaration.vb" />
<Compile Include="Trees\Expressions\AddressOfExpression.vb" />
<Compile Include="Trees\Expressions\BinaryOperatorExpression.vb" />
<Compile Include="Trees\Expressions\BooleanLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CallOrIndexExpression.vb" />
<Compile Include="Trees\Expressions\CastTypeExpression.vb" />
<Compile Include="Trees\Expressions\CharacterLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CTypeExpression.vb" />
<Compile Include="Trees\Expressions\DateLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DecimalLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DictionaryLookupExpression.vb" />
<Compile Include="Trees\Expressions\DirectCastExpression.vb" />
<Compile Include="Trees\Expressions\Expression.vb" />
<Compile Include="Trees\Expressions\ExpressionCollection.vb" />
<Compile Include="Trees\Expressions\FloatingPointLiteralExpression.vb" />
<Compile Include="Trees\Expressions\GenericQualifiedExpression.vb" />
<Compile Include="Trees\Expressions\GetTypeExpression.vb" />
<Compile Include="Trees\Expressions\GlobalExpression.vb" />
<Compile Include="Trees\Expressions\InstanceExpression.vb" />
<Compile Include="Trees\Expressions\InstanceType.vb" />
<Compile Include="Trees\Expressions\IntegerLiteralExpression.vb" />
<Compile Include="Trees\Expressions\IntrinsicCastExpression.vb" />
<Compile Include="Trees\Expressions\LiteralExpression.vb" />
<Compile Include="Trees\Expressions\NewAggregateExpression.vb" />
<Compile Include="Trees\Expressions\NewExpression.vb" />
<Compile Include="Trees\Expressions\NothingExpression.vb" />
<Compile Include="Trees\Expressions\OperatorType.vb" />
<Compile Include="Trees\Expressions\ParentheticalExpression.vb" />
<Compile Include="Trees\Expressions\QualifiedExpression.vb" />
<Compile Include="Trees\Expressions\SimpleNameExpression.vb" />
<Compile Include="Trees\Expressions\StringLiteralExpression.vb" />
<Compile Include="Trees\Expressions\TryCastExpression.vb" />
<Compile Include="Trees\Expressions\TypeOfExpression.vb" />
<Compile Include="Trees\Expressions\TypeReferenceExpression.vb" />
<Compile Include="Trees\Expressions\UnaryExpression.vb" />
<Compile Include="Trees\Expressions\UnaryOperatorExpression.vb" />
<Compile Include="Trees\Files\File.vb" />
<Compile Include="Trees\Files\ImportsDeclaration.vb" />
<Compile Include="Trees\Files\NamespaceDeclaration.vb" />
<Compile Include="Trees\Files\OptionDeclaration.vb" />
<Compile Include="Trees\Files\OptionType.vb" />
<Compile Include="Trees\Files\ScriptBlock.vb" />
<Compile Include="Trees\Imports\AliasImport.vb" />
<Compile Include="Trees\Imports\Import.vb" />
<Compile Include="Trees\Imports\ImportCollection.vb" />
<Compile Include="Trees\Imports\NameImport.vb" />
<Compile Include="Trees\Initializers\AggregateInitializer.vb" />
<Compile Include="Trees\Initializers\ExpressionInitializer.vb" />
<Compile Include="Trees\Initializers\Initializer.vb" />
<Compile Include="Trees\Initializers\InitializerCollection.vb" />
<Compile Include="Trees\IntrinsicType.vb" />
<Compile Include="Trees\Members\AddHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\Charset.vb" />
<Compile Include="Trees\Members\ConstructorDeclaration.vb" />
<Compile Include="Trees\Members\CustomEventDeclaration.vb" />
<Compile Include="Trees\Members\EnumValueDeclaration.vb" />
<Compile Include="Trees\Members\EventDeclaration.vb" />
<Compile Include="Trees\Members\ExternalDeclaration.vb" />
<Compile Include="Trees\Members\ExternalFunctionDeclaration.vb" />
<Compile Include="Trees\Members\ExternalSubDeclaration.vb" />
<Compile Include="Trees\Members\FunctionDeclaration.vb" />
<Compile Include="Trees\Members\GetAccessorDeclaration.vb" />
<Compile Include="Trees\Members\MethodDeclaration.vb" />
<Compile Include="Trees\Members\OperatorDeclaration.vb" />
<Compile Include="Trees\Members\PropertyDeclaration.vb" />
<Compile Include="Trees\Members\RaiseEventAccessorDeclaration.vb" />
<Compile Include="Trees\Members\RemoveHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\SetAccessorDeclaration.vb" />
<Compile Include="Trees\Members\SignatureDeclaration.vb" />
<Compile Include="Trees\Members\SubDeclaration.vb" />
<Compile Include="Trees\Members\VariableListDeclaration.vb" />
<Compile Include="Trees\Modifiers\Modifier.vb" />
<Compile Include="Trees\Modifiers\ModifierCollection.vb" />
<Compile Include="Trees\Modifiers\ModifierTypes.vb" />
<Compile Include="Trees\Names\GlobalNamespaceName.vb" />
<Compile Include="Trees\Names\Name.vb" />
<Compile Include="Trees\Names\NameCollection.vb" />
<Compile Include="Trees\Names\QualifiedName.vb" />
<Compile Include="Trees\Names\SimpleName.vb" />
<Compile Include="Trees\Names\SpecialName.vb" />
<Compile Include="Trees\Names\SpecialNameTypes.vb" />
<Compile Include="Trees\Names\VariableName.vb" />
<Compile Include="Trees\Names\VariableNameCollection.vb" />
<Compile Include="Trees\Parameters\Parameter.vb" />
<Compile Include="Trees\Parameters\ParameterCollection.vb" />
<Compile Include="Trees\Statements\AddHandlerStatement.vb" />
<Compile Include="Trees\Statements\AssignmentStatement.vb" />
<Compile Include="Trees\Statements\BlockStatement.vb" />
<Compile Include="Trees\Statements\CallStatement.vb" />
<Compile Include="Trees\Statements\CaseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseStatement.vb" />
<Compile Include="Trees\Statements\CaseStatement.vb" />
<Compile Include="Trees\Statements\CatchBlockStatement.vb" />
<Compile Include="Trees\Statements\CatchStatement.vb" />
<Compile Include="Trees\Statements\CompoundAssignmentStatement.vb" />
<Compile Include="Trees\Statements\ContinueStatement.vb" />
<Compile Include="Trees\Statements\DoBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfStatement.vb" />
<Compile Include="Trees\Statements\ElseStatement.vb" />
<Compile Include="Trees\Statements\EmptyStatement.vb" />
<Compile Include="Trees\Statements\EndBlockStatement.vb" />
<Compile Include="Trees\Statements\EndStatement.vb" />
<Compile Include="Trees\Statements\EraseStatement.vb" />
<Compile Include="Trees\Statements\ErrorStatement.vb" />
<Compile Include="Trees\Statements\ExitStatement.vb" />
<Compile Include="Trees\Statements\ExpressionBlockStatement.vb" />
<Compile Include="Trees\Statements\ExpressionStatement.vb" />
<Compile Include="Trees\Statements\FinallyBlockStatement.vb" />
<Compile Include="Trees\Statements\FinallyStatement.vb" />
<Compile Include="Trees\Statements\ForBlockStatement.vb" />
<Compile Include="Trees\Statements\ForEachBlockStatement.vb" />
<Compile Include="Trees\Statements\GotoStatement.vb" />
<Compile Include="Trees\Statements\HandlerStatement.vb" />
<Compile Include="Trees\Statements\IfBlockStatement.vb" />
<Compile Include="Trees\Statements\LabelReferenceStatement.vb" />
<Compile Include="Trees\Statements\LabelStatement.vb" />
<Compile Include="Trees\Statements\LineIfStatement.vb" />
<Compile Include="Trees\Statements\LocalDeclarationStatement.vb" />
<Compile Include="Trees\Statements\LoopStatement.vb" />
<Compile Include="Trees\Statements\MidAssignmentStatement.vb" />
<Compile Include="Trees\Statements\NextStatement.vb" />
<Compile Include="Trees\Statements\OnErrorStatement.vb" />
<Compile Include="Trees\Statements\OnErrorType.vb" />
<Compile Include="Trees\Statements\RaiseEventStatement.vb" />
<Compile Include="Trees\Statements\ReDimStatement.vb" />
<Compile Include="Trees\Statements\RemoveHandlerStatement.vb" />
<Compile Include="Trees\Statements\ResumeStatement.vb" />
<Compile Include="Trees\Statements\ResumeType.vb" />
<Compile Include="Trees\Statements\ReturnStatement.vb" />
<Compile Include="Trees\Statements\SelectBlockStatement.vb" />
<Compile Include="Trees\Statements\Statement.vb" />
<Compile Include="Trees\Statements\StatementCollection.vb" />
<Compile Include="Trees\Statements\StopStatement.vb" />
<Compile Include="Trees\Statements\SyncLockBlockStatement.vb" />
<Compile Include="Trees\Statements\ThrowStatement.vb" />
<Compile Include="Trees\Statements\TryBlockStatement.vb" />
<Compile Include="Trees\Statements\UsingBlockStatement.vb" />
<Compile Include="Trees\Statements\WhileStatement.vb" />
<Compile Include="Trees\Statements\WithStatement.vb" />
<Compile Include="Trees\Tree.vb" />
<Compile Include="Trees\TreeType.vb" />
<Compile Include="Trees\TypeNames\ArrayTypeName.vb" />
<Compile Include="Trees\TypeNames\ConstructedTypeName.vb" />
<Compile Include="Trees\TypeNames\IntrinsicTypeName.vb" />
<Compile Include="Trees\TypeNames\NamedTypeName.vb" />
<Compile Include="Trees\TypeNames\TypeArgumentCollection.vb" />
<Compile Include="Trees\TypeNames\TypeName.vb" />
<Compile Include="Trees\TypeNames\TypeNameCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeConstraintCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeParameter.vb" />
<Compile Include="Trees\TypeParameters\TypeParameterCollection.vb" />
<Compile Include="Trees\Types\ClassDeclaration.vb" />
<Compile Include="Trees\Types\DelegateDeclaration.vb" />
<Compile Include="Trees\Types\DelegateFunctionDeclaration.vb" />
<Compile Include="Trees\Types\DelegateSubDeclaration.vb" />
<Compile Include="Trees\Types\EnumDeclaration.vb" />
<Compile Include="Trees\Types\GenericBlockDeclaration.vb" />
<Compile Include="Trees\Types\ImplementsDeclaration.vb" />
<Compile Include="Trees\Types\InheritsDeclaration.vb" />
<Compile Include="Trees\Types\InterfaceDeclaration.vb" />
<Compile Include="Trees\Types\ModuleDeclaration.vb" />
<Compile Include="Trees\Types\StructureDeclaration.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclarator.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclaratorCollection.vb" />
<Compile Include="TypeCharacter.vb" />
</ItemGroup>
<ItemGroup>
<Folder Include="My Project\" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{FAE34487-11A6-4EE2-96BB-7F73C7611097}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Dlrsoft.VBScript.Parser</RootNamespace>
<AssemblyName>Dlrsoft.VBParser</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<OptionExplicit>On</OptionExplicit>
<OptionCompare>Binary</OptionCompare>
<OptionStrict>Off</OptionStrict>
<OptionInfer>On</OptionInfer>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<MyType>Empty</MyType>
<OutputPath>..Bin\Silverlight Debug\</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<DefineConstants>SILVERLIGHT=1</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<Optimize>true</Optimize>
<OutputPath>..\Bin\Silverlight Release\</OutputPath>
<DocumentationFile>Dlrsoft.VBParser.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<DefineConstants>SILVERLIGHT=1</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Windows" />
<Reference Include="mscorlib" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Xml" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Collections.ObjectModel" />
<Import Include="System.Diagnostics" />
<Import Include="System.IO" />
<Import Include="System.Text" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.vb" />
<Compile Include="ExternalChecksum.vb" />
<Compile Include="ExternalLineMapping.vb" />
<Compile Include="IntegerBase.vb" />
<Compile Include="LanguageVersion.vb" />
<Compile Include="Location.vb" />
<Compile Include="Parser.vb" />
<Compile Include="Scanner.vb" />
<Compile Include="Serializers\ErrorXmlSerializer.vb" />
<Compile Include="Serializers\TokenXmlSerializer.vb" />
<Compile Include="Serializers\TreeXmlSerializer.vb" />
<Compile Include="SourceRegion.vb" />
<Compile Include="Span.vb" />
<Compile Include="SyntaxError.vb" />
<Compile Include="SyntaxErrorType.vb" />
<Compile Include="Tokens\CharacterLiteralToken.vb" />
<Compile Include="Tokens\CommentToken.vb" />
<Compile Include="Tokens\DateLiteralToken.vb" />
<Compile Include="Tokens\DecimalLiteralToken.vb" />
<Compile Include="Tokens\EndOfStreamToken.vb" />
<Compile Include="Tokens\ErrorToken.vb" />
<Compile Include="Tokens\FloatingPointLiteralToken.vb" />
<Compile Include="Tokens\IdentifierToken.vb" />
<Compile Include="Tokens\IntegerLiteralToken.vb" />
<Compile Include="Tokens\LineTerminatorToken.vb" />
<Compile Include="Tokens\PunctuatorToken.vb" />
<Compile Include="Tokens\StringLiteralToken.vb" />
<Compile Include="Tokens\Token.vb" />
<Compile Include="Tokens\TokenType.vb" />
<Compile Include="Tokens\UnsignedIntegerLiteralToken.vb" />
<Compile Include="Trees\Arguments\Argument.vb" />
<Compile Include="Trees\Arguments\ArgumentCollection.vb" />
<Compile Include="Trees\Attributes\Attribute.vb" />
<Compile Include="Trees\Attributes\AttributeBlockCollection.vb" />
<Compile Include="Trees\Attributes\AttributeCollection.vb" />
<Compile Include="Trees\Attributes\AttributeTypes.vb" />
<Compile Include="Trees\BlockType.vb" />
<Compile Include="Trees\CaseClauses\CaseClause.vb" />
<Compile Include="Trees\CaseClauses\CaseClauseCollection.vb" />
<Compile Include="Trees\CaseClauses\ComparisonCaseClause.vb" />
<Compile Include="Trees\CaseClauses\RangeCaseClause.vb" />
<Compile Include="Trees\Collections\ColonDelimitedTreeCollection.vb" />
<Compile Include="Trees\Collections\CommaDelimitedTreeCollection.vb" />
<Compile Include="Trees\Collections\TreeCollection.vb" />
<Compile Include="Trees\Comments\Comment.vb" />
<Compile Include="Trees\Declarations\AttributeDeclaration.vb" />
<Compile Include="Trees\Declarations\BlockDeclaration.vb" />
<Compile Include="Trees\Declarations\Declaration.vb" />
<Compile Include="Trees\Declarations\DeclarationCollection.vb" />
<Compile Include="Trees\Declarations\EmptyDeclaration.vb" />
<Compile Include="Trees\Declarations\EndBlockDeclaration.vb" />
<Compile Include="Trees\Declarations\ModifiedDeclaration.vb" />
<Compile Include="Trees\Expressions\AddressOfExpression.vb" />
<Compile Include="Trees\Expressions\BinaryOperatorExpression.vb" />
<Compile Include="Trees\Expressions\BooleanLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CallOrIndexExpression.vb" />
<Compile Include="Trees\Expressions\CastTypeExpression.vb" />
<Compile Include="Trees\Expressions\CharacterLiteralExpression.vb" />
<Compile Include="Trees\Expressions\CTypeExpression.vb" />
<Compile Include="Trees\Expressions\DateLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DecimalLiteralExpression.vb" />
<Compile Include="Trees\Expressions\DictionaryLookupExpression.vb" />
<Compile Include="Trees\Expressions\DirectCastExpression.vb" />
<Compile Include="Trees\Expressions\Expression.vb" />
<Compile Include="Trees\Expressions\ExpressionCollection.vb" />
<Compile Include="Trees\Expressions\FloatingPointLiteralExpression.vb" />
<Compile Include="Trees\Expressions\GenericQualifiedExpression.vb" />
<Compile Include="Trees\Expressions\GetTypeExpression.vb" />
<Compile Include="Trees\Expressions\GlobalExpression.vb" />
<Compile Include="Trees\Expressions\InstanceExpression.vb" />
<Compile Include="Trees\Expressions\InstanceType.vb" />
<Compile Include="Trees\Expressions\IntegerLiteralExpression.vb" />
<Compile Include="Trees\Expressions\IntrinsicCastExpression.vb" />
<Compile Include="Trees\Expressions\LiteralExpression.vb" />
<Compile Include="Trees\Expressions\NewAggregateExpression.vb" />
<Compile Include="Trees\Expressions\NewExpression.vb" />
<Compile Include="Trees\Expressions\NothingExpression.vb" />
<Compile Include="Trees\Expressions\OperatorType.vb" />
<Compile Include="Trees\Expressions\ParentheticalExpression.vb" />
<Compile Include="Trees\Expressions\QualifiedExpression.vb" />
<Compile Include="Trees\Expressions\SimpleNameExpression.vb" />
<Compile Include="Trees\Expressions\StringLiteralExpression.vb" />
<Compile Include="Trees\Expressions\TryCastExpression.vb" />
<Compile Include="Trees\Expressions\TypeOfExpression.vb" />
<Compile Include="Trees\Expressions\TypeReferenceExpression.vb" />
<Compile Include="Trees\Expressions\UnaryExpression.vb" />
<Compile Include="Trees\Expressions\UnaryOperatorExpression.vb" />
<Compile Include="Trees\Files\File.vb" />
<Compile Include="Trees\Files\ImportsDeclaration.vb" />
<Compile Include="Trees\Files\NamespaceDeclaration.vb" />
<Compile Include="Trees\Files\OptionDeclaration.vb" />
<Compile Include="Trees\Files\OptionType.vb" />
<Compile Include="Trees\Files\ScriptBlock.vb" />
<Compile Include="Trees\Imports\AliasImport.vb" />
<Compile Include="Trees\Imports\Import.vb" />
<Compile Include="Trees\Imports\ImportCollection.vb" />
<Compile Include="Trees\Imports\NameImport.vb" />
<Compile Include="Trees\Initializers\AggregateInitializer.vb" />
<Compile Include="Trees\Initializers\ExpressionInitializer.vb" />
<Compile Include="Trees\Initializers\Initializer.vb" />
<Compile Include="Trees\Initializers\InitializerCollection.vb" />
<Compile Include="Trees\IntrinsicType.vb" />
<Compile Include="Trees\Members\AddHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\Charset.vb" />
<Compile Include="Trees\Members\ConstructorDeclaration.vb" />
<Compile Include="Trees\Members\CustomEventDeclaration.vb" />
<Compile Include="Trees\Members\EnumValueDeclaration.vb" />
<Compile Include="Trees\Members\EventDeclaration.vb" />
<Compile Include="Trees\Members\ExternalDeclaration.vb" />
<Compile Include="Trees\Members\ExternalFunctionDeclaration.vb" />
<Compile Include="Trees\Members\ExternalSubDeclaration.vb" />
<Compile Include="Trees\Members\FunctionDeclaration.vb" />
<Compile Include="Trees\Members\GetAccessorDeclaration.vb" />
<Compile Include="Trees\Members\MethodDeclaration.vb" />
<Compile Include="Trees\Members\OperatorDeclaration.vb" />
<Compile Include="Trees\Members\PropertyDeclaration.vb" />
<Compile Include="Trees\Members\RaiseEventAccessorDeclaration.vb" />
<Compile Include="Trees\Members\RemoveHandlerAccessorDeclaration.vb" />
<Compile Include="Trees\Members\SetAccessorDeclaration.vb" />
<Compile Include="Trees\Members\SignatureDeclaration.vb" />
<Compile Include="Trees\Members\SubDeclaration.vb" />
<Compile Include="Trees\Members\VariableListDeclaration.vb" />
<Compile Include="Trees\Modifiers\Modifier.vb" />
<Compile Include="Trees\Modifiers\ModifierCollection.vb" />
<Compile Include="Trees\Modifiers\ModifierTypes.vb" />
<Compile Include="Trees\Names\GlobalNamespaceName.vb" />
<Compile Include="Trees\Names\Name.vb" />
<Compile Include="Trees\Names\NameCollection.vb" />
<Compile Include="Trees\Names\QualifiedName.vb" />
<Compile Include="Trees\Names\SimpleName.vb" />
<Compile Include="Trees\Names\SpecialName.vb" />
<Compile Include="Trees\Names\SpecialNameTypes.vb" />
<Compile Include="Trees\Names\VariableName.vb" />
<Compile Include="Trees\Names\VariableNameCollection.vb" />
<Compile Include="Trees\Parameters\Parameter.vb" />
<Compile Include="Trees\Parameters\ParameterCollection.vb" />
<Compile Include="Trees\Statements\AddHandlerStatement.vb" />
<Compile Include="Trees\Statements\AssignmentStatement.vb" />
<Compile Include="Trees\Statements\BlockStatement.vb" />
<Compile Include="Trees\Statements\CallStatement.vb" />
<Compile Include="Trees\Statements\CaseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseBlockStatement.vb" />
<Compile Include="Trees\Statements\CaseElseStatement.vb" />
<Compile Include="Trees\Statements\CaseStatement.vb" />
<Compile Include="Trees\Statements\CatchBlockStatement.vb" />
<Compile Include="Trees\Statements\CatchStatement.vb" />
<Compile Include="Trees\Statements\CompoundAssignmentStatement.vb" />
<Compile Include="Trees\Statements\ContinueStatement.vb" />
<Compile Include="Trees\Statements\DoBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfBlockStatement.vb" />
<Compile Include="Trees\Statements\ElseIfStatement.vb" />
<Compile Include="Trees\Statements\ElseStatement.vb" />
<Compile Include="Trees\Statements\EmptyStatement.vb" />
<Compile Include="Trees\Statements\EndBlockStatement.vb" />
<Compile Include="Trees\Statements\EndStatement.vb" />
<Compile Include="Trees\Statements\EraseStatement.vb" />
<Compile Include="Trees\Statements\ErrorStatement.vb" />
<Compile Include="Trees\Statements\ExitStatement.vb" />
<Compile Include="Trees\Statements\ExpressionBlockStatement.vb" />
<Compile Include="Trees\Statements\ExpressionStatement.vb" />
<Compile Include="Trees\Statements\FinallyBlockStatement.vb" />
<Compile Include="Trees\Statements\FinallyStatement.vb" />
<Compile Include="Trees\Statements\ForBlockStatement.vb" />
<Compile Include="Trees\Statements\ForEachBlockStatement.vb" />
<Compile Include="Trees\Statements\GotoStatement.vb" />
<Compile Include="Trees\Statements\HandlerStatement.vb" />
<Compile Include="Trees\Statements\IfBlockStatement.vb" />
<Compile Include="Trees\Statements\LabelReferenceStatement.vb" />
<Compile Include="Trees\Statements\LabelStatement.vb" />
<Compile Include="Trees\Statements\LineIfStatement.vb" />
<Compile Include="Trees\Statements\LocalDeclarationStatement.vb" />
<Compile Include="Trees\Statements\LoopStatement.vb" />
<Compile Include="Trees\Statements\MidAssignmentStatement.vb" />
<Compile Include="Trees\Statements\NextStatement.vb" />
<Compile Include="Trees\Statements\OnErrorStatement.vb" />
<Compile Include="Trees\Statements\OnErrorType.vb" />
<Compile Include="Trees\Statements\RaiseEventStatement.vb" />
<Compile Include="Trees\Statements\ReDimStatement.vb" />
<Compile Include="Trees\Statements\RemoveHandlerStatement.vb" />
<Compile Include="Trees\Statements\ResumeStatement.vb" />
<Compile Include="Trees\Statements\ResumeType.vb" />
<Compile Include="Trees\Statements\ReturnStatement.vb" />
<Compile Include="Trees\Statements\SelectBlockStatement.vb" />
<Compile Include="Trees\Statements\Statement.vb" />
<Compile Include="Trees\Statements\StatementCollection.vb" />
<Compile Include="Trees\Statements\StopStatement.vb" />
<Compile Include="Trees\Statements\SyncLockBlockStatement.vb" />
<Compile Include="Trees\Statements\ThrowStatement.vb" />
<Compile Include="Trees\Statements\TryBlockStatement.vb" />
<Compile Include="Trees\Statements\UsingBlockStatement.vb" />
<Compile Include="Trees\Statements\WhileStatement.vb" />
<Compile Include="Trees\Statements\WithStatement.vb" />
<Compile Include="Trees\Tree.vb" />
<Compile Include="Trees\TreeType.vb" />
<Compile Include="Trees\TypeNames\ArrayTypeName.vb" />
<Compile Include="Trees\TypeNames\ConstructedTypeName.vb" />
<Compile Include="Trees\TypeNames\IntrinsicTypeName.vb" />
<Compile Include="Trees\TypeNames\NamedTypeName.vb" />
<Compile Include="Trees\TypeNames\TypeArgumentCollection.vb" />
<Compile Include="Trees\TypeNames\TypeName.vb" />
<Compile Include="Trees\TypeNames\TypeNameCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeConstraintCollection.vb" />
<Compile Include="Trees\TypeParameters\TypeParameter.vb" />
<Compile Include="Trees\TypeParameters\TypeParameterCollection.vb" />
<Compile Include="Trees\Types\ClassDeclaration.vb" />
<Compile Include="Trees\Types\DelegateDeclaration.vb" />
<Compile Include="Trees\Types\DelegateFunctionDeclaration.vb" />
<Compile Include="Trees\Types\DelegateSubDeclaration.vb" />
<Compile Include="Trees\Types\EnumDeclaration.vb" />
<Compile Include="Trees\Types\GenericBlockDeclaration.vb" />
<Compile Include="Trees\Types\ImplementsDeclaration.vb" />
<Compile Include="Trees\Types\InheritsDeclaration.vb" />
<Compile Include="Trees\Types\InterfaceDeclaration.vb" />
<Compile Include="Trees\Types\ModuleDeclaration.vb" />
<Compile Include="Trees\Types\StructureDeclaration.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclarator.vb" />
<Compile Include="Trees\VariableDeclarators\VariableDeclaratorCollection.vb" />
<Compile Include="TypeCharacter.vb" />
</ItemGroup>
<ItemGroup>
<Folder Include="My Project\" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

File diff suppressed because it is too large Load diff

View file

@ -1,40 +1,40 @@
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
Imports System.Xml
Public Class ErrorXmlSerializer
Private ReadOnly Writer As XmlWriter
Public Sub New(ByVal Writer As XmlWriter)
Me.Writer = Writer
End Sub
Private Sub Serialize(ByVal Span As Span)
Writer.WriteAttributeString("startLine", CStr(Span.Start.Line))
Writer.WriteAttributeString("startCol", CStr(Span.Start.Column))
Writer.WriteAttributeString("endLine", CStr(Span.Finish.Line))
Writer.WriteAttributeString("endCol", CStr(Span.Finish.Column))
End Sub
Public Sub Serialize(ByVal SyntaxError As SyntaxError)
Writer.WriteStartElement(SyntaxError.Type.ToString())
Serialize(SyntaxError.Span)
Writer.WriteString(SyntaxError.ToString())
Writer.WriteEndElement()
End Sub
Public Sub Serialize(ByVal SyntaxErrors As List(Of SyntaxError))
For Each SyntaxError As SyntaxError In SyntaxErrors
Serialize(SyntaxError)
Next
End Sub
End Class
'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
Imports System.Xml
Public Class ErrorXmlSerializer
Private ReadOnly Writer As XmlWriter
Public Sub New(ByVal Writer As XmlWriter)
Me.Writer = Writer
End Sub
Private Sub Serialize(ByVal Span As Span)
Writer.WriteAttributeString("startLine", CStr(Span.Start.Line))
Writer.WriteAttributeString("startCol", CStr(Span.Start.Column))
Writer.WriteAttributeString("endLine", CStr(Span.Finish.Line))
Writer.WriteAttributeString("endCol", CStr(Span.Finish.Column))
End Sub
Public Sub Serialize(ByVal SyntaxError As SyntaxError)
Writer.WriteStartElement(SyntaxError.Type.ToString())
Serialize(SyntaxError.Span)
Writer.WriteString(SyntaxError.ToString())
Writer.WriteEndElement()
End Sub
Public Sub Serialize(ByVal SyntaxErrors As List(Of SyntaxError))
For Each SyntaxError As SyntaxError In SyntaxErrors
Serialize(SyntaxError)
Next
End Sub
End Class

View file

@ -1,71 +1,71 @@
http://www.codeplex.com/ASPClassicCompiler/license
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License.
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License.
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution.
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions.
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks.
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty.
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability.
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability.
http://www.codeplex.com/ASPClassicCompiler/license
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License.
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License.
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution.
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions.
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks.
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty.
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability.
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability.
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.