Repository navigation
Expand file tree
/
Copy pathPython.Build.csproj
More file actions
47 lines (40 loc) · 2.14 KB
/
Copy pathPython.Build.csproj
File metadata and controls
47 lines (40 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<CreateOpenTapPackage>True</CreateOpenTapPackage>
</PropertyGroup>
<!-- Zip the ProjectTemplate directory into the output folder before TapPackage creation -->
<Target Name="ZipProjectTemplate" BeforeTargets="OpenTapPackageCreate" AfterTargets="Build">
<ZipDirectory SourceDirectory="$(MSBuildThisFileDirectory)..\OpenTap.Python.ProjectTemplate"
DestinationFile="$(OutputPath)OpenTap.Python.ProjectTemplate.zip"
Overwrite="true" />
</Target>
<!-- Remove test assemblies from output so tap package create does not scan them -->
<Target Name="CleanTestAssemblies" BeforeTargets="OpenTapPackageCreate" AfterTargets="ZipProjectTemplate">
<ItemGroup>
<TestAssembliesToRemove Include="$(OutputPath)OpenTap.Python.UnitTests.*" />
<TestAssembliesToRemove Include="$(OutputPath)nunit*" />
<TestAssembliesToRemove Include="$(OutputPath)NUnit*" />
<TestAssembliesToRemove Include="$(OutputPath)testhost*" />
<TestAssembliesToRemove Include="$(OutputPath)testcentric*" />
<TestAssembliesToRemove Include="$(OutputPath)Microsoft.Testing*" />
<TestAssembliesToRemove Include="$(OutputPath)Microsoft.TestPlatform*" />
<TestAssembliesToRemove Include="$(OutputPath)Microsoft.VisualStudio.TestPlatform*" />
<TestAssembliesToRemove Include="$(OutputPath)Microsoft.VisualStudio.CodeCoverage*" />
</ItemGroup>
<Delete Files="@(TestAssembliesToRemove)" />
</Target>
<ItemGroup>
<PackageReference Include="OpenTap" Version="$(OpenTapVersion)">
<Private>False</Private>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OpenTap.Python\OpenTap.Python.csproj">
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\Python.Dependencies\Python.Dependencies.csproj">
<Private>False</Private>
</ProjectReference>
</ItemGroup>
</Project>