Developing Angular 5 against masterWeb in IIS
up vote
0
down vote
favorite
I have a big .net Web application solution built with Visual Studio 2017 pro. One of it's projects is wwwroot with the "MasterWeb" - lots of web pages and functions.
Now I need to build a new small part as an SPA using Angular 5. I am new to Angular but I got a small Angular 5 project running in VisualStudio as a single project/solution. The development process against IIS Express works fine. Code changes are automatically updated to IIS express instance with a page reaload.
I've built production files using:
- ng build -prod --base-hrefs="/MasterWeb/mobile" --deploy-url "/MasterWeb/mobile/"
In IIS manager I created a virtual directory "Mobile" in the application "MasterWeb" and pointed out my dist-directory with previuos built files.
This SPA runs fine using url "/localhost/MasterWeb/mobile/index.html".
Now for my problem.
Since I need to add call web services in the MasterWeb I would like my code changes in "mobile" be directly updated to MasterWeb without have to "build to prod" each time.
Perhaps am I tarageting this the wrong way but I would like to have MasterWeb and Mobile as to separate VS solutions but targeting the same Web application instance.
Development changes in both MasterWe VS solution and Mobile VS solution should automatically reflected when running these pages.
Suggestions on how to accomplish this?
visual-studio-2017 iis-7 angular5 iis-express
add a comment |
up vote
0
down vote
favorite
I have a big .net Web application solution built with Visual Studio 2017 pro. One of it's projects is wwwroot with the "MasterWeb" - lots of web pages and functions.
Now I need to build a new small part as an SPA using Angular 5. I am new to Angular but I got a small Angular 5 project running in VisualStudio as a single project/solution. The development process against IIS Express works fine. Code changes are automatically updated to IIS express instance with a page reaload.
I've built production files using:
- ng build -prod --base-hrefs="/MasterWeb/mobile" --deploy-url "/MasterWeb/mobile/"
In IIS manager I created a virtual directory "Mobile" in the application "MasterWeb" and pointed out my dist-directory with previuos built files.
This SPA runs fine using url "/localhost/MasterWeb/mobile/index.html".
Now for my problem.
Since I need to add call web services in the MasterWeb I would like my code changes in "mobile" be directly updated to MasterWeb without have to "build to prod" each time.
Perhaps am I tarageting this the wrong way but I would like to have MasterWeb and Mobile as to separate VS solutions but targeting the same Web application instance.
Development changes in both MasterWe VS solution and Mobile VS solution should automatically reflected when running these pages.
Suggestions on how to accomplish this?
visual-studio-2017 iis-7 angular5 iis-express
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a big .net Web application solution built with Visual Studio 2017 pro. One of it's projects is wwwroot with the "MasterWeb" - lots of web pages and functions.
Now I need to build a new small part as an SPA using Angular 5. I am new to Angular but I got a small Angular 5 project running in VisualStudio as a single project/solution. The development process against IIS Express works fine. Code changes are automatically updated to IIS express instance with a page reaload.
I've built production files using:
- ng build -prod --base-hrefs="/MasterWeb/mobile" --deploy-url "/MasterWeb/mobile/"
In IIS manager I created a virtual directory "Mobile" in the application "MasterWeb" and pointed out my dist-directory with previuos built files.
This SPA runs fine using url "/localhost/MasterWeb/mobile/index.html".
Now for my problem.
Since I need to add call web services in the MasterWeb I would like my code changes in "mobile" be directly updated to MasterWeb without have to "build to prod" each time.
Perhaps am I tarageting this the wrong way but I would like to have MasterWeb and Mobile as to separate VS solutions but targeting the same Web application instance.
Development changes in both MasterWe VS solution and Mobile VS solution should automatically reflected when running these pages.
Suggestions on how to accomplish this?
visual-studio-2017 iis-7 angular5 iis-express
I have a big .net Web application solution built with Visual Studio 2017 pro. One of it's projects is wwwroot with the "MasterWeb" - lots of web pages and functions.
Now I need to build a new small part as an SPA using Angular 5. I am new to Angular but I got a small Angular 5 project running in VisualStudio as a single project/solution. The development process against IIS Express works fine. Code changes are automatically updated to IIS express instance with a page reaload.
I've built production files using:
- ng build -prod --base-hrefs="/MasterWeb/mobile" --deploy-url "/MasterWeb/mobile/"
In IIS manager I created a virtual directory "Mobile" in the application "MasterWeb" and pointed out my dist-directory with previuos built files.
This SPA runs fine using url "/localhost/MasterWeb/mobile/index.html".
Now for my problem.
Since I need to add call web services in the MasterWeb I would like my code changes in "mobile" be directly updated to MasterWeb without have to "build to prod" each time.
Perhaps am I tarageting this the wrong way but I would like to have MasterWeb and Mobile as to separate VS solutions but targeting the same Web application instance.
Development changes in both MasterWe VS solution and Mobile VS solution should automatically reflected when running these pages.
Suggestions on how to accomplish this?
visual-studio-2017 iis-7 angular5 iis-express
visual-studio-2017 iis-7 angular5 iis-express
asked Nov 10 at 11:08
SGoldwin
506
506
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238336%2fdeveloping-angular-5-against-masterweb-in-iis%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password