I have a WinForms type project in .NET Standard 2.0. I want to make an msi file for in the testing environment.
However, when I compile the source project (WinForms) everything goes well.
When I build the project that generates the msi, I get the error:
Unable to find dependency 'SYSTEM. DATA. ODBC' (Signature-'B03F5F7F11D50A3A' Version-'0.0.0.0') of assembly 'GenericDataAccess'.
I checked where I use the Nuget package called SYSTEM. DATA. ODBC and I saw that its dependencies nuget.org are NET Standard 2.0. It also supports NET Framework 4.7.2. So, I tried to downgrade the component to this version to see if that worked. But when I downgrade it, I get the following error when trying to build the MSI file:
Unable to find dependency 'SYSTEM. Diagnostics. TRACING' (Signature-'B03F5F7F11D50A3A' Version-'0.0.0.0') of assembly 'netstandard.dll'
And that's not the only dependency that fails. How can I validate dependencies to prevent compilation errors?