Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation of Application.myapp while Visual Basic Application Framework is disabled #9443

Open
myth384 opened this issue Apr 12, 2024 · 3 comments
Assignees
Labels
Area-VisualBasic Specific to the VB.NET language. Feature-Project-Properties-Designer The new project property pages which replace the legacy AppDesigner good-first-issue [up-for-grabs] Good for learning and for external contributors. Relatively self-contained. Triage-Investigate Reviewed and investigation needed by dev team
Milestone

Comments

@myth384
Copy link

myth384 commented Apr 12, 2024

Visual Studio Version

17.9.6

Summary

After migrating several VB.NET projects from .NET 4.8 to .NET 8 Application.myapp files are getting generated which were previously absent in the solution. We are experiencing this behavior for both Forms Application as Forms Class Library projects. The Visual Basic Application Framework is disabled in both .NET 4.8 and .NET 8. After deleting the files, they will get regenerated as soon as the Project Property Editor is opened.
The same behavior can be observed for WPF projects.

Steps to Reproduce

  1. Create a new Visual Basic Forms or WPF App or Forms or WPF Class Library targeting .NET 8
  2. Open the project property editor
  3. For Class Libraries: observe the creation of Application.myapp after the property editor has opened
  4. For Apps: Untick Application Framework from the project properties GUI (Application.myapp already exists)
  5. Keep the property editor open
  6. Attempt to delete Application.myapp
  7. Observe the immediate generation of a new Application.myapp

Expected Behavior

Application.myapp should not be created when Visual Basic Application Framework is disabled in any case. Additionally, I doubt the Application Framework option should be available outside of Forms or WPF Application projects.

Actual Behavior

Application.myapp is generated regardless of the status of the Visual Basic Application Framework checkbox.

User Impact

I won't sleep tonight... :-(

@drewnoakes drewnoakes added Area-VisualBasic Specific to the VB.NET language. Feature-Project-Properties-Designer The new project property pages which replace the legacy AppDesigner labels Apr 16, 2024
@drewnoakes
Copy link
Member

FYI @melytc

@melytc
Copy link
Contributor

melytc commented Apr 16, 2024

Thanks @drewnoakes.

@myth384, I have a couple of questions to better understand the issue:
We have implemented a change to generate the Application.myapp file when a project is created; however, it is only utilized if the Application Framework property is activated. Is the concern that the Application.myapp file is being employed irrespective of its state? If not, could you clarify the scenario that is impacted by the presence of this file, even when it remains unused?

@myth384
Copy link
Author

myth384 commented Apr 16, 2024

Hi @melytc, Thanks for your timely response. I'm surprised this was actually a design decision, as lot of the changes I encountered during the migration of .NET Framework projects brought simplification to project metadata, removing a lot of redundancy. Adding unused data to a project feels counter intuitive in that regard.
The presence of the file is also confusing for developers coming from .NET Framework, as the file indicates the project is using the VB Application Framework. The behaviour for class libraries is especially odd, which start off without the file, to later find out the file is generated somehow.
I just wanted to share my view of my experiences I made during migrations, in an effort to improve project data even more. Our projects will be converted to C# anyway this year, so it's not a big issue for us at all.

@tmeschter tmeschter added this to the Backlog milestone Apr 25, 2024
@tmeschter tmeschter added good-first-issue [up-for-grabs] Good for learning and for external contributors. Relatively self-contained. Triage-Investigate Reviewed and investigation needed by dev team labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VisualBasic Specific to the VB.NET language. Feature-Project-Properties-Designer The new project property pages which replace the legacy AppDesigner good-first-issue [up-for-grabs] Good for learning and for external contributors. Relatively self-contained. Triage-Investigate Reviewed and investigation needed by dev team
Projects
None yet
Development

No branches or pull requests

4 participants