Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Logan P. 47 posts 217 karma points
    Feb 05, 2016 @ 20:49
    Logan P.
    0

    Creating a NuGet package for backoffice extension.

    I have developed a package and have created an Umbraco Package just fine. I have also created a nuget package that copies my files & dll correctly. The issue I am running into is adding entries to the application.config and dashboard.config. With the umbraco package, it was as easy as adding the package actions. With nuget, I don't even know where to begin. If anyone could give me push in the right direction that would be awesome.

    Thanks!

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 06, 2016 @ 09:48
    Dave Woestenborghs
    0

    Hi Logan,

    Here you can see the code that I use to create a Umbraco Package and Nuget package.

    https://bitbucket.org/dawoe/embed-property-editor/src/1720f8b0e81b0723241f25f4def3e7451ad244bd/Packaging/?at=master

    Dave

  • Logan P. 47 posts 217 karma points
    Feb 08, 2016 @ 16:10
    Logan P.
    0

    Hi Dave,

    Thanks for the sample. However, I am not having a problem creating a nuget package, I can do that fine. What I am having trouble with is getting Nuget to write to the dashboard.config and the application.config. Unless I missed it, I didn't see in your package where that is happening.

    Thanks

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 08, 2016 @ 16:29
    Dave Woestenborghs
    1

    Hi Logan,

    Haven't tried changing config files yet with a nuget package.

    Maybe this can help you out ? https://docs.nuget.org/create/configuration-file-and-source-code-transformations

    Haven't tried it but let me know if you can use it.

    Dave

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 08, 2016 @ 16:31
  • Logan P. 47 posts 217 karma points
    Feb 08, 2016 @ 19:06
    Logan P.
    0

    Awesome! Thanks for the resources Dave. I got it working using the XDT transforms for the XML files. Just one thing to note for future developers trying to do the same thing. It wasn't obvious to me that in order to run your XDT transform on installation all that you have to do is put the .xdt file in the folder that contains the target config file.

    Thanks again!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies