How do I use VS_GLOBAL_SECTION_POST_ExtensibilityGlobals

I’m having trouble finding or creating any working examples of using VS_GLOBAL_SECTION_POST_ExtensibilityGlobals to add a property to a solution (for a plugin). It seems that GlobalSection(ExtensibilityGlobals) is being set to default every time. I am trying to set the VisualSVNWorkingCopyRoot variable. Any help is appreciated.

Hi.

Here’s a minimal example:

cmake_minimum_required(VERSION 3.25)
project(PostSection)

set_property(DIRECTORY
	PROPERTY VS_GLOBAL_SECTION_POST_ExtensibilityGlobals
	VisualSVNWorkingCopyRoot=Some\\Path
)

(There’s nothing special about 3.25, it’s just the version which happens to be installed on my disk)

And here is what appears in the generated .sln file:

	GlobalSection(ExtensibilityGlobals) = postSolution
		VisualSVNWorkingCopyRoot = Some\Path
		SolutionGuid = {C0B62B38-EE6A-3BCF-A7C2-50E5DB3A2873}
	EndGlobalSection

Thanks a million! I had been using set instead of the set_property command!