- New Project , Class Library (.NET Standard)
- On project, properties, changed from 2.0 to 2.1
- Modified Class1 :
public class Class1
{
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
}
}
- This fixed (correctly?) the IApplicationBuilder red squiggly :
- However the library project does not compile : "Error CS0246 The type or namespace name 'IWebHostEnvironment' could not be found ..."
What references should be added for these two interfaces please ? Or are you only supposed to only ever use these interfaces within the web site project ?
Also same result with a .NET Core 3.1 Class Library. Visual Studio 16.4.4
Any help much appreciated.