9

I see the following in many *.vcxproj files

<PropertyGroup Label="Globals">
  <ProjectGuid>{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}</ProjectGuid>
  <RootNamespace>yadayada</RootNamespace>
</PropertyGroup>

What does the <RootNamespace>yadayada</RootNamespace> property mean? Does it affect the output artifacts in any way?

Pang
  • 9,564
  • 146
  • 81
  • 122
Jordan Crittenden
  • 1,010
  • 2
  • 11
  • 23

1 Answers1

3

A bit late but the docs say:

The root namespace for the specified project. RootNamespace is used to determine proper naming for managed resource DLLs.

So I guess it did matter for C++/CLI projects. But seeing that it isn't mentioned in the Visual Studio 2019 SDK I'm not sure if it's still in use.

Timo
  • 9,269
  • 2
  • 28
  • 58
  • C++/WinRT takes this into consideration. I assume that `CppWinRTRootNamespaceAutoMerge` is playing a role, too. And the project files for MSBuild make references to it - e.g. the linker option `/WINMDFILE` for the Windows Metadata File is set to `$(OutDir)$(RootNamespace).winmd`. – klaus triendl Jan 25 '23 at 20:23