Skip to content

Add rules file containing RootNamespace property editor#422

Merged
Scottj1s merged 1 commit into
microsoft:masterfrom
SunburstApps:root-namespace-proppage
May 22, 2019
Merged

Add rules file containing RootNamespace property editor#422
Scottj1s merged 1 commit into
microsoft:masterfrom
SunburstApps:root-namespace-proppage

Conversation

@wjk

@wjk wjk commented May 21, 2019

Copy link
Copy Markdown
Contributor

This property is used by the default item templates to populate the namespace of newly generated IDL files. I have no clue why this isn't already provided by the core C++ project infrastructure, seeing as it is (apparently) not C++/WinRT-specific.

This property is used by the default item templates to
populate the namespace of newly generated IDL files. I
have no clue why this isn't provided by vcxproj itself.
@wjk wjk requested a review from Scottj1s as a code owner May 21, 2019 20:16
@Scottj1s

Copy link
Copy Markdown
Member

This is a really powerful project extensibility mechanism I didn't know about (and which I intend to use, thanks!) But I'm not sure I understand the problem. When you create a new C++/WinRT item (from template, such as ViewModel), then the namespace is populated with the project's:
namespace $rootnamespace$

Where are you seeing that not be the case? By adding the ability to override the project's rootnamespace property at any time, we open the possibility for all kinds of build errors.

@kennykerr

Copy link
Copy Markdown
Contributor

Scott just showed me what this looks like in Visual Studio - very nifty!

@Scottj1s

Copy link
Copy Markdown
Member

Discussing with Kenny, and in favor of this change, thanks!

@Scottj1s Scottj1s merged commit aa7e867 into microsoft:master May 22, 2019
@wjk wjk deleted the root-namespace-proppage branch May 22, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants