File tree Expand file tree Collapse file tree 4 files changed +39
-5
lines changed Expand file tree Collapse file tree 4 files changed +39
-5
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Reflection ;
3
+ using NUnit . Common ;
4
+ using NUnitLite ;
5
+
6
+ namespace Python . EmbeddingTest
7
+ {
8
+ public class Program
9
+ {
10
+ public static int Main ( string [ ] args )
11
+ {
12
+ ////var example = new TestExample();
13
+ ////example.SetUp();
14
+ ////example.TestReadme();
15
+ ////example.Dispose();
16
+ ////return 0;
17
+ return new AutoRun ( typeof ( Program ) . GetTypeInfo ( ) . Assembly )
18
+ . Execute ( args , new ExtendedTextWrapper ( Console . Out ) , Console . In ) ;
19
+ }
20
+ }
21
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "profiles" : {
3
+ "Python.EmbeddingTest.15" : {
4
+ "commandName" : " Project"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFrameworks >net40;netstandard1.6</TargetFrameworks >
4
- <!-- <PackageTargetFallback>net</PackageTarg0etFallback>-->
3
+ <OutputType >exe</OutputType >
4
+ <TargetFrameworks ><!-- net40;--> netcoreapp1.0</TargetFrameworks >
5
+ <RuntimeIdentifiers >win7-x64;ubuntu.16.04-x64</RuntimeIdentifiers >
5
6
<RootNamespace >Python.EmbeddingTest</RootNamespace >
6
7
<AssemblyName >Python.EmbeddingTest</AssemblyName >
7
8
<PackageId >Python.EmbeddingTest</PackageId >
12
13
<AllowUnsafeBlocks >True</AllowUnsafeBlocks >
13
14
<!-- <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>-->
14
15
<NetStandardImplicitPackageVersion >1.6.0</NetStandardImplicitPackageVersion >
16
+ <!-- This is for NUnit Test Adaptor crash workaround.-->
15
17
<DebugType >Full</DebugType >
16
18
</PropertyGroup >
17
19
<PropertyGroup Condition =" '$(Platform)' == 'x86'" >
25
27
26
28
<PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net40|x64'" />
27
29
28
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard1.6 |x64'" />
30
+ <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp1.0 |x64'" />
29
31
30
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard1.6 |x64'" />
32
+ <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp1.0 |x64'" />
31
33
32
34
<PropertyGroup >
33
35
<DefineConstants >$(DefineConstants);XPLAT</DefineConstants >
37
39
<PackageReference Include =" NUnit" >
38
40
<Version >3.6.1</Version >
39
41
</PackageReference >
42
+ <PackageReference Include =" NUnitLite" Version =" 3.6.1" />
40
43
</ItemGroup >
41
44
42
45
<ItemGroup >
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Runtime . InteropServices ;
3
3
4
4
namespace Python . Runtime
@@ -75,7 +75,10 @@ internal static void Shutdown()
75
75
if ( Runtime . Py_IsInitialized ( ) != 0 )
76
76
{
77
77
Runtime . XDecref ( py_clr_module ) ;
78
+ // TODO: Very strange behavior under CoreCLR. System.ExecutionEngineException (Crash)
79
+ #if ! NETSTANDARD1_5
78
80
Runtime . XDecref ( root . pyHandle ) ;
81
+ #endif
79
82
Runtime . XDecref ( py_import ) ;
80
83
}
81
84
}
You can’t perform that action at this time.
0 commit comments