Hey, this is an English text. I want you to translate it into the Tunisian dialect.…
- User
Hey, this is an English text. I want you to translate it into the Tunisian dialect. Please follow these steps:
- Translate step by step and highlight differences between Tunisian dialect and Modern Standard Arabic.
- Highlight sections you are confident translating into the Tunisian dialect. Translate this text into the Tunisian dialect, focusing on capturing the essence of the language nuances:
Q: No way to resolve conflict between log4net from GAC and log4net from project I'm developing a C# library project with .NET Framework 4.6.2 and log4net 2.0.8. When I try to compile the project I get the following error: error CS0433: The type 'log4net.ILog' exists in 'c:\Windows\assembly\GAC_32\log4net\1.2.10.0__692fbea5521e1304\log4net.dll' and also in 'd:\Desarrollo\packages\log4net.2.0.8\lib\net45-full\log4net.dll' It seems that there is another version of log4net in GAC. Why does it use the GAC version to compile? I have another projects with log4net and only in this one I get this error. The reference for log4net is D:\Desarrollo\packages\log4net.2.0.8\lib\net45-full\log4net.dll. And it sets as local copy. I have installed the package and added again with the same error. The detailed error is this: 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3243: No way to resolve conflict between "log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" and "log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304". Choosing "log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" arbitrarily. 1>D:\MyProject\Loggers\ActionLogHelper.cs(28,20,28,24): error CS0433: The type 'ILog' exists in both 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' and 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' 1>D:\MyProject\Loggers\ActionLogHelper.cs(30,26,30,30): error CS0433: The type 'ILog' exists in both 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' and 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' 1>D:\MyProject\Loggers\ExceptionLogHelper.cs(22,20,22,24): error CS0433: The type 'ILog' exists in both 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' and 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' 1>D:\MyProject\Loggers\ExceptionLogHelper.cs(24,29,24,33): error CS0433: The type 'ILog' exists in both 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' and 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== A: The problem was that there were two references to the same dll in the project file. I have opened the project file with Notepad++ and I have found this inside: ......\packages\log4net.2.0.8\lib\net45-full\log4net.dll True ......\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll True ......\packages\Ninject.3.2.2.0\lib\net45-full\Ninject.dll True ......\packages\log4net.2.0.3\lib\net40-full\log4net.dll I have removed the last one, and now it compiles.
- Assistant