Skip to content

Create app.config file if it's missing and binding redirects requested #808

Closed

Description

@theimowski

Extracted from #806
I think create app.config for every project that has its corresponding references file would do the job

/cc @isaacabraham

Activity

  1. davidfowl commented on May 2, 2015

    @davidfowl

    Does packet work in ASP.NET 4.x projects as well? What about web.config?

  2. isaacabraham commented on Sep 3, 2015

    @isaacabraham
    Contributor

    I'm on this one now.

  3. added a commit that references this issue on Sep 3, 2015
  4. isaacabraham commented on Sep 3, 2015

    @isaacabraham
    Contributor

    I've done the main work of creating an app.config and associated BRs in it - is there an easy example somewhere of how to add a file reference to a cs/fs/vb proj file somewhere in the source?

  5. pavel-khritonenko commented on Sep 10, 2015

    @pavel-khritonenko

    Hm... but I don't need app.config for my class libraries. Actually I need it only for assemblies with entry point and for tests assemblies.

    Furthermore, for FSharp projects app.config should be included with Build Action = Content otherwise it will cause unwanted rebuilds of this project.

  6. forki commented on Sep 10, 2015

    @forki
    Member

    @isaac_abraham could you please look into this?

  7. isaacabraham commented on Sep 10, 2015

    @isaacabraham
    Contributor

    How do we identify unit test projects? This was actually the trigger behind this change I.e. Allow unit tests to run properly. We need some way of identifying what a "unit test" project is.

    You're right about content, that should have been done originally.

  8. isaacabraham commented on Sep 10, 2015

    @isaacabraham
    Contributor

    Hmm, just checked - newly added config files are added as Content files.

  9. pavel-khritonenko commented on Sep 11, 2015

    @pavel-khritonenko

    How do we identify unit test projects?

    I added myself app.config for all project where it is needed and I just don't want that paket do it for me.

  10. dzendras commented on Oct 19, 2015

    @dzendras

    +1 for paket not adding app.config files.

    In my setup, config files are generated during the build (from some other config files) and copied to app.config. Therefore app.config is always a derived thing and is not even added to my *.csproj files.
    I'd go mad if running paket would recreate and readd this file to my project.

    So if you consider doing so, please make it an optional feature.

  11. forki commented on Oct 19, 2015

    @forki
    Member

    it's aöready optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions