mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-04 08:32:23 +00:00
59 lines
1.3 KiB
C#
59 lines
1.3 KiB
C#
namespace StockSharp.Algo.Compilation
|
|
{
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
using Ecng.Compilation;
|
|
|
|
/// <summary>
|
|
/// Extension class.
|
|
/// </summary>
|
|
public static class CodeExtensions
|
|
{
|
|
private static readonly IEnumerable<string> _defaultReferences = new[]
|
|
{
|
|
"mscorlib",
|
|
"netstandard",
|
|
|
|
"System",
|
|
"System.Core",
|
|
"System.Configuration",
|
|
"System.Xml",
|
|
"System.Runtime",
|
|
"System.Linq",
|
|
"System.Private.CoreLib",
|
|
"System.ObjectModel",
|
|
"System.ComponentModel.Primitives",
|
|
"System.ComponentModel.TypeConverter",
|
|
"System.ComponentModel.Annotations",
|
|
"System.Collections",
|
|
"System.Drawing.Primitives",
|
|
|
|
"Ecng.Common",
|
|
"Ecng.Collections",
|
|
"Ecng.ComponentModel",
|
|
"Ecng.Configuration",
|
|
"Ecng.Localization",
|
|
"Ecng.Serialization",
|
|
"Ecng.Reflection",
|
|
"Ecng.Drawing",
|
|
|
|
"StockSharp.Algo",
|
|
"StockSharp.Messages",
|
|
"StockSharp.BusinessEntities",
|
|
"StockSharp.Logging",
|
|
"StockSharp.Localization",
|
|
"StockSharp.Diagram.Core",
|
|
"StockSharp.Charting.Interfaces",
|
|
"StockSharp.Alerts.Interfaces",
|
|
};
|
|
|
|
/// <summary>
|
|
/// Default references.
|
|
/// </summary>
|
|
public static IEnumerable<CodeReference> DefaultReferences
|
|
=> _defaultReferences
|
|
.Select(r => new CodeReference { Location = $"{r}.dll" })
|
|
.ToArray();
|
|
}
|
|
} |