How to upgrade the corporate library to the latest version?

I am currently using the exception library features in the corporate library in several of my applications.

While I was back, I installed the corporate library on my machine to run the setup program from the Visual Studio toolbar. Everything was fine until my last project.

A few weeks ago, I used NuGet to pull out the Enterprise Libraries I needed for my project. The libraries he pulled out were version 5.0.505.0. The corporate library installed on my computer is 5.0.414.0. I initially configured everything in the project, and all the links in the configuration file were set to .414. Naturally, this did not work, so I changed everything to .505, and everything passed. Now the problem is that I need to make some changes and the editor will not start due to a version conflict.

So, I checked the MSDN and I tried to download this update , but the update will not start, indicating that an older version of Enterprise Library is installed.

I considered uninstalling and then reinstalling the latest Enterprise Library, which is likely to work. However, I wanted to check if anyone knows of a more integrated approach to updating?

Is there a way to upgrade the corporate library without uninstalling and reinstalling?

+6
source share
2 answers

From Additional Update 1 :

When upgrading from Enterprise Library 5.0, you have two options:

  • Uninstall Enterprise Library 5.0 and perform a clean install.

  • Update the corporate library 5.0 to additional update 1 from the command line: (a) rename the Enterprise Library 5.0 Optional Update the 1.msi file in Enterprise Library 5.0.msi and (b) run the following command from the command line:

msiexec / i "Enterprise Library 5.0.msi" REINSTALLMODE = vomus REINSTALL = ALL

If you want to “save” version 5.0.414.0, then back up the C: \ Program Files (x86) \ Microsoft Enterprise Library 5.0 \ Bin directory, and you can always reference build 414 from the backup directory and run the configuration tool by configuring configuration set. See Avoid configuration errors with incompatible copies of the Enterprise Library for an old article that should be up-to-date (with corresponding changes in version).

In addition, if you install Microsoft.Practices.EnterpriseLibrary.ConfigConsole.vsix from Optional Update 1 download or EnterpriseLibrary.config in NuGet will add a context-sensitive configuration tool that allows you to set the path to the binary files based on each solution (and not change the registry as in the previous method). When backing up 414 binaries, this will allow you to run the configuration tool in one solution versus 414 and in another solution versus 505.

+9
source

It is available as a Visual Studio extension through Extension Manager.

Go to Extension Manager and search for enterpriseiselibrary.config in the online gallery. Current version is 5.0.0505.0.

+1
source

Source: https://habr.com/ru/post/912878/


All Articles