Skip to content

System.Configuration.ConfigurationManager cannot read AppSettings when published with publishSingleFile=true #42161

@mshobohm

Description

@mshobohm

Description

System.Configuration.ConfigurationManager cannot read AppSettings when published with publishSingleFile=yes

Configuration

.net 5 preview 8
tried out with windows-x64 and linux-64

Regression?

I couldnt get this bug working in 3.1

Other information

C:\Projekte\AppSetting>dotnet --version
5.0.100-preview.8.20417.9

C:\Projekte\AppSetting>dotnet run
OK

C:\Projekte\AppSetting>dotnet publish -c Release
Microsoft (R)-Build-Engine, Version 16.8.0-preview-20414-02+a55ce4fbb für .NET
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Wiederherzustellende Projekte werden ermittelt...
Alle Projekte sind für die Wiederherstellung auf dem neuesten Stand.
Sie verwenden eine Vorschauversion von .NET Core. Weitere Informationen: https://aka.ms/dotnet-core-preview
AppSetting -> C:\Projekte\AppSetting\bin\Release\net50\win-x64\AppSetting.dll
AppSetting -> C:\Projekte\AppSetting\bin\Release\net50\win-x64\publish\

C:\Projekte\AppSetting>C:\Projekte\AppSetting\bin\Release\net50\win-x64\publish\AppSetting.exe
Not Found
(Expected behavior is the output of "OK" as with dotnet run)

AppSetting.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions