-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMeadow.UnitTestTemplate.csproj
57 lines (50 loc) · 2.35 KB
/
Meadow.UnitTestTemplate.csproj
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
48
49
50
51
52
53
54
55
56
57
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsTestProject>false</IsTestProject>
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ExposedObject" Version="1.3.0" />
<PackageReference Include="Microsoft.UnitTestFramework.Extensions" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" />
<PackageReference Include="Microsoft.TestPlatform.TestHost" Version="15.9.0" />
<PackageReference Include="System.ComponentModel.Primitives" Version="4.3.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Meadow.Contract\Meadow.Contract.csproj" />
<ProjectReference Include="..\Meadow.CoverageReport\Meadow.CoverageReport.csproj" />
<ProjectReference Include="..\Meadow.DebugAdapterServer\Meadow.DebugAdapterServer.csproj" />
<ProjectReference Include="..\Meadow.SolCodeGen\Meadow.SolCodeGen.csproj" PrivateAssets="none" />
<ProjectReference Include="..\Meadow.TestNode\Meadow.TestNode.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="Meadow.UnitTestTemplate.props">
<Pack>true</Pack>
<PackagePath>build</PackagePath>
</None>
<None Update="Meadow.UnitTestTemplate.targets">
<Pack>true</Pack>
<PackagePath>build</PackagePath>
</None>
<None Include="RunnerEntryPoint.cs">
<Pack>true</Pack>
<PackagePath>build</PackagePath>
</None>
</ItemGroup>
<!--
We include a reference to the MSTest.TestAdapter package as a transitive dependency
so consumers of this project have it. But we don't want to bundle the content files
from MSTest.TestAdapter inside this package.
TODO: Try to find a cleaner way to exclude these files from the package.
-->
<Import Project="reference-mstest-adapter.targets" />
<Target Name="ExlcudeTestAdapterPackageContent" BeforeTargets="BeforeBuild" Condition="'$(Configuration)' == 'Release'">
<ItemGroup>
<Content Update="*" Condition="$([System.String]::Copy('%(Content.Link)').StartsWith('Microsoft.VisualStudio.TestPlatform'))">
<Pack>false</Pack>
</Content>
</ItemGroup>
</Target>
</Project>