MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.88k stars 847 forks source link

Can't install NBitcoin with Nuget Package #282

Closed sacromentus closed 7 years ago

sacromentus commented 7 years ago

I get this error when I try to add NBitcoin into a new project:

Error Could not install package 'NBitcoin 4.0.0.38'. 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 content files that are compatible with that framework. For more information, contact the package author.

NicolasDorier commented 7 years ago

What project have you created ?

sacromentus commented 7 years ago

I created a Visual C++ console application. I understand it is a C# library but I don’t see any relevant projects to start under C#. Sorry for my Visual Studio n00b status; I’m not super familiar with this interface and how it works. I’m used to opening up vi or vim and just using g++ from the terminal to compile

From: Nicolas Dorier Sent: Thursday, September 14, 2017 12:25 AM To: MetacoSA/NBitcoin Cc: sacromentus; Author Subject: Re: [MetacoSA/NBitcoin] Can't install NBitcoin with Nuget Package(#282)

What project have you created ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

NicolasDorier commented 7 years ago

NBitcoin is a C# library, you can't use it in C++.

NicolasDorier commented 7 years ago

Sorry I think I have closed a bit too fast

Please read https://github.com/ProgrammingBlockchain/ProgrammingBlockchain/ it shows you how to get started.