0

[Using Visual Studio Pro 2019]

I would like to be able to programmatically set the options on the Debug page of a C# project (using .NET Framework), without having to access the GUI. I.e. these parameters:

Debug page of project properties

Is there an API for this?

Conrad
  • 2,197
  • 28
  • 53
  • These options are just in the .csproj file. You just need to create/delete or modify the correct xml tags. – Franck Oct 18 '21 at 19:03
  • @Franck not necessarily - some (if not all) of the options reside in the .csproj.user file. This is of course a last-ditch option, to modify the XML files - I am hoping not to have to do that. – Conrad Oct 18 '21 at 19:13
  • So why do you need to modify this by code ? It might help figure it out an alternative. – Franck Oct 18 '21 at 19:38
  • @Franck a client is specifically requesting this functionality. Odd I know, but hoping it can be done. – Conrad Oct 18 '21 at 19:52
  • You can search here: [.NET API browser](https://learn.microsoft.com/en-us/dotnet/api/?view=visualstudiosdk-2019&term=debug). If you didn't find a proper API there, then there should be no such APIs. – Tianyu Oct 19 '21 at 09:32

0 Answers0