I am building a .Net standard library, which builds fine but on testing, I get this error
HResult=-2147024894 Message=Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Source=Library Trial
I have installed System.Net.Http Nuget Package still no success. It's a fresh project so what must I be doing wrong
new System.Net.Http.HttpClient();
. Create a second C# project in the same solution, this one a desktop console app. Reference the .NETStandard library. In the console app'sMain
function, call the library's static function. Run as Debug, changing nothing. Behold an exception. It took me longer to write this than it did to repro the issue. – CBHacking