|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
3 | 3 | <PropertyGroup>
|
4 |
| - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
5 |
| - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
6 |
| - <ProjectGuid>{097B4AC0-74E9-4C58-BCF8-C69746EC8271}</ProjectGuid> |
7 |
| - <OutputType>Library</OutputType> |
8 |
| - <AssemblyName>Python.Runtime</AssemblyName> |
9 |
| - <RootNamespace>Python.Runtime</RootNamespace> |
10 |
| - <DocumentationFile>bin\Python.Runtime.xml</DocumentationFile> |
11 |
| - <OutputPath>bin\</OutputPath> |
12 |
| - <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
13 |
| - <TargetFrameworkProfile /> |
14 |
| - <NoWarn>1591</NoWarn> |
15 |
| - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> |
16 |
| - <PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir> |
17 |
| - <AppDesignerFolder>Properties</AppDesignerFolder> |
18 |
| - <LangVersion>6</LangVersion> |
19 |
| - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
20 |
| - <SignAssembly>false</SignAssembly> |
21 |
| - <AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile> |
22 |
| - </PropertyGroup> |
23 |
| - <!--We can relax binding to platform because code references no any platform dependent assemblies--> |
24 |
| - <!--This will allows to use any build of this assebly as a compile ref assebly--> |
25 |
| - <!--<PropertyGroup Condition=" '$(Platform)' == 'x86'"> |
26 |
| - <PlatformTarget>x86</PlatformTarget> |
27 |
| - </PropertyGroup> |
28 |
| - <PropertyGroup Condition=" '$(Platform)' == 'x64'"> |
29 |
| - <PlatformTarget>x64</PlatformTarget> |
30 |
| - </PropertyGroup>--> |
31 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMono'"> |
32 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS4</DefineConstants> |
33 |
| - <Optimize>true</Optimize> |
34 |
| - <DebugType>pdbonly</DebugType> |
35 |
| - </PropertyGroup> |
36 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMonoPY3'"> |
37 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON37;UCS4</DefineConstants> |
38 |
| - <Optimize>true</Optimize> |
39 |
| - <DebugType>pdbonly</DebugType> |
40 |
| - </PropertyGroup> |
41 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'DebugMono'"> |
42 |
| - <DebugSymbols>true</DebugSymbols> |
43 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS4;TRACE;DEBUG</DefineConstants> |
44 |
| - <Optimize>false</Optimize> |
45 |
| - <DebugType>full</DebugType> |
46 |
| - </PropertyGroup> |
47 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'DebugMonoPY3'"> |
48 |
| - <DebugSymbols>true</DebugSymbols> |
49 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON37;UCS4;TRACE;DEBUG</DefineConstants> |
50 |
| - <Optimize>false</Optimize> |
51 |
| - <DebugType>full</DebugType> |
52 |
| - </PropertyGroup> |
53 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseWin'"> |
54 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS2</DefineConstants> |
55 |
| - <Optimize>true</Optimize> |
56 |
| - <DebugType>pdbonly</DebugType> |
57 |
| - </PropertyGroup> |
58 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseWinPY3'"> |
59 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON37;UCS2</DefineConstants> |
60 |
| - <Optimize>true</Optimize> |
61 |
| - <DebugType>pdbonly</DebugType> |
62 |
| - </PropertyGroup> |
63 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'DebugWin'"> |
64 |
| - <DebugSymbols>true</DebugSymbols> |
65 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS2;TRACE;DEBUG</DefineConstants> |
66 |
| - <Optimize>false</Optimize> |
67 |
| - <DebugType>full</DebugType> |
| 4 | + <TargetFramework>netstandard2.0</TargetFramework> |
68 | 5 | </PropertyGroup>
|
69 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'DebugWinPY3'"> |
70 |
| - <DebugSymbols>true</DebugSymbols> |
71 |
| - <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON37;UCS2;TRACE;DEBUG</DefineConstants> |
72 |
| - <Optimize>false</Optimize> |
73 |
| - <DebugType>full</DebugType> |
| 6 | + |
| 7 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
| 8 | + <DefineConstants>DEBUG;TRACE;PYTHON3;PYTHON36;UCS2</DefineConstants> |
| 9 | + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
74 | 10 | </PropertyGroup>
|
| 11 | + |
75 | 12 | <ItemGroup>
|
76 |
| - <Reference Include="System" /> |
| 13 | + <None Remove="resources\clr.py" /> |
77 | 14 | </ItemGroup>
|
| 15 | + |
78 | 16 | <ItemGroup>
|
79 |
| - <Compile Include="finalizer.cs" /> |
80 |
| - <Compile Include="Properties\AssemblyInfo.cs" /> |
81 |
| - <Compile Include="..\SharedAssemblyInfo.cs"> |
82 |
| - <Link>Properties\SharedAssemblyInfo.cs</Link> |
83 |
| - </Compile> |
84 |
| - <Compile Include="arrayobject.cs" /> |
85 |
| - <Compile Include="assemblymanager.cs" /> |
86 |
| - <Compile Include="classderived.cs" /> |
87 |
| - <Compile Include="classbase.cs" /> |
88 |
| - <Compile Include="classmanager.cs" /> |
89 |
| - <Compile Include="classobject.cs" /> |
90 |
| - <Compile Include="clrobject.cs" /> |
91 |
| - <Compile Include="codegenerator.cs" /> |
92 |
| - <Compile Include="constructorbinder.cs" /> |
93 |
| - <Compile Include="constructorbinding.cs" /> |
94 |
| - <Compile Include="converter.cs" /> |
95 |
| - <Compile Include="CustomMarshaler.cs" /> |
96 |
| - <Compile Include="debughelper.cs" /> |
97 |
| - <Compile Include="delegatemanager.cs" /> |
98 |
| - <Compile Include="delegateobject.cs" /> |
99 |
| - <Compile Include="eventbinding.cs" /> |
100 |
| - <Compile Include="eventobject.cs" /> |
101 |
| - <Compile Include="exceptions.cs" /> |
102 |
| - <Compile Include="extensiontype.cs" /> |
103 |
| - <Compile Include="fieldobject.cs" /> |
104 |
| - <Compile Include="generictype.cs" /> |
105 |
| - <Compile Include="genericutil.cs" /> |
106 |
| - <Compile Include="importhook.cs" /> |
107 |
| - <Compile Include="indexer.cs" /> |
108 |
| - <Compile Include="interfaceobject.cs" /> |
109 |
| - <Compile Include="interfaces.cs" /> |
110 |
| - <Compile Include="interop.cs" /> |
111 |
| - <Compile Include="iterator.cs" /> |
112 |
| - <Compile Include="managedtype.cs" /> |
113 |
| - <Compile Include="metatype.cs" /> |
114 |
| - <Compile Include="methodbinder.cs" /> |
115 |
| - <Compile Include="methodbinding.cs" /> |
116 |
| - <Compile Include="methodobject.cs" /> |
117 |
| - <Compile Include="methodwrapper.cs" /> |
118 |
| - <Compile Include="modulefunctionobject.cs" /> |
119 |
| - <Compile Include="moduleobject.cs" /> |
120 |
| - <Compile Include="modulepropertyobject.cs" /> |
121 |
| - <Compile Include="nativecall.cs" /> |
122 |
| - <Compile Include="overload.cs" /> |
123 |
| - <Compile Include="propertyobject.cs" /> |
124 |
| - <Compile Include="pyansistring.cs" /> |
125 |
| - <Compile Include="pydict.cs" /> |
126 |
| - <Compile Include="pyfloat.cs" /> |
127 |
| - <Compile Include="pyint.cs" /> |
128 |
| - <Compile Include="pyiter.cs" /> |
129 |
| - <Compile Include="pylist.cs" /> |
130 |
| - <Compile Include="pylong.cs" /> |
131 |
| - <Compile Include="pynumber.cs" /> |
132 |
| - <Compile Include="pyobject.cs" /> |
133 |
| - <Compile Include="pyscope.cs" /> |
134 |
| - <Compile Include="pysequence.cs" /> |
135 |
| - <Compile Include="pystring.cs" /> |
136 |
| - <Compile Include="pythonengine.cs" /> |
137 |
| - <Compile Include="pythonexception.cs" /> |
138 |
| - <Compile Include="pytuple.cs" /> |
139 |
| - <Compile Include="runtime.cs" /> |
140 |
| - <Compile Include="typemanager.cs" /> |
141 |
| - <Compile Include="typemethod.cs" /> |
142 |
| - <Compile Include="Util.cs" /> |
143 |
| - </ItemGroup> |
144 |
| - <ItemGroup Condition=" '$(PythonInteropFile)' != '' "> |
145 |
| - <Compile Include="$(PythonInteropFile)" /> |
146 |
| - </ItemGroup> |
147 |
| - <ItemGroup Condition=" '$(PythonInteropFile)' == '' "> |
148 |
| - <Compile Include="interop27.cs" /> |
149 |
| - <Compile Include="interop34.cs" /> |
150 |
| - <Compile Include="interop35.cs" /> |
151 |
| - <Compile Include="interop36.cs" /> |
152 |
| - <Compile Include="interop37.cs" /> |
| 17 | + <EmbeddedResource Include="resources\clr.py" /> |
153 | 18 | </ItemGroup>
|
| 19 | + |
154 | 20 | <ItemGroup>
|
155 |
| - <None Include="..\pythonnet.snk" /> |
| 21 | + <PackageReference Include="System.Reflection.Emit" Version="4.3.0" /> |
156 | 22 | </ItemGroup>
|
157 |
| - <ItemGroup> |
158 |
| - <EmbeddedResource Include="resources\clr.py"> |
159 |
| - <LogicalName>clr.py</LogicalName> |
160 |
| - </EmbeddedResource> |
161 |
| - </ItemGroup> |
162 |
| - <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> |
163 |
| - <PropertyGroup> |
164 |
| - <TargetAssembly>$(TargetPath)</TargetAssembly> |
165 |
| - <TargetAssemblyPdb>$(TargetDir)$(TargetName).pdb</TargetAssemblyPdb> |
166 |
| - </PropertyGroup> |
167 |
| - <Target Name="AfterBuild"> |
168 |
| - <Copy SourceFiles="$(TargetAssembly)" DestinationFolder="$(PythonBuildDir)" /> |
169 |
| - <!--Copy SourceFiles="$(TargetAssemblyPdb)" Condition="Exists('$(TargetAssemblyPdb)')" DestinationFolder="$(PythonBuildDir)" /--> |
170 |
| - </Target> |
171 |
| -</Project> |
| 23 | + |
| 24 | +</Project> |
0 commit comments