forked from thomhurst/TUnit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestProject.props
More file actions
51 lines (38 loc) · 1.93 KB
/
TestProject.props
File metadata and controls
51 lines (38 loc) · 1.93 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
48
49
50
51
<Project>
<Import Project="$(MSBuildThisFileDirectory)TestLibrary.props" />
<Import Project="$(MSBuildThisFileDirectory)TUnit.Engine\TUnit.Engine.props" />
<Import Project="$(MSBuildThisFileDirectory)TUnit.Assertions\TUnit.Assertions.props" />
<Import
Project="$(MSBuildThisFileDirectory)TUnit.Assertions.FSharp\TUnit.Assertions.FSharp.props"
Condition="'$(MSBuildProjectExtension)' == '.fsproj'" />
<PropertyGroup>
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<IsTestingPlatformApplication>true</IsTestingPlatformApplication>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>
<IsTestProject>true</IsTestProject>
<UseTestingPlatformProtocol>true</UseTestingPlatformProtocol>
<IsTestingPlatformEnabled>true</IsTestingPlatformEnabled>
</PropertyGroup>
<Target Name="CleanSourceGeneratedViewer" BeforeTargets="BeforeBuild">
<Message Text="Removing SourceGeneratedViewer directory..." Importance="high" />
<ItemGroup>
<FilesToDelete Include="$(ProjectDir)SourceGeneratedViewer\**\*" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" ContinueOnError="true" />
</Target>
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>SourceGeneratedViewer</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Remove="SourceGeneratedViewer\**" />
<None Include="SourceGeneratedViewer\**" />
</ItemGroup>
<!-- Enable VSCode test discovery integration -->
<ItemGroup>
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" />
</ItemGroup>
</Project>