I'm working with VS 2019, version 16.9.1 using .NET framework. I ran my code today after it works fine yesterday, but today I received this exception:
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Private.CoreLib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies.
The system cannot find the file specified.'
It occurs when I'm creating a new class(that I wrote)
I tried these solutions:
- Add System.Private.CoreLib.dll as a reference but it didn't help(I guess it's for .NET core)
- Change to an older version of my .NET framework (right now is 4.72.2) but it didn't help as well.
- This link, but it's a different case.
Any help will be appreciated
Thank