开发者

When creating a NuGet package, can I modify existing source code files?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜