Rotativa.AspNetCore
Rotativa.AspNetCore copied to clipboard
Setup error: "The name 'RotativaConfiguration' does not exist in the current context"
I keep getting the error:
Error CS0103: The name 'RotativaConfiguration' does not exist in the current context (CS0103)
I've followed steps from several tutorials but keep ending up with this error after I add in this to the Startup.cs:
RotativaConfiguration.Setup(env);
I am using Visual Studio Mac Community, in case this makes any difference
Are you adding this using?
using Rotativa.AspNetCore;
or alternatively, just do:
Rotativa.AspNetCore.RotativaConfiguration.Setup(env);
Does this fix it?
@webgio this using Rotativa.AspNetCore; is not being recognized as a package, but this using Rotativa.NetCore; is, and there is no method there called RotativaConfiguration, the error checking says I may be missing a reference? not so sure what to do here... no one else seems to have this issue
I do have tha same issue. Did you solve your issue?