Saving solution file #550
Closed
VishalTrivedi
started this conversation in
General
Replies: 1 comment 2 replies
-
You can use
Note that the third parameter should actually be zero, not null. var solution = await VS.Services.GetSolutionAsync();
solution.SaveSolutionElement((uint)__VSSLNSAVEOPTIONS.SLNSAVEOPT_SaveIfDirty, null, 0); The possible values for the first argument can be found here: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm developing an extension in which I'm adding file(s) to the currently open solution. Post adding the file, I need to save the solution file and needed to know the best way to do so. My current approach is using the following code which saves all files:
While this works, I'd rather save just the solution file instead of all files. Kindly provide recommendations/suggestions.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions