Rotativa icon indicating copy to clipboard operation
Rotativa copied to clipboard

dependency on ASP.NET MVC 3.0.0.1

Open gerhardjj opened this issue 9 years ago • 4 comments

Hi, In MVC6 (asp.net5) i'm trying to use your package. However i get the following error:

The type action result is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, version 3.0.0.1...

when i do this:

return new ActionAsPdf(
                           "Index")
            { FileName = "Invoice.pdf" };

Should i actually go and reference MVC 3.0.0.1, is that the only way? Thanks

gerhardjj avatar Feb 19 '16 07:02 gerhardjj

Hi, I'll look into this shortly. I would like to add functionality to the Nuget package to detect MVC version and install the correct dependencies. I've done the same with RotativaHQ package for mvc 4 and 5, I'll add 6 and port code to Rotativa. I'll notify here when done.

webgio avatar Feb 19 '16 09:02 webgio

Looking forward to Rotativa supporting MVC6

mgolois avatar Feb 22 '16 21:02 mgolois

Ouch, looks harder then I thought. Trying to add reference to mvc 6

Install-Package Microsoft.AspNet.Mvc -Version 6.0.0-rc1-final

I get a nasty " Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache."

Actually I have no experience with asp.net 5 and mvc 6. Anyone willing to help?

webgio avatar Feb 23 '16 15:02 webgio

Of course I was working in VS 2015 and .Net 4.6.1

webgio avatar Feb 23 '16 15:02 webgio