Results 1 to 5 of 5

Thread: How to copy web.config to root of build directory?

  1. #1
    Sencha Premium User
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    1,353

    Default How to copy web.config to root of build directory?

    I have a web.config file in the root of my application folder that I want to be included in the build output directory. What do I have to put in my app.json to achieve this?

    Thanks.

  2. #2
    Sencha Premium User
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    1,353

    Default

    Silly me. It's as simple as this:

    Code:
    "resources": [
        "web.config"
    ]
    I was thinking that "resources" meant my resources directory but it doesn't appear to be limited to that at all, which is good.

  3. #3
    Sencha Premium User
    Join Date
    Feb 2016
    Posts
    2

    Default

    Hello @marc.fearby

    I'm attempting to do the same thing however it is not working for me.

    Our application structure is a .Net Web app and our Sencha code is in a subdirectory under that.

    When we call our Sencha Build we're changing dir to the subdirectory.

    Is it possible that the app.json cannot find the web.config because it's in the root folder of the Web App?

    My other question is we already have a "resources" array in the app.json so would we just add another item to the array like this:
    "resources": [
    {
    "path": "resources",
    "output": "shared"
    },
    {
    "path": "web.config"
    }
    ],

  4. #4
    Sencha Premium User
    Join Date
    Feb 2016
    Posts
    2

    Default

    Update: changing the path to "path": "../web.config" allowed it to find the web.config however it's placing it in the resources folder instead of the root folder.

    Any suggestions on how to accomplish this? I'm reading through the documentation but nothing is jumping out at me yet.

  5. #5
    Sencha Premium User
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    1,353

    Default

    I separated my front-ends in Ext JS from the Visual Studio solution directory many years ago. I gave up trying to get them to play nicely together in the one parent folder, and now I quite like having them completely separate.

Similar Threads

  1. Replies: 1
    Last Post: 26 Jun 2016, 10:26 AM
  2. Replies: 1
    Last Post: 10 Feb 2014, 1:44 PM
  3. Replies: 0
    Last Post: 12 Nov 2012, 8:32 AM
  4. Is is possible to change root directory of application files?
    By rvelasquez in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 8 Apr 2012, 6:00 AM
  5. Tweaked 'Copy source to the following directory'
    By watrboy00 in forum Sencha Cmd
    Replies: 8
    Last Post: 16 Apr 2009, 5:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •