|
3 | 3 | <PropertyGroup>
|
4 | 4 | <TargetFramework>net472</TargetFramework>
|
5 | 5 | <IsPackable>false</IsPackable>
|
6 |
| - <Platforms>x64;x86</Platforms> |
| 6 | + <Platforms>x64</Platforms> |
| 7 | + <PlatformTarget>x64</PlatformTarget> |
| 8 | + |
7 | 9 | </PropertyGroup>
|
8 | 10 |
|
9 | 11 | <ItemGroup>
|
10 |
| - <PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> |
| 12 | + <Content Include="baseline\Python.Runtime.dll"> |
| 13 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| 14 | + </Content> |
| 15 | + </ItemGroup> |
| 16 | + |
| 17 | + <ItemGroup> |
| 18 | + <Reference Include="baseline/Python.Runtime.dll"> |
| 19 | + <Private>false</Private> |
| 20 | + </Reference> |
| 21 | + </ItemGroup> |
| 22 | + |
| 23 | + <ItemGroup> |
| 24 | + <PackageReference Include="BenchmarkDotNet" Version="0.13.1" /> |
11 | 25 | <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
|
12 | 26 | <PrivateAssets>all</PrivateAssets>
|
13 | 27 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
17 | 31 | <PrivateAssets>all</PrivateAssets>
|
18 | 32 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
19 | 33 | </PackageReference>
|
20 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" /> |
21 |
| - <PackageReference Include="pythonnet" Version="2.3.0" GeneratePathProperty="true"> |
22 |
| - <IncludeAssets>compile</IncludeAssets> |
23 |
| - </PackageReference> |
| 34 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" /> |
24 | 35 | </ItemGroup>
|
25 | 36 |
|
26 | 37 | <Target Name="GetRuntimeLibBuildOutput" BeforeTargets="Build">
|
27 |
| - <MSBuild Projects="..\runtime\Python.Runtime.csproj" Properties="PYTHONNET_PY3_VERSION=PYTHON38;Python3Version=PYTHON38;OutputPath=bin\for_perf\"> |
| 38 | + <MSBuild Projects="..\runtime\Python.Runtime.csproj" Properties="OutputPath=bin\for_perf\;Configuration=Release;TargetFramework=netstandard2.0" Targets="Build"> |
28 | 39 | <Output TaskParameter="TargetOutputs" ItemName="NewPythonRuntime" />
|
29 | 40 | </MSBuild>
|
30 | 41 | </Target>
|
31 | 42 |
|
32 |
| - <Target Name="CopyBaseline" AfterTargets="Build"> |
33 |
| - <Copy SourceFiles="$(Pkgpythonnet)\lib\net40\Python.Runtime.dll" DestinationFolder="$(OutDir)\baseline" /> |
34 |
| - </Target> |
35 |
| - |
36 | 43 | <Target Name="CopyNewBuild" AfterTargets="Build">
|
| 44 | + <Message Text="Outputs: @(NewPythonRuntime)" Importance="high" /> |
37 | 45 | <Copy SourceFiles="@(NewPythonRuntime)" DestinationFolder="$(OutDir)\new" />
|
38 | 46 | </Target>
|
39 | 47 |
|
|
0 commit comments