Skip to content

Commit

Permalink
Merge pull request #8888 from adamint/dev/adamint/myapp-wrong-generat…
Browse files Browse the repository at this point in the history
…ion-root-namespace

Avoid duplicating My in settings type if no root namespace exists
  • Loading branch information
adamint committed Mar 3, 2023
2 parents acda127 + 0cd3ba3 commit 7df0c34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ Namespace Microsoft.VisualStudio.Editors.SettingsDesigner
fullTypeName = projectRootNamespace & "."
End If

If defaultNamespace <> "" Then
If defaultNamespace <> "" AndAlso Not defaultNamespace.Equals(MyNamespaceName) Then ' defaultNamespace, if none exists, will come in thru wszDefaultNamespace as My. We don't want to duplicate it.
fullTypeName &= defaultNamespace & "."
End If

Expand Down

0 comments on commit 7df0c34

Please sign in to comment.