3

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 what if I want to modify an existing source-code file? Is there any way to do this? Perhaps using PowerShell?

Pandincus
  • 9,506
  • 9
  • 43
  • 61

1 Answers1

2

You can do this using CodeModel http://msdn.microsoft.com/en-us/library/envdte.codemodel.aspx.

davidfowl
  • 37,120
  • 7
  • 93
  • 103