webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 223 forks source link

Rotativa.NetCore 1.0.4 not working with core sdk 2.0. #173

Closed usfnoor84 closed 6 years ago

usfnoor84 commented 6 years ago

I am trying to convert mvc core 2.0 view to pdf with rotativa.netcore 1.0.4. But it through an exception as

TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions' from assembly 'Microsoft.AspNetCore.Authentication.Cookies, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

my code,

public ActionResult Index()
        {
            return View();
        }

        public ActionResult PrintIndex()
        {
            return new ActionAsPdf("Index");
        }
ghost commented 6 years ago

Get original source, and make these changes, worked for me...

Link

saineshwar commented 6 years ago

@m8kwr sir can you show what changes have u made such that we can use it

webgio commented 6 years ago

I just published Rotativa.AspNetCore. Please let me know if it works for you. Rotativa.AspNetCore