dotnet / dotnet/wpf

Not possible to use the namespace named My in VB for WPF with .net 5.

Open
#5,069 4 comments 1 reaction 0 assignees View on GitHub
Bug Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Hello,
In a WPF project written in Visual Basic with .net 5, it is impossible to use the namespace named My included in some .Net Framework classes for VB.
Example :
My.Application
My.Computer
My.Forms
My.Settings

![2021-08-13 08_37_27-WpfApp1 - Microsoft Visual Studio](https://user-images.githubusercontent.com/66659162/129316805-f8bd0fcb-84bc-4621-9f6e-a6db33c8525f.png)

On the other hand in a Winforms project with .net 5 the use of My is possible except for My.Settings.

![2021-08-13 08_46_34-WinFormsApp1 - Microsoft Visual Studio](https://user-images.githubusercontent.com/66659162/129316903-f5a4d023-d43c-4346-9089-d54862068cf3.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.