Hi,
How do I register custom constants so they show up in intellisense with #IF ?
Thanks,
Rob
Hi Rob,
Roslyn parser shows conditional defines that are defined on a project level.
Here’s sample code :
var solution = VbSolution.DefaultSolution;
solution.SetProjectConditionals(new string[] { "DEBUG=TRUE", "MYCONST=1"}, solution.ProjectId);
These constants will be shown in the intellisense for #if/#elseif
Regards,
Dmitry