dotnet / dotnet/dotnet-api-docs

netstandard does not have AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

Open
#1,481 0 comments 0 reactions 0 assignees View on GitHub
area-System.Runtime dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I have just upgraded a net4.5 classic dotnet project to multi-target project using net461/netstandard2.0 with reasonable success.

Did however come across this compiler error when it comes to gaining access legacy configuration files via:

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

This appears to not be a thing in netstandard. What would the alternative be, or is there a workaround?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 766a6cab-4261-34a7-7a93-0a62ba21b9e8
* Version Independent ID: 7cef123e-5b0d-dba1-227b-6018d003c280
* Content: [AppDomain.SetupInformation Property (System)](https://docs.microsoft.com/en-us/dotnet/api/system.appdomain.setupinformation?view=netframework-4.7.2)
* Content Source: [xml/System/AppDomain.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/AppDomain.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.