Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions Technical/Indicators.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
<ATAS_BASE>C:\Program Files (x86)\ATAS Platform</ATAS_BASE>
</PropertyGroup>

<!-- DevExpress.Data must match the version referenced by the installed platform assemblies, otherwise the
WPF markup compiler fails with MC1000 (e.g. an install that ships v26.1 built against a v25.2 reference).
Installers leave older DevExpress versions next to the new one, so the newest one present is used.
Override with -p:DevExpressDataVersion=vXX.Y if needed. -->
<PropertyGroup Condition=" '$(Platform)' != 'Cross' And '$(DevExpressDataVersion)' == '' ">
<DevExpressDataVersion Condition=" Exists('$(ATAS_BASE)\DevExpress.Data.v26.1.dll') ">v26.1</DevExpressDataVersion>
<DevExpressDataVersion Condition=" '$(DevExpressDataVersion)' == '' And Exists('$(ATAS_BASE)\DevExpress.Data.v25.2.dll') ">v25.2</DevExpressDataVersion>
<DevExpressDataVersion Condition=" '$(DevExpressDataVersion)' == '' And Exists('$(ATAS_BASE)\DevExpress.Data.v23.2.dll') ">v23.2</DevExpressDataVersion>
<DevExpressDataVersion Condition=" '$(DevExpressDataVersion)' == '' ">v25.2</DevExpressDataVersion>
</PropertyGroup>

<ItemGroup>
<Reference Include="OFT.Attributes">
<HintPath>$(ATAS_BASE)\OFT.Attributes.dll</HintPath>
Expand All @@ -64,8 +75,8 @@
<Reference Include="OFT.Localization">
<HintPath>$(ATAS_BASE)\OFT.Localization.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Data.v25.2" Condition=" '$(Platform)' != 'Cross' ">
<HintPath>$(ATAS_BASE)\DevExpress.Data.v25.2.dll</HintPath>
<Reference Include="DevExpress.Data.$(DevExpressDataVersion)" Condition=" '$(Platform)' != 'Cross' ">
<HintPath>$(ATAS_BASE)\DevExpress.Data.$(DevExpressDataVersion).dll</HintPath>
</Reference>
<Reference Include="Avalonia" Condition=" '$(Platform)' == 'Cross' ">
<HintPath>$(ATAS_BASE)\Avalonia.Base.dll</HintPath>
Expand Down Expand Up @@ -107,4 +118,15 @@
<None Include="**\*.xaml" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>

<!-- The installed platform ships its own ATAS.Indicators.Technical.dll, and ResolveAssemblyReferences reaches it as a
dependency (OFT.Editors -> OFT.Platform.Core -> ATAS.Strategies -> ATAS.Indicators.Technical). Drop it so it neither
collides with this project's output in GenerateDepsFile (MSB4018 "An item with the same key has already been added")
nor gets copied over the freshly built assembly. -->
<Target Name="ExcludeInstalledSelfFromDependencies" AfterTargets="ResolveAssemblyReferences">
<ItemGroup>
<ReferenceDependencyPaths Remove="@(ReferenceDependencyPaths)" Condition=" '%(Filename)' == '$(AssemblyName)' " />
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition=" '%(Filename)' == '$(AssemblyName)' " />
</ItemGroup>
</Target>

</Project>