Seriously bummed by this. Wanted to give BigInteger's a spin, but:
The type or namespace name" 'BigInteger' could not be found ...
I know how to add assembly references and such, but there is NO System.Numerics present at all - or then I'm completely and utterly blind.
How to fix?
Using Microsoft Visual Studio Community 2015.
In project properties:
Target framework: .NET Framework 4.5.2
System.Numerics is present (and selected) in Frameworks:
But still, even something this simple:
using System;
using System.Numerics;
namespace CCHfT
{
class Program
{
static void Main(string[] args)
{
BigInteger b = 0;
Console.WriteLine($"...{b}");
}
}
}
...fails with the error message mentioned earlier.
It appears that you're not looking in the right place. From your screenshot you can see that you're missing a ton of System.
assemblies, and the ones that are shown all have older versions. This looks like what you would see under the COM -> Type Libraries
section of the References Manager window.
Try selecting Assemblies -> Framework
. You should see something like "Targeting: .NET Framework 4.5.2"
at the top, and System.Numerics 4.0.0.0
in the list:
Also, ensure that after clicking 'OK' on the References window, that the reference appears under your Project Properties:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With