I'm using VS 2013. I want to use the system.numerics.biginteger structure but VS says there is no such namespace as system.numerics! According to MSDN there should be. What am I missing?

Imports System.IO
Imports System.Numerics '<<<< error
Module Module1

    Sub Main()
        Dim OneLightYearInches As BigInteger = 372469703661417000

    End Sub

End Module

What .net framework are you running. I think you need at least 4.0 (possibly 4.5)

Both VS and Programs & Features of Control Panel say I have vesion 4.5

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

The target framework for the project needs to be 4.0 or higher. With Visual Studio 2013, unless you changed the framework when creating the project, it'll be 4.5. Also, be sure to reference System.Numerics.dll in your project as well, since it's not a default reference.

Also, be sure to reference System.Numerics.dll in your project a

See my original post -- it doesn't likeImports System.Numerics

And as you can see from my second post .NET 4.5 is installed, which meets the requiremenet of 4.0 or higher.

See my original post -- it doesn't likeImports System.Numerics

Imports only opens up the namespace for you so that you don't need a fully qualified name every time. You still need to reference the assemby, otherwise the namespace simply doesn't exist in the project.

And as you can see from my second post .NET 4.5 is installed, which meets the requiremenet of 4.0 or higher.

Installed and targeted are two completely different things. I have 4.5 installed, but if I only target 2.0, I can't use anything in the 4.5 framework. Look at your project properties.

Ah, that was the problem. Just went to Project -- Add Reference and selected System.Numerics.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.