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

孤街醉人 提交于 2019-12-02 17:28:20

问题


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:


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.



来源:https://stackoverflow.com/questions/50351799/change-the-contents-of-a-file-projectitem-within-a-project-in-a-visual-studio-20

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!