Change the contents of a file ProjectItem within a Project in a Visual Studio 2015 Extension?

前端 未结 1 1649
我在风中等你
我在风中等你 2021-01-29 01:31

How do I change the contents of a file/ProjectItem within a given Project? I would like to replace all of its contents with a string.

1条回答
  •  隐瞒了意图╮
    2021-01-29 01:53

    there is have a resolution of this question?

    I want to make some changes in ProjectItem (CS file) by using VSIX package, and an only single way to do this that I see right now - it's read this file by FullPath, make changes, and then save changes. I know that in ProjectItem have FileCodeModel property, but it is null.

    0 讨论(0)
提交回复
热议问题