dotnet / dotnet/project-system

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

Open
#9,443 4 comments 0 reactions 1 assignee Claimed by @melytc View on GitHub
Area-VisualBasic Feature-Project-Properties-Designer good-first-issue Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

## 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... :-(

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.