question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing project properties adds unnecessary empty ApplicationIcon and StartupObject

See original GitHub issue

Visual 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:

  1. File -> New Project -> Console App (.NET Core)

  2. Inspect project file

  3. Right click project, properties

  4. Change output type to Windows Application

  5. 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidwengiercommented, Nov 27, 2019
1reaction
davidwengiercommented, Nov 20, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found