Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a problem to download this package in C++/CLI project. Once I browsed the package in VS2017 orVS2015 and try to install it,am getting always like the attached error.
Could you please help me how can i solve this issue?

The error is : Could not install pacake ( Microsoft.Data.Sqlite 1.0.0.) You are trying to install this package into a project that targets 'native, Version =v0.0', but the package does not contain any assembly references or contain files that are compatible with that framwork. For more infomration, contact the package author.

What I have tried:

I tried with many versions of this pacakge, unlikely, I am getting always same error.
Posted
Updated 30-Jan-19 7:07am
v2

Check your project type: C++/CLI is a .NET / CLR project type, but the error says that you're trying to add a .NET reference to a Native project, not CLR. Also check what version of .NET you are targeting, if it genuinely is a CLR project.

If in doubt, create a band new CLI project and try adding the reference to that.
 
Share this answer
 
Comments
EngAb1989 30-Jan-19 4:40am    
Thanks to replay
I have checked my project again, the project type is C++/CLI, .NET Target Framework is v4.5.2. By using tool->NuGet package manager, and browsing Microsoft.Data.Sqlite, I become two different pacakges ( one is System.Data.Sqlite and another is System.Data.Sqlite.Core) the first one can be installed without any problem but if i want to reference it, I can not find it, as well as, if I write under namespace ( Using namespace System::Data::Sqlite, I got red line under sqlite which means it is not available...... For the second package with core end, I can not at all download it, I am still becoming the same error as shown above in the question.
Try a newer version of Sqlite, the "1.0.0" can have in company tradition of Microsoft containing some "tasty bugs". ;-)
 
Share this answer
 
Comments
EngAb1989 31-Jan-19 2:45am    
Thanks for given link. However, how can I reference this download in Visual studio ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900