forked from dotnet/wcf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dir.targets
44 lines (36 loc) · 2.48 KB
/
dir.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" InitialTargets="CheckForBuildTools" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="CheckForBuildTools">
<Error Condition="!Exists('$(ToolsDir)') and '$(OverrideToolsDir)'=='true'"
Text="The tools directory [$(ToolsDir)] does not exist. Please run sync in your enlistment to ensure the tools are installed before attempting to build an individual project." />
<Error Condition="!Exists('$(ToolsDir)') and '$(OverrideToolsDir)'!='true'"
Text="The tools directory [$(ToolsDir)] does not exist. Please run init-tools.cmd in your enlistment to ensure the tools are installed before attempting to build an individual project." />
</Target>
<!-- Provide default targets which can be hooked onto or overridden as necessary -->
<Target Name="BuildAndTest" DependsOnTargets="Build;Test" />
<Target Name="RebuildAndTest" DependsOnTargets="Rebuild;Test" />
<Target Name="Test" />
<Import Project="$(ToolsDir)/Build.Common.targets" />
<!-- permit a wrapping build system to contribute targets to this build -->
<Import Condition="Exists('$(MSBuildThisFileDirectory)..\open.targets')" Project="$(MSBuildThisFileDirectory)..\open.targets" />
<!-- *** start WCF Content *** -->
<!-- Copy the test-runtime project.json and change it to use floating (*) CoreFX dependencies for testing against the latest packages. -->
<Target Name="GenerateFloatingTestRuntimeProjectJson"
Inputs="$(TestFixedRuntimeProjectJson)"
Outputs="$(TestRuntimeProjectJson)"
Condition="'$(FloatingTestRuntimeDependencies)'=='true'"
BeforeTargets="RestoreTestRuntimePackage;BatchRestorePackages">
<Copy SourceFiles="$(TestFixedRuntimeProjectJson)"
DestinationFolder="$(TestRuntimePath)" />
<ItemGroup>
<FixedToFloatingValidationPattern Include="^((System\..*)|(Microsoft\.CSharp)|(Microsoft\.NETCore.*)|(Microsoft\.Win32\..*)|(Microsoft\.VisualBasic))(?<!TestData)$">
<ExpectedPrerelease>*</ExpectedPrerelease>
</FixedToFloatingValidationPattern>
</ItemGroup>
<ValidateProjectDependencyVersions ProjectJsons="$(TestRuntimeProjectJson)"
ProhibitFloatingDependencies="false"
ValidationPatterns="@(FixedToFloatingValidationPattern)"
UpdateInvalidDependencies="true" />
</Target>
<!-- *** end WCF Content *** -->
</Project>