-
Notifications
You must be signed in to change notification settings - Fork 772
/
ToolsTest.targets
29 lines (16 loc) · 1.93 KB
/
ToolsTest.targets
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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(TargetsDirectory)\Microsoft.FSharp.ShimHelpers.props" />
<Import Project="$(TargetsDirectory)\Microsoft.FSharp.targets" />
<Target Name="Test" DependsOnTargets="FSharpSourceCodeCompileOrder">
<Message Importance="High" Text="===========================================================================================================" />
<Message Importance="High" Text="Testing : $(MSBuildProjectName)" />
<!-- check for expected settings -->
<Error Condition="'$(ExpectedFSharpShimPresent)' != '$(FSharp_Shim_Present)'" Text="FSharp_Shim_Present expected:'$(ExpectedFSharpShimPresent)' actual: '$(FSharp_Shim_Present)'" />
<Error Condition="$([System.String]::new('$(FSharpCompilerPath)').EndsWith('$(ExpectedFSharpCompilerPath)')) != true" Text="FSharpCompilerPath expected to end with: '$(ExpectedFSharpCompilerPath)' actual:'$(FSharpCompilerPath)'" />
<Error Condition="'$(ExpectedFscToolExe)' != '$(FscToolExe)'" Text="FscToolExe: expected:'$(ExpectedFscToolExe)' actual:'$(FscToolExe)'" />
<Error Condition="'$(ExpectedFscToolPath)' != '$(FscToolPath)'" Text="FscToolPath: expected:'$(ExpectedFscToolPath)' actual:'$(FscToolPath)'" />
<Error Condition="'$(ExpectedCompile)' != '' and '$(ExpectedCompile)' != '@(Compile)'" Text="ExpectedCompile: expected:'$(ExpectedCompile)' actual:'@(Compile)'" />
<Error Condition="'$(ExpectedDotnetFscCompilerPath)' == '' and '$(DotnetFscCompilerPath)' != ''" Text="DotnetFscCompilerPath expected to be empty actual:'$(DotnetFscCompilerPath)'" />
<Error Condition="'$(ExpectedDotnetFscCompilerPath)' != '' and $([System.String]::new('$(DotnetFscCompilerPath)').EndsWith('$(ExpectedDotnetFscCompilerPath)')) == true" Text="DotnetFscCompilerPath expected to end with: '$(ExpectedDotnetFscCompilerPath)' actual:'$(DotnetFscCompilerPath)'" />
</Target>
</Project>