UseNodeModules icon indicating copy to clipboard operation
UseNodeModules copied to clipboard

Does not seem to work with VS 2019 Preview and ef core 3 (preview)

Open crbeckman opened this issue 6 years ago • 4 comments

Used NuGet Package Manager to install OdeToCode.UseNodeModules (version 1.0.6) to my Visual Studio 2019 Preview and Core 3 Preview solution. M/S has deprecated the IHostingEnvironment in favor of IWebHostEnvironment. Within the Configure portion of Startup.cs, the app.UseNodeModules(env) line does not seem to be supported. The error is CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment' to 'Microsoft.AspNetCodeHosting.IHostingEnvironment'.

Is there an update to support the new Core 3 with the IWebHostEnvironment Configure method?

(I could be completely confused, if so, just tell me.)

thank you, chuck

crbeckman avatar May 02 '19 22:05 crbeckman

I'm also running into this problem.

mmedi005 avatar May 13 '20 19:05 mmedi005

I'm also running into this. Using .net core 3.1

solverware avatar Aug 24 '20 17:08 solverware

I'm also too.

rogeriopgp avatar Mar 15 '21 20:03 rogeriopgp

I used app.UseNodeModules() without passing environment variable in .net 5 and it works

syed-dawood avatar Apr 25 '21 22:04 syed-dawood