You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to the latest version(4.5.2.0), a second MvcSiteMapProvider_IncludeAssembliesForScan was added in my web.config in app settings. That was a problem, because it was in the end, and my app used this.
The text was updated successfully, but these errors were encountered:
Unfortunately, the NuGet documentation for what is needed to move this configuration setting into a script is not available yet.
There are some alternative ways to fix the updating issues that I have proposed here and here, but neither has been implemented. It might help if you PLEASE VOTE UP those issues to raise their priority with the NuGet team.
The main problem is that NuGet doesn't provide:
A way to specify not to upgrade a specific file.
A way to install the latest version of a dependency when installing on a new project, but never update it if you are upgrading.
Basically, there is no realistic way to deal with configuration in NuGet - this particular problem is using the "built-in" way to upgrade web.config (and as you can see, it doesn't work right). The rest of the web.config settings are added using the XmlDocument object and some custom PowerShell scripts, but this one is special because it is resolved at install time. I have made several attempts to get information on how to work around this issue, but so far no luck.
There are currently 2 options that you could use if you don't want to deal with this
Use the allowedVersions attribute in your packages.config file so the MvcSiteMapProvider.Web package isn't updated (I haven't confirmed this works).
Use the MvcSiteMapProvider.MVCx.Core package rather than MvcSiteMapProvider.MVCx and then manually install the configuration from the MvcSiteMapProvider.Web package. If you manually install the configuration, NuGet won't upgrade it inadvertently. See this post for some help with that.
After updating to the latest version(4.5.2.0), a second MvcSiteMapProvider_IncludeAssembliesForScan was added in my web.config in app settings. That was a problem, because it was in the end, and my app used this.
The text was updated successfully, but these errors were encountered: