I'm trying to create a series of NuGet packages for local use within my organization.
I'm aware I can create source-code transformation files (i.e. MyModel.cs.pp) to help with adding new source code files, i.e.:
namespace $rootnamespace$.Models {
public struct CategoryInfo {
public string categoryid;
public string description;
}
}
But w开发者_如何学Gohat if I want to modify an existing source-code file? Is there any way to do this? Perhaps using PowerShell?
You can do this using CodeModel http://msdn.microsoft.com/en-us/library/envdte.codemodel.aspx.
精彩评论