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?










share|improve this question


























    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?










    share|improve this question
























      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      SGoldwin

      506




      506





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          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





































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          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




















































































          Popular posts from this blog

          Full-time equivalent

          さくらももこ

          13 indicted, 8 arrested in Calif. drug cartel investigation