Good day,
I have a ASP.NET project targeting the .NET Framework v4.7.2 (32 bit) which has the following Syncfusion nuget package references:
- Syncfusion.Compression.Base 19.2.0.47
- Syncfusion.DocIO.AspNet.Mvc5 19.2.0.47
- Syncfusion.Licensing 19.2.0.47
- Syncfusion OfficeChart.Base 19.2.0.47
- Syncfusion.Pdf.AspNet.Mvc5 19.2.0.47
- Syncfusion.XlsIO.AspNet.Mvc5 19.2.0.47
So, all references are from the same version (19.2.0.47), and all asp.net are from the mvc5 type.
Whenever I compile the project, Visual Studio shows a lot of messages regarding version mismatch, like this:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2202,5): warning MSB3277: Found conflicts between different versions of "Syncfusion.Compression.Base" that could not be resolved.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2202,5): warning MSB3277: There was a conflict between "Syncfusion.Compression.Base, Version=19.2450.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" and "Syncfusion.Compression.Base, Version=19.2460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89".
There are many more lines, I just showed 2 for the sake of brevity.
I checked the (nuget) packages folder for the solution and found that the only Nuget Package available for XlsIO is the one located in Syncfusion.XlsIO.AspNet.Mvc5.19.2.0.47\lib\net45, while many other packages have versions for other frameworks up to net46.
And inside this folder, besides the obvious Syncfusion.XlsIO.Base.dll, there's a version of Syncfusion.Compression.Base.dll that is 19.2450.0.47 instead of 19.2460.0.47, which I guess is the one causing the warnings.
The problem is not the warnings themselves, but is that other Visual Studio project that is part of the same solution (the "entry point" project) has a bin folder which does not contain libraries that cause the conflict, thus when deploying the solution a yellow screen of death is shown.
I tried setting the binding redirects in web.config, but although this may fix the wrong bindings, it doesn't help with Visual Studio copying the referenced DLLs, because it doen't know which one to copy, so the bin folder ends up with missing DLL files.
To clarify further, the project with the SF references compiles ok and its bin folder contains all the DLLs (although with mismatched version), but other projects that reference the former one end up with their bin folder incomplete.
Is there any known workaround to this version issue?
Thank you
Alejandro
Mvc5 NuGet Package |
AspNet NuGet Package of respective controls |
Syncfusion.DocIO.AspNet.Mvc5 |
Syncfusion.DocIO.AspNet |
Syncfusion.Pdf.AspNet.Mvc5 |
Syncfusion.Pdf.AspNet |
Syncfusion.XlsIO.AspNet.Mvc5 |
Syncfusion.XlsIO.AspNet |
Hello Lokesh,
I'll update the packages to the latest version ( v19.2.0.49) and I'll come back to you with the results.
Thank you for your response
Regards
Alex