File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4
4
using System . IO ;
5
5
using System . Reflection ;
6
6
using System . Runtime . InteropServices ;
7
- using RGiesecke . DllExport ;
7
+ using NXPorts . Attributes ;
8
8
9
9
namespace ClrLoader
10
10
{
@@ -44,9 +44,9 @@ public static IntPtr CreateAppDomain(
44
44
[ DllExport ( "pyclr_get_function" , CallingConvention . Cdecl ) ]
45
45
public static IntPtr GetFunction (
46
46
IntPtr domain ,
47
- [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string assemblyPath ,
48
- [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string typeName ,
49
- [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string function
47
+ [ MarshalAs ( UnmanagedType . LPStr ) ] string assemblyPath ,
48
+ [ MarshalAs ( UnmanagedType . LPStr ) ] string typeName ,
49
+ [ MarshalAs ( UnmanagedType . LPStr ) ] string function
50
50
)
51
51
{
52
52
try
@@ -90,4 +90,4 @@ static void Print(string s)
90
90
}
91
91
}
92
92
93
- }
93
+ }
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFrameworks >net472 </TargetFrameworks >
3
+ <TargetFrameworks >net47 </TargetFrameworks >
4
4
<Platforms >x64;x86</Platforms >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" UnmanagedExports.Repack.Upgrade" Version =" 1.2.1" />
8
+ <PackageReference Include =" NXports" Version =" 0.2.0-dev" />
9
+ <PackageReference Include =" Microsoft.NETFramework.ReferenceAssemblies" Version =" 1.0.0-preview.2" >
10
+ <PrivateAssets >all</PrivateAssets >
11
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
12
+ </PackageReference >
9
13
</ItemGroup >
10
14
11
15
<PropertyGroup Condition =" '$(Platform)' == 'x86'" >
You can’t perform that action at this time.
0 commit comments