diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-04 04:31:05 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-04 04:31:05 -0400 |
| commit | 6d250c4050ceb0bda33aad6a484fd05e508c4e27 (patch) | |
| tree | 9776c6fe796bcbbea2d753ddd78d925a5645d69a /Emby.Common.Implementations/Reflection/AssemblyInfo.cs | |
| parent | c29394a81a8d00e16e2706850ae9127933e73cda (diff) | |
make dlna project portable
Diffstat (limited to 'Emby.Common.Implementations/Reflection/AssemblyInfo.cs')
| -rw-r--r-- | Emby.Common.Implementations/Reflection/AssemblyInfo.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/Reflection/AssemblyInfo.cs b/Emby.Common.Implementations/Reflection/AssemblyInfo.cs index 820856da5..bd2cb7cf0 100644 --- a/Emby.Common.Implementations/Reflection/AssemblyInfo.cs +++ b/Emby.Common.Implementations/Reflection/AssemblyInfo.cs @@ -14,5 +14,13 @@ namespace Emby.Common.Implementations.Reflection #endif return type.GetTypeInfo().Assembly.GetManifestResourceStream(resource); } + + public string[] GetManifestResourceNames(Type type) + { +#if NET46 + return type.Assembly.GetManifestResourceNames(); +#endif + return type.GetTypeInfo().Assembly.GetManifestResourceNames(); + } } } |
