Unable to overwrite the content files(_layout.cshtml) when nuget installation

Topics: General
Jun 19, 2013 at 8:19 AM

I have created a nuget package with some dll's, Webconfig.transform file and _layout.cshtml.transform file.

When install the nuget package it installed fine and dll loaded and webconfig files are overwrite correctly. But the _layout.cshtml file is not overwritten and I have the some files in tools folder its also not loaded in target project.

Can anyone help to Explain how to install a nuget with _layout.cshtml file changes and added resource files when installation.

Note: Nuget 2.5 have this feature Allow overwriting the content files like _layout.cshtml

Jun 25, 2013 at 6:25 PM
.transform file only applies to XML file. .cshtml is not a real xml file.
Jun 26, 2013 at 5:05 AM
Edited Jun 26, 2013 at 5:27 AM
How to replace the contents in .cshtml files when Nuget installation. Is this possible? I think its possible to use the Install.ps1 file. Please guide me how to write and Integrate the Nuget package?