|
1 | 1 | <Project> |
2 | 2 | <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> |
3 | 3 | <PropertyGroup> |
4 | | - <TargetFrameworks>net40</TargetFrameworks> |
| 4 | + <TargetFrameworks>net40;netcoreapp2.0</TargetFrameworks> |
5 | 5 | <Platforms>x64;x86</Platforms> |
6 | 6 | <Configurations>DebugMono;DebugMonoPY3;ReleaseMono;ReleaseMonoPY3;DebugWin;DebugWinPY3;ReleaseWin;ReleaseWinPY3</Configurations> |
7 | 7 | <OutputType>Exe</OutputType> |
|
15 | 15 | <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
16 | 16 | <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> |
17 | 17 | <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> |
18 | | - <DocumentationFile>bin\nPython.xml</DocumentationFile> |
19 | 18 | <OutputPath>bin\</OutputPath> |
20 | | - <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
| 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> |
21 | 22 | <NoWarn>1591</NoWarn> |
22 | 23 | <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> |
23 | 24 | <PythonBuildDir
6854
Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir> |
| 25 | + <PublishDir Condition="'$(TargetFramework)'!='net40'">$(PythonBuildDir)\$(TargetFramework)\</PublishDir> |
24 | 26 | <LangVersion>6</LangVersion> |
25 | 27 | <ApplicationIcon>python-clear.ico</ApplicationIcon> |
26 | 28 | <ErrorReport>prompt</ErrorReport> |
|
89 | 91 | </ItemGroup> |
90 | 92 | <ItemGroup> |
91 | 93 | <Content Include="python-clear.ico" /> |
92 | | - <EmbeddedResource Include="$(PythonBuildDir)\Python.Runtime.dll"> |
| 94 | + <EmbeddedResource Condition="'$(TargetFramework)'=='net40'" Include="$(PythonBuildDir)\Python.Runtime.dll"> |
93 | 95 | <LogicalName>Python.Runtime.dll</LogicalName> |
94 | 96 | </EmbeddedResource> |
95 | 97 | </ItemGroup> |
|
100 | 102 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> |
101 | 103 |
|
102 | 104 | <Target Name="AfterBuild"> |
103 | | - <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PythonBuildDir)" /> |
| 105 | + <Copy Condition="'$(TargetFramework)'=='net40'" SourceFiles="$(TargetPath)" DestinationFolder="$(PythonBuildDir)" /> |
104 | 106 | </Target> |
105 | 107 | </Project> |
0 commit comments