|
1 | 1 | <Project>
|
2 | 2 | <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
3 | 3 | <PropertyGroup>
|
4 |
| - <TargetFrameworks>net40;netcoreapp3.1</TargetFrameworks> |
| 4 | + <TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks> |
5 | 5 | <Platforms>x64;x86</Platforms>
|
6 |
| - <Configurations>DebugMono;DebugMonoPY3;ReleaseMono;ReleaseMonoPY3;DebugWin;DebugWinPY3;ReleaseWin;ReleaseWinPY3</Configurations> |
| 6 | + <Configurations>DebugMono;ReleaseMono;DebugWin;ReleaseWin</Configurations> |
7 | 7 | <OutputType>Exe</OutputType>
|
8 | 8 | <AssemblyName>nPython</AssemblyName>
|
9 | 9 | <RootNamespace>Python.Runtime</RootNamespace>
|
|
16 | 16 | <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
|
17 | 17 | <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
|
18 | 18 | <OutputPath>bin\</OutputPath>
|
19 |
| - <AppendTargetFrameworkToOutputPath Condition="'$(TargetFramework)'=='net40'">false</AppendTargetFrameworkToOutputPath> |
20 |
| - <DocumentationFile Condition="'$(TargetFramework)'=='net40'">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> |
21 |
| - <DocumentationFile Condition="'$(TargetFramework)'!='net40'">$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> |
| 19 | + <AppendTargetFrameworkToOutputPath Condition="'$(TargetFramework)'=='net461'">false</AppendTargetFrameworkToOutputPath> |
| 20 | + <DocumentationFile Condition="'$(TargetFramework)'=='net461'">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> |
| 21 | + <DocumentationFile Condition="'$(TargetFramework)'!='net461'">$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> |
22 | 22 | <NoWarn>1591</NoWarn>
|
23 | 23 | <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
|
24 | 24 | <PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir>
|
25 |
| - <PublishDir Condition="'$(TargetFramework)'!='net40'">$(PythonBuildDir)\$(TargetFramework)\</PublishDir> |
| 25 | + <PublishDir Condition="'$(TargetFramework)'!='net461'">$(PythonBuildDir)\$(TargetFramework)\</PublishDir> |
26 | 26 | <LangVersion>6</LangVersion>
|
27 | 27 | <ApplicationIcon>python-clear.ico</ApplicationIcon>
|
28 | 28 | <ErrorReport>prompt</ErrorReport>
|
29 | 29 | <CustomDefineConstants Condition="'$(CustomDefineConstants)' == ''">$(PYTHONNET_DEFINE_CONSTANTS)</CustomDefineConstants>
|
30 | 30 | <BaseDefineConstants>XPLAT</BaseDefineConstants>
|
31 | 31 | <DefineConstants>$(DefineConstants);$(CustomDefineConstants);$(BaseDefineConstants);</DefineConstants>
|
32 | 32 | <DefineConstants Condition="'$(BuildingInsideVisualStudio)' == 'true' AND '$(CustomDefineConstants)' != '' AND $(Configuration.Contains('Debug'))">$(DefineConstants);TRACE;DEBUG</DefineConstants>
|
33 |
| - <FrameworkPathOverride Condition="'$(TargetFramework)'=='net40' AND $(Configuration.Contains('Mono'))">$(NuGetPackageRoot)\microsoft.targetingpack.netframework.v4.5\1.0.1\lib\net45\</FrameworkPathOverride> |
34 | 33 | </PropertyGroup>
|
35 | 34 | <PropertyGroup Condition=" '$(Platform)' == 'x86'">
|
36 | 35 | <PlatformTarget>x86</PlatformTarget>
|
|
39 | 38 | <PlatformTarget>x64</PlatformTarget>
|
40 | 39 | </PropertyGroup>
|
41 | 40 |
|
42 |
| - <PropertyGroup Condition="$(Configuration.Contains('Debug')) AND '$(TargetFramework)'=='net40'"> |
| 41 | + <PropertyGroup Condition="$(Configuration.Contains('Debug')) AND '$(TargetFramework)'=='net461'"> |
43 | 42 | <Optimize>false</Optimize>
|
44 | 43 | <DebugType>full</DebugType>
|
45 | 44 | </PropertyGroup>
|
46 |
| - <PropertyGroup Condition="$(Configuration.Contains('Release')) AND '$(TargetFramework)'=='net40'"> |
| 45 | + <PropertyGroup Condition="$(Configuration.Contains('Release')) AND '$(TargetFramework)'=='net461'"> |
47 | 46 | <Optimize>true</Optimize>
|
48 | 47 | <DebugType>pdbonly</DebugType>
|
49 | 48 | </PropertyGroup>
|
|
68 | 67 | <PropertyGroup Condition="'$(PythonManifest)' != ''">
|
69 | 68 | <ApplicationManifest>$(PythonManifest)</ApplicationManifest>
|
70 | 69 | </PropertyGroup>
|
71 |
| - <ItemGroup Condition="'$(TargetFramework)' == 'net40'"> |
| 70 | + <ItemGroup Condition="'$(TargetFramework)' == 'net461'"> |
72 | 71 | <Reference Include="System" />
|
73 | 72 | </ItemGroup>
|
74 | 73 | <ItemGroup>
|
|
78 | 77 | </ItemGroup>
|
79 | 78 | <ItemGroup>
|
80 | 79 | <Content Include="python-clear.ico" />
|
81 |
| - <EmbeddedResource Condition="'$(TargetFramework)'=='net40'" Include="$(PythonBuildDir)\Python.Runtime.dll"> |
| 80 | + <EmbeddedResource Condition="'$(TargetFramework)'=='net461'" Include="$(PythonBuildDir)\Python.Runtime.dll"> |
82 | 81 | <LogicalName>Python.Runtime.dll</LogicalName>
|
83 | 82 | </EmbeddedResource>
|
84 | 83 | </ItemGroup>
|
| 84 | + <ItemGroup Condition="'$(TargetFramework)'=='net461'"> |
| 85 | + <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0"> |
| 86 | + <PrivateAssets>all</PrivateAssets> |
| 87 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 88 | + </PackageReference> |
| 89 | + </ItemGroup> |
85 | 90 | <ItemGroup>
|
86 | 91 | <ProjectReference Include="..\runtime\Python.Runtime.15.csproj" />
|
87 | 92 | </ItemGroup>
|
88 | 93 |
|
89 | 94 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
90 | 95 |
|
91 | 96 | <Target Name="AfterBuild">
|
92 |
| - <Copy Condition="'$(TargetFramework)'=='net40'" SourceFiles="$(TargetPath)" DestinationFolder="$(PythonBuildDir)" /> |
| 97 | + <Copy Condition="'$(TargetFramework)'=='net461'" SourceFiles="$(TargetPath)" DestinationFolder="$(PythonBuildDir)" /> |
93 | 98 | </Target>
|
94 | 99 | </Project>
|
0 commit comments