This project is read-only.

Allow opt-out of My Namespace during project creation

Topics: VB Language Design
Apr 25, 2014 at 10:12 PM
DISCLAIMER - this may be a Visual Studio question but just in case...


Immediately after creating a new VB Project, I will:
  • Open the VBPROJ file in Notepad and change the MyType line to <MyType>Empty</MyType>
  • In Visual Studio, select 'Show All Project Files'
  • In the 'My Project' folder, delete Application.MyApp, Resources.resx, and Settings.resx.


When creating a new project, have an option on whether to include the My namespace. Ideally, that could be extended to the Resources and Settings as well.

Craig Johnson
May 4, 2014 at 10:21 AM
Hey lonewolfcj,

Visual Studio actually already includes the ability for anyone to author their own project templates. I used to do this myself for much the same reason. Yes, I realize that could be tedious if you use a lot of different project types regularly but given that the workaround is pretty easy I don't think we would prioritize enabling this in the next release over other work.


Anthony D. Green, Program Manager, Visual Basic & C# Languages Team
Marked as answer by lonewolfcj on 5/4/2014 at 11:39 AM
May 4, 2014 at 7:39 PM
Fair point.