Skip to content

Let's change the C# templates to include the Project-level app settings. #9931

@KlausLoeffelmann

Description

@KlausLoeffelmann

Project-level Application Settings are cool, but a Nightmare in discoverability. When I need to change values, I always have to look them up via the provided link in program.cs, because I cannot remember the exact syntax in .csproj. So, for that reason, I'd like to include them in the .csproj so they are setting their default values. Or, at least, I want them there, but commented out.

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows</TargetFramework>
    <Nullable>enable</Nullable>
    <UseWindowsForms>true</UseWindowsForms>
    <ImplicitUsings>enable</ImplicitUsings>

    <!--WinForms Application settings:-->
    <ApplicationVisualStyles>true</ApplicationVisualStyles>
    <ApplicationDefaultFont>Segoe UI, 9pt</ApplicationDefaultFont>
    <ApplicationHighDpiMode>SystemAware</ApplicationHighDpiMode>
    <ApplicationUseCompatibleTextRendering>True</ApplicationUseCompatibleTextRendering>
  </PropertyGroup>

</Project>

Suggesting this for .NET 9, please comment, up- or down-vote!

image

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions