Skip to content

Commit 3b38b98

Browse files
committed
Fix #152: Workaround for VB special 'My' folder
1 parent 6d7f6cc commit 3b38b98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ResXManager.VSIX/Visuals/MoveToResourceViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ private static string GetLocalNamespace([CanBeNull] ProjectItem resxItem)
148148
var localNamespace = rootNamespace;
149149
if (resxFolder.StartsWith(projectFolder, StringComparison.OrdinalIgnoreCase))
150150
{
151-
localNamespace += resxFolder.Substring(projectFolder.Length).Replace('\\', '.');
151+
localNamespace += resxFolder.Substring(projectFolder.Length)
152+
.Replace('\\', '.')
153+
.Replace("My Project", "My"); // VB workaround
152154
}
153155

154156
return localNamespace;

0 commit comments

Comments
 (0)