Enterprise Library and .NET 4.0 Configuration

I have a class library created in .NET 4.0. When I use the corporate library configuration tool to download this assembly, I get:

Assembly load error: Could not load file or assembly. This assembly is built using a runtime that is newer than the currently loaded runtime and cannot be loaded.

I tried the Configuraiton tool in both the Enterprise Application blocks and in beta versions 4.1 and 5.0..NET 4.0 is not supported by the configuration tool.

alt text http://www.freeimagehosting.net/uploads/th.d7fde7a166.jpg

+3
source share
1 answer

, EntLibConfig.exe .NET 2.0 , , .NET 2.0. EntLibConfig.exe .NET 4.0, EntLibConfig.exe.config.

promises , EntLibConfig.exe.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <startup>
      <!-- Find out the exact version number and 
          put that in the version attribute. -->
      <requiredRuntime version="v4.0.0.0" />
   </startup>
   ...
</configuration>

, .

, Enterprise Library, EntLib.

+2

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


All Articles