I created a DLL project targeting .net standard 2.0.
With NuGet I added a reference to Microfosft.AspNetCore.Http. (2.2.2)
I created this class:
using System;
using Microsoft.AspNetCore.Http;
namespace netstdlib
{
public class Class1
{
public IResult DoGet()
{
return null;
}
}
}
When I build I get
Build started...
1>------ Build started: Project: netstdlib, Configuration: Debug Any CPU ------
1>D:\PROJECTS\experiment\CS framework test\netstdlib\Class1.cs(10,25,10,32): error CS0246:
The type or namespace name 'IResult' could not be found (are you missing a using
directive or an assembly reference?)
1>Done building project "netstdlib.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
It seems to me it should find IResult in the library I'm using. What's wrong?