-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ihostingenvironment has been converted to IWebHostEnvironment in dot net core 3.1 #52
Comments
Yea if there's some way to do work, please tell us how to do |
Same problem here |
what I see they haven't made the version for 3.x yet :( |
Until the new version comes out for IWebHostEnvironment, I am casting it it IHostingEnvironment. Seem to work. Hopefully this will be temporary. So in Startup.cs where you do: |
What worked for me was this from ReadMe.md:
So i changed my code in Setup.cs to: |
Thanks Jsoques this work perfectly |
Hi MrCodeB2 well I'm using asp core 3.1 and don't work this way, but thanks by share maybe someone uses 3.0, this works |
|
there is a beta in nuget. and its working
|
@abdoneemmsc maybe close issue? |
This doen't work because Setup method waiting for IHostingEnvironment parameter and you are passing a string, this causses problem. I think the solution is updating de method to use IWebHostEnvironment. I am not sure. |
ihostingenvironment has been converted to IWebHostEnvironment in dot net core 3.1
so
RotativaConfiguration.Setup(env)
not working
The text was updated successfully, but these errors were encountered: