Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Generate an MVC Project Folder and Files Using Web API 2.2

Generate an MVC Project Folder and Files Using Web API 2.2

Scheduled Pinned Locked Moved ASP.NET
asp-netjsonarchitecturequestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Liagapi
    wrote on last edited by
    #1

    Is it possible to generate an MVC project folder and files using Web API 2.2? I'd like to know because I need to generate MVC project folder and files dynamically.

    L 1 Reply Last reply
    0
    • L Liagapi

      Is it possible to generate an MVC project folder and files using Web API 2.2? I'd like to know because I need to generate MVC project folder and files dynamically.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can do it with Visual Studio.

      M 1 Reply Last reply
      0
      • L Lost User

        You can do it with Visual Studio.

        M Offline
        M Offline
        MadDashCoder
        wrote on last edited by
        #3

        I guess my question is not very clear. What I meant is can a web project folder and web files (.cshtml, web.config, etc.) be generated using functions we write in a Web API after the Web API project has been built and deployed to the server. Basically the question is, can we send a call to the Web API functions at run time to create a web project folder and web files dynamically (meaning this happens after building and deploying our Web API project to the server).

        L M 2 Replies Last reply
        0
        • M MadDashCoder

          I guess my question is not very clear. What I meant is can a web project folder and web files (.cshtml, web.config, etc.) be generated using functions we write in a Web API after the Web API project has been built and deployed to the server. Basically the question is, can we send a call to the Web API functions at run time to create a web project folder and web files dynamically (meaning this happens after building and deploying our Web API project to the server).

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Well, assuming you have the skills to create all the files then I would guess it is possible. BTW, why are you using two accounts here? You should close one of them.

          1 Reply Last reply
          0
          • M MadDashCoder

            I guess my question is not very clear. What I meant is can a web project folder and web files (.cshtml, web.config, etc.) be generated using functions we write in a Web API after the Web API project has been built and deployed to the server. Basically the question is, can we send a call to the Web API functions at run time to create a web project folder and web files dynamically (meaning this happens after building and deploying our Web API project to the server).

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            You can generate the files on the server and pass them to the client but if the client is a browser then it will be a download as it cannot write to the local disk. Otherwise you are going to have to write a client to write the file to disk.

            Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups