Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Project.targets « build - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56018145bbb8f37fabb2600e43ce71355c11a2f8 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<Project>
  <Import Project="PackageVersions.targets"/>

  <PropertyGroup>
    <IsPackable Condition="'$(PushToPublicFeed)' != 'true'">false</IsPackable>
    <IncludeSymbols>true</IncludeSymbols>
  </PropertyGroup>

  <Target Name="DumpPaths">
    <Message Text="RepoRootPath: $(RepoRootPath)"/>
    <Message Text="RepoObjPath: $(RepoObjPath)"/>
    <Message Text="RepoBinPath: $(RepoBinPath)"/>
    <Message Text="BaseOutputPath: $(BaseOutputPath)"/>
    <Message Text="OutputPath: $(OutputPath)"/>
    <Message Text="BaseIntermediateOutputPath: $(BaseIntermediateOutputPath)"/>
    <Message Text="IntermediateOutputPath: $(IntermediateOutputPath)"/>
  </Target>

  <PropertyGroup>
    <FPFRootPath>$(RepoRootPath)src\FPF\</FPFRootPath>
    <FPFOutputPath>$(RepoBinPath)FPF\$(Configuration)\$(TargetFramework)\</FPFOutputPath>
  </PropertyGroup>

  <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX')) == 'true'">
    <AssemblySearchPaths>
      $(FPFOutputPath);
      $(AssemblySearchPaths);
    </AssemblySearchPaths>
  </PropertyGroup>

  <Target
    Name="PrepareFPFProjectReferences"
    BeforeTargets="AssignProjectConfiguration"
    Condition="$([MSBuild]::IsOSPlatform('OSX'))">
    <ItemGroup>
      <ProjectReference
        Condition="'%(Reference.Identity)' == 'WindowsBase'"
        Include="$(FPFRootPath)WindowsBase\WindowsBase.csproj"/>
      <ProjectReference
        Condition="'%(Reference.Identity)' == 'PresentationCore'"
        Include="$(FPFRootPath)PresentationCore\PresentationCore.csproj"/>
      <ProjectReference
        Condition="'%(Reference.Identity)' == 'PresentationFramework'"
        Include="$(FPFRootPath)PresentationFramework\PresentationFramework.csproj"/>
      <ProjectReference
        Condition="'%(Reference.Identity)' == 'UIAutomationClient'"
        Include="$(FPFRootPath)UIAutomationClient\UIAutomationClient.csproj"/>
      <ProjectReference
        Condition="'%(Reference.Identity)' == 'UIAutomationProvider'"
        Include="$(FPFRootPath)UIAutomationProvider\UIAutomationProvider.csproj"/>
      <ProjectReference
        Condition="'%(Reference.Identity)' == 'UIAutomationTypes'"
        Include="$(FPFRootPath)UIAutomationTypes\UIAutomationTypes.csproj"/>
    </ItemGroup>
    <ItemGroup>
      <Reference Remove="WindowsBase"/>
      <Reference Remove="PresentationCore"/>
      <Reference Remove="PresentationFramework"/>
      <Reference Remove="UIAutomationClient"/>
      <Reference Remove="UIAutomationProvider"/>
      <Reference Remove="UIAutomationTypes"/>
    </ItemGroup>
  </Target>

  <Target Name="Test" Condition="$(MSBuildProjectFile.EndsWith('UnitTests.csproj'))">
    <PropertyGroup>
      <StandaloneMacEditor>$(RepoBinPath)StandaloneMacEditor\$(Configuration)\$(TargetFramework)\MonoDevelop.Ide.app\Contents\MacOS\MonoDevelop.Ide</StandaloneMacEditor>
    </PropertyGroup>
    <Exec Command="&quot;$(StandaloneMacEditor)&quot; test &quot;$(TargetPath)&quot; -xml &quot;$(RepoArtifactsPath)TestResults\$(TargetName).xml&quot;" />
  </Target>
</Project>