Skip to content

Commit

Permalink
#19: Include the runtimes subdir as per the old project.json packincl…
Browse files Browse the repository at this point in the history
…ude option

#22: It appears that netstandard1.5 is the lowest possible version we can target. So target this version.
  • Loading branch information
jumpinjackie committed Jun 16, 2017
1 parent 0de5097 commit f5b399c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<TargetFramework>netstandard1.5</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<ItemGroup>
<Content Include="runtimes/**" PackagePath="%(Identity)" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ internal static T CreateObject<T>(IntPtr objPtr) where T : class
//visibility is the ideal one for purposes of encapulsation (this is internal use only). So instead of Activator.CreateInstance()
//which does not work with internal constructors, we'll find the ctor ourselves and invoke it.
var flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance;
var ctors = type.GetConstructors(flags);
var ctors = type.GetTypeInfo().GetConstructors(flags);
var ctor = ctors.FirstOrDefault(ci =>
{
var parms = ci.GetParameters();
Expand Down

0 comments on commit f5b399c

Please sign in to comment.