问题
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