Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:51:26+00:00 2026-06-14T03:51:26+00:00

I just created a custom nuget package with the goal of packaging our Devart

  • 0

I just created a custom nuget package with the goal of packaging our Devart dlls s.t. we have a proper versioning and updating mechanism in place throughout all of our projects.

The structure of the Nuget package is according to the instructions on the offical wiki and looks as follows:

  • DevartOracle
    • content
      • web.config.transform
    • lib
      • Devart.Data.Oracle.dll
      • …
    • DevartOracle.nuspec

The content of the nuspec file is more or less the following:

<?xml version="1.0"?>
<package >
  <metadata>
    <id>DevartOracle</id>
    <version>6.70.311-pre6</version>
    <title>Devart Oracle dotConnect</title>
    ...
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>Drivers from Devart for Oracle and Entity Framework</description>
    <releaseNotes></releaseNotes>
    <copyright>Copyright 2012</copyright>
    <tags></tags>
    <dependencies>
    </dependencies>
  </metadata>
</package>

Nothing special actually. I publish the nuget package to our local repository using the following command:

nuget pack DevartOracle.nuspec

The dll’s install just fine, however I also wanted to create a web.config merge. So I added a web.config.transform file as specified in the docs…again with the following content:

 <?xml version="1.0" encoding="utf-8"?>
  <configuration>
    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="Devart.Data.Oracle" publicKeyToken="09af7300eec23701" culture="neutral" />
          <bindingRedirect oldVersion="0.0.0.0-6.70.311.0" newVersion="6.70.311.0" />
        </dependentAssembly>
      </assemblyBinding>
    </runtime>
    <system.data>
      <DbProviderFactories>
        <remove invariant="Devart.Data.Oracle" />
        <add name="dotConnect for Oracle" invariant="Devart.Data.Oracle" description="Devart dotConnect for Oracle" type="Devart.Data.Oracle.OracleProviderFactory, Devart.Data.Oracle, Version=6.70.311.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
      </DbProviderFactories>
    </system.data>
  </configuration>

The Problem

When I execute the merge into a web.config with a non-existent or empty <assemblyBinding> section everything works as expected, however when I have – say – the follwing content already there:

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

then the result of the merge is this odd one:

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
      <assemblyIdentity name="Devart.Data.Oracle" publicKeyToken="09af7300eec23701" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-6.70.311.0" newVersion="6.70.311.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

Any ideas??


Update:

A Microsoft employee and active NuGet developer posted an update on Twitter which might be worth sharing here as info:
https://twitter.com/dotnetjunky/status/266533404143656960

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:51:28+00:00Added an answer on June 14, 2026 at 3:51 am

    By design, NuGet only allows to append changes to an existing XML file (merge works for any file of type XML, no matter what extension, as long as your file to merge is named using the convention of {filename}.{extension}.transform).

    This is because NuGet also needs to be able to uninstall the changes made by a package installation (unless you manually made modifications to the changed file after installation, in which case NuGet will leave it untouched upon uninstall).

    This is very different from what you expect from XML Config Transforms which is probably causing the confusion here.

    If you want real transformations on the target file, you’ll have to go the PowerShell route and do so by scripting an install.ps1 and uninstall.ps1 file within the package’s tools folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just created a mid-sized web-application using Java, a custom MVC framework, javascript.
I have created a custom module and am trying to include a block just
I have created a custom View (let's call it MyView ) which basically just
I've just created a custom carousel with images and have got previous/next arrows to
I have created custom workflow and successfully deployed it on Alfresco. I just copied
I've just created a custom taglib which runs fine with Jetty. When using TomCat
Just created a WSS site with a some custom web-parts. But I get an
I've created a custom view class and right now just want to draw an
Just created a .dll file that has some methods. And I have a another
I just created a custom schema formatter by extending sfWidgetFormSchemaFormatter for my forms. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.