Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assembly mismatch! #1207

Closed
deokershesh opened this issue Dec 29, 2019 · 3 comments
Closed

Assembly mismatch! #1207

deokershesh opened this issue Dec 29, 2019 · 3 comments
Labels
area-Meta question Answer questions and provide assistance, not an issue with source code or documentation. untriaged New issue has not been triaged by the area owner

Comments

@deokershesh
Copy link

I have built Informix.Net.Core.dll (from System.Data.Odbc.dll by making appropriate changes) successfully and entire .NET Core 3.1 (from 'git clone https://github.com/dotnet/runtime.git'). While trying to create simple sample program referencing "Informix.Net.Core", I get below set of warnings and errors. Not sure what I am missing, any help would be appreciated.

C:\Program Files\dotnet\sdk\3.1.100\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Transactions.Local" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [D:\shesh\DOTNET-Core-Informix-code\VS2019_projects\MyApp\MyApp.csproj]

CSC : error CS1705: Assembly 'Informix.Net.Core' with identity 'Informix.Net.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' uses 'System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Data.Common' with identity 'System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [D:\shesh\DOTNET-Core-Informix-code\VS2019_projects\MyApp\MyApp.csproj]

Program1.cs(23,38): error CS1705: Assembly 'Informix.Net.Core' with identity 'Informix.Net.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' uses 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [D:\shesh\DOTNET-Core-Informix-code\VS2019_projects\MyApp\MyApp.csproj]

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Dec 29, 2019
@mikedn
Copy link
Contributor

mikedn commented Dec 29, 2019

entire .NET Core 3.1 (from 'git clone https://github.com/dotnet/runtime.git').

This repository produces a .NET Core 5.0 build, if you want 3.1 you'll need to the appropriate branch in the old corefx repo, presumably https://github.com/dotnet/corefx/tree/release/3.1

@deokershesh
Copy link
Author

I am confused, may be I got it wrong, I picked up entire "https://github.com/dotnet/runtime.git", built it and changed, System.Data.Odbc to Informix.Net.Core and created respective Informix.Net.Core.dll. I intend to use .NET Core 3.1 runtime. Should I get "https://github.com/dotnet/corefx/tree/release/3.1" for the same? Basically, I intend to create .NET Core 3.1 Provider/Driver for Informix database.

I already have the Informix Provider working with .NET Core 2.2, which I picked from "https://github.com/dotnet/corefx.git" may be few months back!

@mikedn
Copy link
Contributor

mikedn commented Dec 29, 2019

Should I get "https://github.com/dotnet/corefx/tree/release/3.1" for the same? Basically, I intend to create .NET Core 3.1 Provider/Driver for Informix database.

Yes. This repository is setup only for the future 5.0 release.

@jkotas jkotas added question Answer questions and provide assistance, not an issue with source code or documentation. area-Meta labels Dec 29, 2019
@jkotas jkotas closed this as completed Dec 29, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Meta question Answer questions and provide assistance, not an issue with source code or documentation. untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants