Replace classnames on nuget package install

Topics: General
May 12, 2014 at 8:28 AM
I created a package which extended the DatabaseContext from .Net. So i tried to make my project use the new DatabaseContext when the package was installed. So i used a .pp file but it replaced all contents. (see image below)

Image

But i only want to rename all the class usages of: IdentityDbContext to IdentityDbContextExtDbConfiguraion. i think i should achieve this with the powershell script but i could not find a tutorial which could help me any further on this. (I could only find file renaming examples).

Is there a way to achieve this in powershell or are there better options?

Thanks!