How to programmatically include a file in my project?
问题 Background I\'m making a helper application that reformats some code files and creates new code files, which are to be added to my other project, so I could use the new code right away, but I\'m having serious trouble adding that new code file into my project automatically. By the way it\'s in c# and the helper app is WinForms. Failed attempts This question\'s only answer has two ways of doing that, but I couldn\'t make any of them work. With the first I can\'t find a Microsoft.Build assembly