external config file reference error

mark.garcia's Avatar

mark.garcia

08 May, 2019 05:19 AM

This is how we've setup our config. I just enabled mvc view build to true but when it gets deployed now to appveyor, the build fails now with the not found error (screen cap attached)

web.config snippet
<connectionStrings configSource="ConnectionStrings_Debug.config"></connectionStrings>

How can I go around this please

  1. Support Staff 1 Posted by Ilya Finkelshte... on 09 May, 2019 01:41 AM

    Ilya Finkelshteyn's Avatar

    Hi Mark,

    It would be good to have more detailed information about the problem, but from what I see, it seems that file is not copied to the folder your test expects it to be. This exposed on AppVeyor because it runs builds on fresh VMs and will be probably reproduced on any non-AppVeyor fresh VM the same way. I would look into Copy to Output Directory setting.

    Ilya.

  2. 2 Posted by mark.garcia on 09 May, 2019 05:42 AM

    mark.garcia's Avatar

    The thing is I don't want to include these files in git.

    Mark Garcia
    Senior .Net Developer
    E: [email blocked]
    M: +6596460431 / +639171406797
    [http://d28l61qq20dt5c.cloudfront.net/bg-logo_Char170.png]<http://www.buchanangroup.com/>
    buchanangroup.com<http://www.buchanangroup.com/>

    ________________________________

  3. Support Staff 3 Posted by Ilya Finkelshte... on 09 May, 2019 08:53 PM

    Ilya Finkelshteyn's Avatar

    But the same time you have some test which depend of this specific file? We really need more detailed explanation to be able to help.

  4. Ilya Finkelshteyn closed this discussion on 09 Jul, 2019 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac