mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-04 08:32:23 +00:00
The samples were pointed at published packages that no longer match the sources next to them, and at one package they had no business referencing at all. Connectors come from the sibling checkout rather than from NuGet. The published connector packages were compiled against a StockSharp.Messages that still had AsyncMessageAdapter; the source has since dropped it, so a package built against the old base type fails with CS7069 the moment the local Messages project is in the graph - which it always is inside this solution. FIX is among them now: it has moved out of the closed repository and is a project like the others, so the two Hydra samples that used its package take the project too. Indicators, strategies and the testing stack used to ship inside StockSharp.Algo and are separate projects now, so referencing Algo alone left every sample without SimpleMovingAverage, Strategy and RandomWalkTradeGenerator. Two references cover it: Algo.Strategies reaches Algo.Testing and Algo transitively, while Algo.Indicators is not reachable from that chain and has to be named. 01_MultiConnect and 02_StoreDataLocal additionally referenced StockSharp.Studio.WebApi.UI for exactly one type, CredentialsWindow, and got Studio.Core and Studio.WebApi with it. That type now lives in StockSharp.Xaml, so the reference goes - from the package projects and the _fromsrc ones alike. The dialog takes an ICurrentClientFetcher rather than the web API's client service, and the sample supplies its own: it already registers an IApiServiceProvider, the same object Studio's registry reads, so the anonymous lookup is the call it always was, made directly. Web.Api reached those samples transitively through the Studio package and is named explicitly now; StockSharp.Web.DomainModel is aliased rather than imported wholesale, since it also defines Subscription and DataType, which that file uses from BusinessEntities and Messages. Both _fromsrc samples build. The package-based pair does not yet: it takes StockSharp.Xaml transitively from the published StockSharp.Xaml.Charting, and the published Xaml has no ICurrentClientFetcher. They compile as soon as StockSharp.Xaml is republished. Two samples are left failing rather than papered over: 09_Advanced needs the republished Xaml above, and 03_Storage/03_RemoteSource uses StockSharp.Finam, stale in the same way the connector packages were, with no Finam project in the Connectors checkout to point at instead.
14 lines
878 B
XML
14 lines
878 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<Import Project="..\..\common_samples_netwindows.props" />
|
|
<ItemGroup>
|
|
<PackageReference Include="StockSharp.Web.Api.Client" Version="$(StockSharpVer)" />
|
|
<ApplicationDefinition Include="..\01_MultiConnect\App.xaml" Link="App.xaml" />
|
|
<Compile Include="..\01_MultiConnect\App.xaml.cs" DependentUpon="App.xaml" Link="App.xaml.cs" />
|
|
|
|
<Page Include="..\01_MultiConnect\*.xaml" Exclude="..\01_MultiConnect\App.xaml;..\01_MultiConnect\MainWindow.xaml" DependentUpon="%(Filename).xaml" Link="%(Filename).xaml" />
|
|
<Compile Include="..\01_MultiConnect\*.xaml.cs" Exclude="..\01_MultiConnect\App.xaml.cs;..\01_MultiConnect\MainWindow.xaml.cs" DependentUpon="%(Filename)" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\..\..\StockSharpApps\Xaml.Charting\Xaml.Charting.csproj" />
|
|
</ItemGroup>
|
|
</Project> |