1. In Visual Studio, create a new Razor v1 web site
2. Using the NuGet Package Manager, install the "Microsoft ASP.NET Web Pages" package to upgrade the site to version 2.
3. Note the changes made to /bin and web.config, and then install Microsoft ASP.NET Web Pages 2 Administration.
Result: The package adds a reference to System.Web.WebPages.Administration to web.config even if the latest version is already in the site's /bin folder. This will causes the assembly to effectively be loaded twice, causing untold woe if you try to run the site.
Expected: We ought to be smarter in the install script about whether we need to add a web.config reference to the assembly. In this case, because a version of the assembly already exists in /bin, I'd expect the package to only update that assembly.
Comments: We don't ship this package anymore.
2. Using the NuGet Package Manager, install the "Microsoft ASP.NET Web Pages" package to upgrade the site to version 2.
3. Note the changes made to /bin and web.config, and then install Microsoft ASP.NET Web Pages 2 Administration.
Result: The package adds a reference to System.Web.WebPages.Administration to web.config even if the latest version is already in the site's /bin folder. This will causes the assembly to effectively be loaded twice, causing untold woe if you try to run the site.
Expected: We ought to be smarter in the install script about whether we need to add a web.config reference to the assembly. In this case, because a version of the assembly already exists in /bin, I'd expect the package to only update that assembly.
Comments: We don't ship this package anymore.