visual studio - VS2010 - 2 projects, 1 solution - debug both under 1 instance -
what want can't unusual. in solution, have mvc3 project , webforms project. mvc3 project meat & potatoes of application- it's user interact with. 2nd project going shared "content delivery" project. it'll shared many projects. there nothing in says has webforms, it's meant static css/js/images.
on top of that, i'd use built-in vs.net development server.
i have tried variety of things:
- setting mvc project start-up project , without "always start when debugging" property set true/false (result: can't access files in /webforms project)
- setting multiple start-up projects (result: 2 instances of development server run on different ports)
- setting webforms project reference main mvc project(result: can't access files in /webforms project)
- setting virtual path under properties --> build webform project (result: can't access files in /webforms project)
my goal to:
- keep these 2 separate projects
- when run mvc project, can access files in other project virtual directory (e.g. /webforms/images/whatever.png)
- keep using vs.net development server
as said - doesn't seem should hard, i'm pulling big fat failure.
ultimately, violated 3rd bullet above , went ahead decided use iis express.
an overview w/ download link is: http://learn.iis.net/page.aspx/868/iis-express-overview/
i had specify same port in web --> use local iis web server: http://localhost:5599/mvcapplication (ideally, root- but, couldn't figure out) http://localhost:5599/webform
all paths images , whatnot absolute: /webform/images/whatever.jpg
i set webform property not "always start when debugging" , start action of "don't open page. wait request...".
overall - solves first 2 bullets needed , it's still 1-click debug (hitting f5).
Comments
Post a Comment