Changing project properties adds unnecessary empty ApplicationIcon and StartupObject
See original GitHub issueVisual Studio Version:
Microsoft Visual Studio Enterprise 2019 Int Preview
Version 16.0.0 Preview 3.0 [28529.153.d16.0]
VisualStudio.16.IntPreview/16.0.0-pre.3.0+28529.153.d16.0
Summary:
Changing project properties adds unnecessary empty ApplicationIcon and StartupObject properties to project file.
Steps to Reproduce:
-
File -> New Project -> Console App (.NET Core)
-
Inspect project file
-
Right click project, properties
-
Change output type to Windows Application
-
Inspect project file again
Expected Behavior:
Only change in project file is s/Exe/WinExe/
Actual Behavior:
Two extra lines are added to project file setting ApplicationIcon and StartupObject to empty.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
+ <ApplicationIcon />
+ <StartupObject />
</PropertyGroup>
</Project>
User Impact:
Unwanted, unnecessary content in csproj file
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How can I choose the "Startup object" in project properties ...
Right Click in your solution, Properties, Common Properties, Startup Project, and select your Startup Project there.
Read more >Application Page, Project Designer (Visual Basic)
Learn how to use the Application page of the Visual Basic Project Designer to specify the project's application settings and properties.
Read more >Project properties are blank after changing these for ES. ...
Problem. Using Enterprise Developer, when setting ES.NET project properties via the solution explorer view in Visual Studio, then click away ...
Read more >Common MSBuild Project Properties
Learn about common MSBuild project properties that can be defined or used in project files or included in .targets files that MSBuild ...
Read more >C# & VB.NET Conversion Pocket Reference [Book]
VB.NET this setting is set to (Default icon) by default. There's no icon file that you can edit if you ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Internal PR https://devdiv.visualstudio.com/DevDiv/_git/CPS/pullrequest/215694 has been completed.
CPS is tracking this here: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1025549