-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAtom.targets
77 lines (64 loc) · 3.48 KB
/
Atom.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
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
72
73
74
75
76
77
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AtomLocation>..\atom\</AtomLocation>
</PropertyGroup>
<Target Name="AtomDataReference" BeforeTargets="PrepareProjectReferences;CollectPackageReferences"
Condition="'$(ReferenceAtomData)' == 'true'">
<PropertyGroup>
<Name>Atom.Data</Name>
<Path>$(MSBuildThisFileDirectory)$(AtomLocation)$(Name)</Path>
<ProjectExists Condition="Exists('$(Path)')">true</ProjectExists>
</PropertyGroup>
<!-- <Message Text="$(Path)" Importance="High" />
<Message Text="ProjectExists: $(ProjectExists)" Importance="High" /> -->
<ItemGroup>
<Reference Include="Genius.$(Name)" Condition="'$(ProjectExists)' == 'true'">
<HintPath>$(Path)\bin\Debug\net8.0\Genius.$(Name).dll</HintPath>
</Reference>
<PackageReference Include="Genius.$(Name)" Condition="'$(ProjectExists)' != 'true'" />
</ItemGroup>
</Target>
<Target Name="AtomInfrastructureReference" BeforeTargets="PrepareProjectReferences;CollectPackageReferences"
Condition="'$(ReferenceAtomInfrastructure)' == 'true'">
<PropertyGroup>
<Name>Atom.Infrastructure</Name>
<Path>$(MSBuildThisFileDirectory)$(AtomLocation)$(Name)</Path>
<ProjectExists Condition="Exists('$(Path)')">true</ProjectExists>
</PropertyGroup>
<ItemGroup>
<Reference Include="Genius.$(Name)" Condition="'$(ProjectExists)' == 'true'">
<HintPath>$(Path)\bin\Debug\net8.0\Genius.$(Name).dll</HintPath>
</Reference>
<PackageReference Include="Genius.$(Name)" Condition="'$(ProjectExists)' != 'true'" />
</ItemGroup>
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('.Tests')) Or $(MSBuildProjectName.EndsWith('.TestingUtil'))">
<Reference Include="Genius.$(Name).TestingUtil" Condition="'$(ProjectExists)' == 'true'">
<HintPath>$(Path).TestingUtil\bin\Debug\net8.0\Genius.$(Name).TestingUtil.dll</HintPath>
</Reference>
<PackageReference Include="Genius.$(Name).TestingUtil" Condition="'$(ProjectExists)' != 'true'" />
</ItemGroup>
</Target>
<Target Name="AtomUiFormsReference" BeforeTargets="PrepareProjectReferences;CollectPackageReferences"
Condition="'$(ReferenceAtomUiForms)' == 'true'">
<PropertyGroup>
<Name>Atom.UI.Forms</Name>
<Path>$(MSBuildThisFileDirectory)$(AtomLocation)$(Name)</Path>
<ProjectExists Condition="Exists('$(Path)')">true</ProjectExists>
</PropertyGroup>
<ItemGroup>
<Reference Include="Genius.$(Name)" Condition="'$(ProjectExists)' == 'true'">
<HintPath>$(Path)\bin\Debug\$(UiTargetFramework)\Genius.$(Name).dll</HintPath>
</Reference>
<PackageReference Include="Genius.$(Name)" Condition="'$(ProjectExists)' != 'true'" />
<!-- 3rd-party dependencies from Atom.UI.Forms -->
<_AtomUiFormsThirdPartyDependencies Include="$(Path)\bin\Debug\$(UiTargetFramework)\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(_AtomUiFormsThirdPartyDependencies)" DestinationFolder="$(TargetDir)\" />
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('.Tests')) Or $(MSBuildProjectName.EndsWith('.TestingUtil'))">
<Reference Include="Genius.$(Name).TestingUtil" Condition="'$(ProjectExists)' == 'true'">
<HintPath>$(Path).TestingUtil\bin\Debug\$(UiTargetFramework)\Genius.$(Name).TestingUtil.dll</HintPath>
</Reference>
<PackageReference Include="Genius.$(Name).TestingUtil" Condition="'$(ProjectExists)' != 'true'" />
</ItemGroup>
</Target>
</Project>