StartupObject property is not erased after enabling `Application Framework` property
See original GitHub issueVisual Studio Version: Int Preview 16.8.0 Preview 4.0 [30514.8.main]
Summary: If you disable the Application Framework
and reenable it, the StartupObject
in the vbproj file is not removed. This is specifically in VB Winforms applications.
Steps to Reproduce:
-
Open the VBWinforms.sln found in https://github.com/dotnet/winforms/tree/master/src/System.Windows.Forms/tests/IntegrationTests/VisualBasicTemplate.
-
With the properties pages and project file side to side, disable the
Enable application framework
property.StartupObject
property should appear. -
Reenable the
Enable application framework
property.
Expected Behavior: StartupObject
property should be removed.
Actual Behavior: StartupObject
property is not removed.
User Impact: If the user disables and then re-enables the Enable application framework
property without any other change, the project is in a weird state and shows an error dialogue as shown.
cc: @KathleenDollard
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
https://github.com/dotnet/project-system/pull/8419 addresses this and ensures we have the correct values set in the project file and myapp file as described in the last comment.
I am confused.
The Application Framework is on by default. We have something in the <StartupObject> (VbWinFormsFramework.My.MyApplication maybe? But I’d say it doesn’t really matter)
Would that work? Would it make sense?