Create New C# File

Hi,

I'm having trouble figuring out how to add a new c# file to an existing IProject in v7.1. I've got the IProject reference, I've manged to create the new ICSharpFile, but can't figure out how to add the file to the project?

Any suggestions?

Thanks,

Kane

1 comment
Comment actions Permalink

Hello,take a look at the following static method - they may do what you need

* AddNewItemUtil.AddFile
* FileTemplatesManager.Instance.CreateFileFromTemplate

Regards.

0

Please sign in to leave a comment.