5

Because AppDomain ist not available in the netstandard library, i am wondering how to do

AppDomain.CurrentDomain.GetAssemblies();

The goal is obviously to get all assemblies that are loaded in the current app.

Update

There is a solution for netstandard 1.6

DependencyContext.Default.CompileLibraries
DependencyContext.Default.RuntimeLibraries

but i need a solution from netstandard >= 1.3

Athari
  • 33,702
  • 16
  • 105
  • 146
dknaack
  • 60,192
  • 27
  • 155
  • 202
  • 1
    May I ask why netstandard >= 1.3 ? – Gerardo Grignoli Jul 27 '16 at 01:21
  • https://learn.microsoft.com/en-us/dotnet/articles/core/porting/libraries – dknaack Jul 27 '16 at 05:33
  • Yes I know that doc, but still I dont understand why someone would stay at 1.3... Windows Phone is 1.2 and Universal Windows Apps support 1.4... So, unless you are stuck with .NET Framework 4.6 and unable to upgrade to 4.6.2, I really don't understand why 1.3. Or did I missunderstood the article? – Gerardo Grignoli Jul 27 '16 at 08:46
  • 2
    @dknaack Why my DependencyContext has no Default property :( – kitta May 15 '17 at 19:06

0 Answers0