Error CS0012 in SlimDX Basketball Game Development

Garrett Tiller 6 Reputation points
2024-10-29T19:11:37.6366667+00:00

I'm developing a basketball game using SlimDX and encountering an error related to camera initialization.

private GameplayScreen()
{
    _camera = new LookAtCamera
    {
        Position = new Vector3(0, 2, -15)
    };
}

The following error occurs:

Error CS0012: The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

What could be causing this issue, and how can it be resolved?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.