Visual Studio 2019 With Rayib – An unhandled exception of type ‘System.IO.FileNotFoundException’ occurred in Unknown Module Error


I’ve been working in Unity3D for the past 3 years and i decided to try something new and start making games from scratch (NOT the engine "Scratch"). I decided to start off using a library called raylib but i ran into a few issues after installing Visual Studio 2019.

I was following this C# Raylib setup tutorial:

But then I noticed that i wasn’t getting the same errors as the guy in the video and in the end, it didn’t work. None of the comments were experiencing my problem and I followed the tutorial exactly to the extent of downloading the same raylib version as him.

The error I would get was a window that popped up in VS when I ran my program with this written on it:

System.IO.FileNotFoundException: ‘Could not load file or assembly ‘netstandard, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified

I should also probably mention that my NuGet Package Manager is not working either. It gives me an error in the console saying:

The request was aborted: Could not create SSL/TLS secure channel.

I’ve been scrambling online for nearly a week looking for answers to either of my problems, but in the end I’m looking to just give up entirely if i don’t find a solution.

And here is the Raylib Hello World I’m trying to run:

using Raylib_cs;

namespace HelloWorld
    static class Program
        public static void Main()
            Raylib.InitWindow(800, 480, "Hello World");
            while (!Raylib.WindowShouldClose())
                Raylib.DrawText("Hello, world!", 12, 12, 20, Color.BLACK);

More information:

OS – Windows 7 Ultimate – -64bit (Service Pack 1)

CPU – Pentium Dual Core T4400 — 2.20Ghz

iGPU – Mobile Intel(R) GMA 4500M — 64mb Dedicated VRAM / 732mb Shared system Mem / 796mb Total Graphics Mem

Date Made – 5/10/2021 (tenth of May two-thousand and twenty-one)

Visual Studio Version – 2019

Main Issues – NuGet Package Manager and System.IO.FileNotFoundException Error

Problem Persistence – about 5 days

Library Used – Raylib

Source: Visual Studio Questions