This commit is contained in:
2026-08-20 14:56:23 +07:00
parent 7f00e38980
commit be3a0e9549
186 changed files with 350212 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
namespace CanCommon;
/// <summary>Common command-line options shared by master and slave.</summary>
public sealed class BenchmarkOptions
{
public string Interface { get; set; } = "";
public int Bitrate { get; set; } = 500_000;
public int DurationSeconds { get; set; } = 60;
public string ResultsDir { get; set; } = "results";
// Fixed benchmark frame (per the spec: ID 0x123, DLC 8, payload all 0xAA).
public uint CanId { get; set; } = 0x123;
public int Dlc { get; set; } = 8;
public byte PayloadFill { get; set; } = 0xAA;
/// <summary>If true, (re)configure the interface bitrate via `ip link` before running.</summary>
public bool Configure { get; set; }
/// <summary>Frames pushed per sendmmsg syscall (master TX). 1 = per-frame write(). Bigger keeps the FIFO fuller.</summary>
public int TxBatch { get; set; } = 64;
/// <summary>Try to run the tx/rx thread on SCHED_FIFO (needs CAP_SYS_NICE). Best-effort.</summary>
public bool Realtime { get; set; } = true;
/// <summary>SCHED_FIFO priority to request when <see cref="Realtime"/> is on.</summary>
public int RtPriority { get; set; } = 80;
public string BitrateLabel => Bitrate >= 1_000_000
? $"{Bitrate / 1_000_000.0:0.###} Mbps"
: $"{Bitrate / 1000} kbps";
public string PayloadHex => string.Join(' ', Enumerable.Repeat(PayloadFill.ToString("X2"), Dlc));
/// <summary>
/// Parse args like: --interface can_com3 --bitrate 500000 --duration 60 [--configure] [--results DIR].
/// Unknown flags throw. Returns null and prints help on --help.
/// </summary>
public static BenchmarkOptions? Parse(string[] args, string defaultInterface, string role)
{
var o = new BenchmarkOptions { Interface = defaultInterface };
for (int i = 0; i < args.Length; i++)
{
string a = args[i];
string Next(string name) =>
i + 1 < args.Length ? args[++i] : throw new ArgumentException($"{name} requires a value");
switch (a)
{
case "--interface" or "-i": o.Interface = Next(a); break;
case "--bitrate" or "-b": o.Bitrate = int.Parse(Next(a)); break;
case "--duration" or "-d": o.DurationSeconds = int.Parse(Next(a)); break;
case "--results": o.ResultsDir = Next(a); break;
case "--configure": o.Configure = true; break;
case "--batch": o.TxBatch = Math.Max(1, int.Parse(Next(a))); break;
case "--rt-prio": o.RtPriority = int.Parse(Next(a)); break;
case "--no-rt": o.Realtime = false; break;
case "--help" or "-h": PrintHelp(role); return null;
default: throw new ArgumentException($"Unknown argument: {a}");
}
}
if (o.Bitrate is not (500_000 or 1_000_000))
Console.Error.WriteLine($"[warn] bitrate {o.Bitrate} is outside the spec's {{500000, 1000000}}.");
return o;
}
private static void PrintHelp(string role) => Console.WriteLine(
$"""
Can{role} — CAN max-bandwidth benchmark ({role.ToLower()})
--interface, -i NAME SocketCAN interface (e.g. can_com3)
--bitrate, -b N 500000 or 1000000 (default 500000)
--duration, -d SECS benchmark length (default 60)
--results DIR log output dir (default results)
--configure set interface bitrate via `ip link` first (needs sudo)
--batch N frames per sendmmsg syscall (master, default 64; 1 = write() each)
--rt-prio N SCHED_FIFO priority to request (default 80)
--no-rt do not attempt real-time scheduling
--help, -h this help
Example:
Can{role} --interface {(role == "Master" ? "can_com3" : "can_com4")} --bitrate 500000 --duration 60
""");
}

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<AssemblyName>CanCommon</AssemblyName>
<RootNamespace>CanCommon</RootNamespace>
</PropertyGroup>
</Project>

81
CanCommon/CanFrame.cs Normal file
View File

@@ -0,0 +1,81 @@
using System.Buffers.Binary;
namespace CanCommon;
/// <summary>
/// Helpers to build / inspect a classic Linux SocketCAN <c>struct can_frame</c>
/// (16 bytes, host byte order for <c>can_id</c>):
/// <code>
/// offset 0..3 : can_id (u32, host endian, flags in high bits)
/// offset 4 : len / can_dlc
/// offset 5 : __pad
/// offset 6 : __res0
/// offset 7 : len8_dlc
/// offset 8..15 : data[8]
/// </code>
/// The benchmark works directly on 16-byte buffers to avoid per-frame
/// allocations on the hot path.
/// </summary>
public static class CanFrame
{
public const int Size = 16;
// can_id flag bits (Linux <linux/can.h>)
public const uint CAN_EFF_FLAG = 0x80000000; // extended (29-bit) frame
public const uint CAN_RTR_FLAG = 0x40000000; // remote transmission request
public const uint CAN_ERR_FLAG = 0x20000000; // error message frame
public const uint CAN_SFF_MASK = 0x000007FF; // standard 11-bit id mask
public const uint CAN_EFF_MASK = 0x1FFFFFFF; // extended 29-bit id mask
public const uint CAN_ERR_MASK = 0x1FFFFFFF; // error-frame class mask
/// <summary>Allocate a 16-byte standard-frame buffer with a constant payload fill.</summary>
public static byte[] BuildStandard(uint standardId, int dlc, byte payloadFill)
{
if (dlc is < 0 or > 8) throw new ArgumentOutOfRangeException(nameof(dlc));
var buf = new byte[Size];
BinaryPrimitives.WriteUInt32LittleEndian(buf.AsSpan(0, 4), standardId & CAN_SFF_MASK);
buf[4] = (byte)dlc;
for (int i = 0; i < dlc; i++) buf[8 + i] = payloadFill;
return buf;
}
// --- Bus-load modelling -------------------------------------------------
// On-the-wire size of a classic CAN data frame, used to convert a frame rate
// into a bus-load %. Fixed-form (never-stuffed) tail = CRC delim(1) + ACK(1)
// + ACK delim(1) + EOF(7) + IFS(3) = 13 bits.
//
// nominal : no bit-stuffing (matches `canbusload -i`)
// worstcase: max bit-stuffing possible (matches `canbusload` default)
private const int FixedTailBits = 13;
/// <summary>Bits subject to bit-stuffing: SOF..CRC (control/arbitration + data + CRC).</summary>
private static int StuffableBits(int dlc, bool extended) =>
(extended ? 54 : 34) + 8 * dlc; // std: SOF1+ID11+RTR1+IDE1+r0_1+DLC4+CRC15=34; eff adds SRR+IDB18+r1=+20
/// <summary>On-wire bits per frame assuming no bit-stuffing (lower bound of bus load).</summary>
public static int BusBitsNominal(int dlc, bool extended) =>
StuffableBits(dlc, extended) + FixedTailBits;
/// <summary>On-wire bits per frame with worst-case bit-stuffing (upper bound of bus load).</summary>
public static int BusBitsWorstCase(int dlc, bool extended) =>
BusBitsNominal(dlc, extended) + (StuffableBits(dlc, extended) - 1) / 4;
public static uint GetRawId(byte[] frame16) =>
BinaryPrimitives.ReadUInt32LittleEndian(frame16.AsSpan(0, 4));
public static bool IsError(byte[] frame16) => (GetRawId(frame16) & CAN_ERR_FLAG) != 0;
public static bool IsExtended(byte[] frame16) => (GetRawId(frame16) & CAN_EFF_FLAG) != 0;
public static uint GetStandardId(byte[] frame16) => GetRawId(frame16) & CAN_SFF_MASK;
public static int GetDlc(byte[] frame16) => frame16[4] & 0x0F;
/// <summary>True when the first <paramref name="dlc"/> data bytes all equal <paramref name="value"/>.</summary>
public static bool PayloadAllEqual(byte[] frame16, int dlc, byte value)
{
for (int i = 0; i < dlc; i++)
if (frame16[8 + i] != value) return false;
return true;
}
}

87
CanCommon/CanTxBatch.cs Normal file
View File

@@ -0,0 +1,87 @@
using System.Runtime.InteropServices;
namespace CanCommon;
/// <summary>
/// Batched transmit of one fixed frame via a single <c>sendmmsg(2)</c> syscall.
///
/// The per-frame <c>write()</c> path costs one syscall per frame; at ~8-9 k
/// frames/s that syscall overhead is what leaves small idle gaps on the bus.
/// Pushing N frames per syscall keeps the controller's tx FIFO full so the bus
/// stays closer to 100%.
///
/// All N messages point at the SAME 16-byte frame + the SAME iovec, so the only
/// per-batch cost is the mmsghdr array. Native buffers are allocated once and
/// reused for every <see cref="Send"/>; nothing is allocated on the hot path.
/// </summary>
public sealed class CanTxBatch : IDisposable
{
// struct mmsghdr { struct msghdr msg_hdr; unsigned int msg_len; } on 64-bit:
// msghdr is 56 bytes, + 4 (msg_len) + 4 pad = 64. Fields we set live in msghdr:
// msg_iov at offset 16 (pointer)
// msg_iovlen at offset 24 (size_t)
private const int MmsghdrSize = 64;
private const int OffMsgIov = 16;
private const int OffMsgIovlen = 24;
[DllImport("libc", SetLastError = true)]
private static extern int sendmmsg(int fd, nint msgvec, uint vlen, int flags);
private readonly int _fd;
private readonly int _count;
private nint _frame; // 16-byte can_frame
private nint _iov; // one struct iovec pointing at _frame
private nint _mmsg; // _count contiguous struct mmsghdr
public int Count => _count;
public int LastErrno { get; private set; }
internal CanTxBatch(int fd, byte[] frame16, int count)
{
if (fd < 0) throw new ArgumentException("channel not open", nameof(fd));
if (count < 1) throw new ArgumentOutOfRangeException(nameof(count));
if (frame16.Length < CanFrame.Size) throw new ArgumentException("frame too small", nameof(frame16));
_fd = fd;
_count = count;
_frame = Marshal.AllocHGlobal(CanFrame.Size);
Marshal.Copy(frame16, 0, _frame, CanFrame.Size);
// struct iovec { void *iov_base; size_t iov_len; }
_iov = Marshal.AllocHGlobal(nint.Size * 2);
Marshal.WriteIntPtr(_iov, 0, _frame);
Marshal.WriteIntPtr(_iov, nint.Size, CanFrame.Size);
_mmsg = Marshal.AllocHGlobal(MmsghdrSize * count);
for (long b = 0; b < (long)MmsghdrSize * count; b++)
Marshal.WriteByte(_mmsg, (int)b, 0); // zero name/control/flags/len
for (int k = 0; k < count; k++)
{
nint h = _mmsg + k * MmsghdrSize;
Marshal.WriteIntPtr(h, OffMsgIov, _iov); // msg_iov -> shared iovec
Marshal.WriteIntPtr(h, OffMsgIovlen, 1); // msg_iovlen = 1
}
}
/// <summary>
/// Send the whole batch in one syscall.
/// Returns the number of frames the kernel accepted (0..Count), or -1 on
/// error with <see cref="LastErrno"/> set (e.g. 100 ENETDOWN).
/// </summary>
public int Send()
{
int ret = sendmmsg(_fd, _mmsg, (uint)_count, 0);
if (ret >= 0) { LastErrno = 0; return ret; }
LastErrno = Marshal.GetLastPInvokeError();
return -1;
}
public void Dispose()
{
if (_mmsg != 0) { Marshal.FreeHGlobal(_mmsg); _mmsg = 0; }
if (_iov != 0) { Marshal.FreeHGlobal(_iov); _iov = 0; }
if (_frame != 0) { Marshal.FreeHGlobal(_frame); _frame = 0; }
}
}

33
CanCommon/ICanChannel.cs Normal file
View File

@@ -0,0 +1,33 @@
namespace CanCommon;
/// <summary>
/// Backend-agnostic CAN channel. The benchmark depends only on this interface,
/// so the exact same benchmark code runs against any implementation
/// (SocketCAN / PEAK PCAN-Basic / a vendor CAN module) by swapping the backend.
/// Frames are raw 16-byte SocketCAN <c>can_frame</c> buffers (see <see cref="CanFrame"/>).
/// </summary>
public interface ICanChannel : IDisposable
{
/// <summary>Human-readable channel name (e.g. the network interface).</summary>
string Name { get; }
/// <summary>errno from the most recent failed native call (0 if none).</summary>
int LastErrno { get; }
/// <summary>Open and bind the channel. Throws on failure.</summary>
void Open();
/// <summary>
/// Transmit one 16-byte frame. Returns true when fully written.
/// On false, <see cref="LastErrno"/> holds the reason (e.g. bus-off / no-buffer).
/// </summary>
bool Send(byte[] frame16);
/// <summary>
/// Blocking receive with the channel's configured timeout.
/// Returns 16 on a frame, 0 on timeout, -1 on error.
/// </summary>
int Receive(byte[] frame16, out bool timedOut);
void Close();
}

View File

@@ -0,0 +1,44 @@
using System.Diagnostics;
namespace CanCommon;
/// <summary>
/// Optional helper that sets a SocketCAN interface bitrate via `ip link`
/// (requires root / sudo). Kept separate from the socket I/O so the backend
/// stays portable; on non-SocketCAN backends this is simply not used.
/// </summary>
public static class InterfaceConfigurator
{
public static void SetBitrate(string ifName, int bitrate, int txqueuelen = 1000)
{
// Bring down, set bitrate, raise tx queue, bring up.
Run("ip", $"link set {ifName} down");
Run("ip", $"link set {ifName} type can bitrate {bitrate} restart-ms 100");
Run("ip", $"link set {ifName} txqueuelen {txqueuelen}");
Run("ip", $"link set {ifName} up");
}
private static void Run(string file, string args)
{
// Prefer sudo if we are not already root.
bool root = Environment.GetEnvironmentVariable("USER") == "root" ||
(OperatingSystem.IsLinux() && geteuid() == 0);
var psi = new ProcessStartInfo
{
FileName = root ? file : "sudo",
Arguments = root ? args : $"{file} {args}",
RedirectStandardError = true,
RedirectStandardOutput = true,
UseShellExecute = false,
};
using var p = Process.Start(psi)!;
string err = p.StandardError.ReadToEnd();
p.WaitForExit();
if (p.ExitCode != 0)
throw new InvalidOperationException(
$"`{psi.FileName} {psi.Arguments}` failed (exit {p.ExitCode}): {err.Trim()}");
}
[System.Runtime.InteropServices.DllImport("libc")]
private static extern uint geteuid();
}

View File

@@ -0,0 +1,39 @@
using System.Runtime.InteropServices;
namespace CanCommon;
/// <summary>
/// Best-effort real-time scheduling for the calling thread (Linux only).
/// Putting the tx/rx thread on SCHED_FIFO stops the kernel from preempting it
/// between frames, which is what lets the CAN controller's tx FIFO stay full
/// and the bus stay saturated. Needs CAP_SYS_NICE (run under sudo or
/// <c>setcap cap_sys_nice+ep</c>); if that is missing we degrade gracefully.
/// </summary>
public static class RealtimeScheduler
{
private const int SCHED_FIFO = 1;
[StructLayout(LayoutKind.Sequential)]
private struct SchedParam { public int sched_priority; }
// glibc pthread_setschedparam returns the errno directly (0 == success);
// it does NOT set the global errno, so we read the return value.
[DllImport("libc")] private static extern nuint pthread_self();
[DllImport("libc")] private static extern int pthread_setschedparam(nuint thread, int policy, ref SchedParam param);
/// <summary>
/// Try to put the CURRENT thread on SCHED_FIFO at <paramref name="priority"/>.
/// Must be called from the thread you want to elevate.
/// </summary>
/// <returns><c>null</c> on success, otherwise a human-readable reason it failed.</returns>
public static string? TryEngage(int priority)
{
if (!OperatingSystem.IsLinux()) return "not Linux";
var p = new SchedParam { sched_priority = priority };
int rc = pthread_setschedparam(pthread_self(), SCHED_FIFO, ref p);
if (rc == 0) return null;
return rc == 1 /*EPERM*/
? "EPERM — need CAP_SYS_NICE (run under sudo or `setcap cap_sys_nice+ep <binary>`)"
: $"errno {rc}";
}
}

56
CanCommon/RunLogger.cs Normal file
View File

@@ -0,0 +1,56 @@
using System.Text;
namespace CanCommon;
/// <summary>
/// Tees output to the console and a log file. The log ends with a machine-readable
/// <c>SUMMARY key=value</c> block so a report script can build the comparison table.
/// </summary>
public sealed class RunLogger : IDisposable
{
private readonly StreamWriter _file;
public string Path { get; }
public RunLogger(string path)
{
Path = path;
Directory.CreateDirectory(System.IO.Path.GetDirectoryName(System.IO.Path.GetFullPath(path))!);
_file = new StreamWriter(path, append: false) { AutoFlush = true };
}
/// <summary>Console + file.</summary>
public void Line(string text = "")
{
Console.WriteLine(text);
_file.WriteLine(text);
}
/// <summary>File only (e.g. per-second samples we don't want to spam the log with twice).</summary>
public void FileOnly(string text)
{
_file.WriteLine(text);
}
/// <summary>Emit a machine-readable summary line: <c>SUMMARY key1=v1 key2=v2 ...</c>.</summary>
public void Summary(IReadOnlyDictionary<string, string> kv)
{
var sb = new StringBuilder("SUMMARY");
foreach (var (k, v) in kv) sb.Append(' ').Append(k).Append('=').Append(v);
Line(sb.ToString());
}
public void Dispose() => _file.Dispose();
/// <summary>Build a timestamped log path, e.g. results/can_master_can_com3_500k_20260815-093012.log</summary>
public static string BuildPath(string dir, string role, string iface, int bitrate)
{
string rate = bitrate switch
{
1_000_000 => "1m",
500_000 => "500k",
_ => $"{bitrate / 1000}k",
};
string ts = DateTime.Now.ToString("yyyyMMdd-HHmmss");
return System.IO.Path.Combine(dir, $"can_{role}_{iface}_{rate}_{ts}.log");
}
}

View File

@@ -0,0 +1,160 @@
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
namespace CanCommon;
/// <summary>
/// SocketCAN backend (Linux <c>PF_CAN / CAN_RAW</c>) implemented over libc P/Invoke.
/// Works for any SocketCAN device, including the PEAK/SJA1000 PCI card and the
/// IPC's built-in CAN module — the benchmark does not know or care which.
/// </summary>
public sealed class SocketCanChannel : ICanChannel
{
// address families / socket types
private const int AF_CAN = 29;
private const int SOCK_RAW = 3;
private const int CAN_RAW = 1;
// setsockopt levels / options
private const int SOL_SOCKET = 1;
private const int SO_RCVTIMEO = 20;
private const int SOL_CAN_RAW = 101;
private const int CAN_RAW_ERR_FILTER = 2;
// ioctl
private const uint SIOCGIFINDEX = 0x8933;
private const int EAGAIN = 11; // receive timeout (EWOULDBLOCK)
private const int EINTR = 4;
[DllImport("libc", SetLastError = true)] private static extern int socket(int domain, int type, int protocol);
[DllImport("libc", SetLastError = true)] private static extern int bind(int fd, byte[] addr, int addrlen);
[DllImport("libc", SetLastError = true, EntryPoint = "ioctl")] private static extern int ioctl(int fd, uint request, byte[] arg);
[DllImport("libc", SetLastError = true)] private static extern int setsockopt(int fd, int level, int optname, byte[] optval, int optlen);
[DllImport("libc", SetLastError = true)] private static extern nint read(int fd, byte[] buf, nuint count);
[DllImport("libc", SetLastError = true)] private static extern nint write(int fd, byte[] buf, nuint count);
[DllImport("libc", SetLastError = true)] private static extern int close(int fd);
private readonly string _ifName;
private readonly int _rcvTimeoutMs;
private readonly bool _wantErrorFrames;
private int _fd = -1;
public string Name => _ifName;
public int LastErrno { get; private set; }
/// <param name="ifName">SocketCAN interface, e.g. <c>can_com3</c>.</param>
/// <param name="rcvTimeoutMs">Blocking-receive timeout so loops can check for shutdown.</param>
/// <param name="wantErrorFrames">Deliver bus error frames to the reader (for error counting).</param>
public SocketCanChannel(string ifName, int rcvTimeoutMs = 200, bool wantErrorFrames = false)
{
_ifName = ifName;
_rcvTimeoutMs = rcvTimeoutMs;
_wantErrorFrames = wantErrorFrames;
}
public void Open()
{
_fd = socket(AF_CAN, SOCK_RAW, CAN_RAW);
if (_fd < 0) throw Fail("socket(PF_CAN, SOCK_RAW, CAN_RAW)");
int ifindex = ResolveIfIndex(_fd, _ifName);
// struct sockaddr_can { u16 can_family; int can_ifindex; ... } -> 16 bytes.
var addr = new byte[16];
BitConverter.TryWriteBytes(addr.AsSpan(0, 2), (ushort)AF_CAN);
BitConverter.TryWriteBytes(addr.AsSpan(4, 4), ifindex);
if (bind(_fd, addr, addr.Length) != 0) throw Fail($"bind({_ifName})");
if (_wantErrorFrames)
{
// Ask the kernel to also deliver bus error frames (all classes).
var mask = BitConverter.GetBytes(CanFrame.CAN_ERR_MASK);
setsockopt(_fd, SOL_CAN_RAW, CAN_RAW_ERR_FILTER, mask, mask.Length);
}
if (_rcvTimeoutMs > 0)
{
// struct timeval { long tv_sec; long tv_usec; } -> 16 bytes on 64-bit.
var tv = new byte[16];
long sec = _rcvTimeoutMs / 1000;
long usec = (_rcvTimeoutMs % 1000) * 1000L;
BitConverter.TryWriteBytes(tv.AsSpan(0, 8), sec);
BitConverter.TryWriteBytes(tv.AsSpan(8, 8), usec);
setsockopt(_fd, SOL_SOCKET, SO_RCVTIMEO, tv, tv.Length);
}
}
public bool Send(byte[] frame16)
{
nint n = write(_fd, frame16, (nuint)CanFrame.Size);
if (n == CanFrame.Size) { LastErrno = 0; return true; }
LastErrno = Marshal.GetLastPInvokeError();
return false;
}
/// <summary>
/// Create a reusable batched sender that pushes <paramref name="count"/> copies of
/// <paramref name="frame16"/> per <c>sendmmsg</c> syscall. The channel must be open.
/// </summary>
public CanTxBatch CreateTxBatch(byte[] frame16, int count)
{
if (_fd < 0) throw new InvalidOperationException("channel is not open");
return new CanTxBatch(_fd, frame16, count);
}
public int Receive(byte[] frame16, out bool timedOut)
{
timedOut = false;
while (true)
{
nint n = read(_fd, frame16, (nuint)CanFrame.Size);
if (n == CanFrame.Size) { LastErrno = 0; return CanFrame.Size; }
int err = Marshal.GetLastPInvokeError();
if (err == EINTR) continue; // interrupted -> retry
if (err == EAGAIN) { timedOut = true; return 0; } // rcv timeout
LastErrno = err;
return -1;
}
}
public void Close()
{
if (_fd >= 0) { close(_fd); _fd = -1; }
}
public void Dispose() => Close();
private static int ResolveIfIndex(int fd, string ifName)
{
// struct ifreq is 40 bytes on 64-bit; name in [0..15], ifr_ifindex (int) at 16.
var ifr = new byte[40];
byte[] name = Encoding.ASCII.GetBytes(ifName);
if (name.Length >= 16) throw new ArgumentException($"Interface name too long: {ifName}");
Array.Copy(name, ifr, name.Length);
if (ioctl(fd, SIOCGIFINDEX, ifr) != 0)
{
int err = Marshal.GetLastPInvokeError();
throw new IOException($"ioctl(SIOCGIFINDEX, {ifName}) failed (errno {err}: {Strerror(err)}). Is the interface up?");
}
return BitConverter.ToInt32(ifr, 16);
}
private IOException Fail(string what)
{
int err = Marshal.GetLastPInvokeError();
LastErrno = err;
return new IOException($"{what} failed (errno {err}: {Strerror(err)})");
}
public static string Strerror(int errno) => errno switch
{
1 => "EPERM (need CAP_NET_RAW: run with sudo or setcap cap_net_raw+ep)",
11 => "EAGAIN/EWOULDBLOCK",
19 => "ENODEV (no such device)",
100 => "ENETDOWN (interface is down)",
105 => "ENOBUFS (tx queue full / bus-off)",
_ => $"errno {errno}",
};
}

68
CanCommon/Statistics.cs Normal file
View File

@@ -0,0 +1,68 @@
using System.Diagnostics;
using System.Threading;
namespace CanCommon;
/// <summary>
/// Thread-safe counters + timing shared by master and slave.
/// The hot path uses <see cref="Interlocked"/> so a reporting thread can take
/// consistent snapshots without locking the sender/receiver loop.
/// </summary>
public sealed class Statistics
{
private long _frames;
private long _payloadBytes;
private long _errors; // TX errors (master) or CAN/bus error frames (slave)
private long _validFrames; // slave only
private long _invalidFrames; // slave only
private readonly Stopwatch _sw = new();
public void Start() => _sw.Restart();
public void Stop() => _sw.Stop();
public double ElapsedSeconds => _sw.Elapsed.TotalSeconds;
public void AddFrame(int payloadBytes)
{
Interlocked.Increment(ref _frames);
Interlocked.Add(ref _payloadBytes, payloadBytes);
}
/// <summary>Bulk variant for batched transmit (one sendmmsg accepting <paramref name="count"/> frames).</summary>
public void AddFrames(int count, int payloadBytes)
{
Interlocked.Add(ref _frames, count);
Interlocked.Add(ref _payloadBytes, (long)count * payloadBytes);
}
public void AddValid(int payloadBytes)
{
Interlocked.Increment(ref _frames);
Interlocked.Increment(ref _validFrames);
Interlocked.Add(ref _payloadBytes, payloadBytes);
}
public void AddInvalid()
{
Interlocked.Increment(ref _frames);
Interlocked.Increment(ref _invalidFrames);
}
public void AddError() => Interlocked.Increment(ref _errors);
public Snapshot Take() => new(
Volatile.Read(ref _frames),
Volatile.Read(ref _payloadBytes),
Volatile.Read(ref _validFrames),
Volatile.Read(ref _invalidFrames),
Volatile.Read(ref _errors),
_sw.Elapsed.TotalSeconds);
public readonly record struct Snapshot(
long Frames, long PayloadBytes, long ValidFrames, long InvalidFrames, long Errors, double Seconds)
{
public double FramesPerSecond => Seconds > 0 ? Frames / Seconds : 0;
public double PayloadBytesPerSecond => Seconds > 0 ? PayloadBytes / Seconds : 0;
public double PayloadMbps => PayloadBytesPerSecond * 8.0 / 1_000_000.0;
}
}

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v10.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v10.0": {
"CanCommon/1.0.0": {
"runtime": {
"CanCommon.dll": {}
}
}
}
},
"libraries": {
"CanCommon/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,350 @@
{
"format": 1,
"restore": {
"C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj": {}
},
"projects": {
"C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj",
"projectName": "CanCommon",
"projectPath": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj",
"packagesPath": "C:\\Users\\LeSon\\.nuget\\packages\\",
"outputPath": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\LeSon\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net10.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "all"
},
"SdkAnalysisLevel": "10.0.400"
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.400/PortableRuntimeIdentifierGraph.json",
"packagesToPrune": {
"Microsoft.CSharp": "(,4.7.32767]",
"Microsoft.VisualBasic": "(,10.4.32767]",
"Microsoft.Win32.Primitives": "(,4.3.32767]",
"Microsoft.Win32.Registry": "(,5.0.32767]",
"runtime.any.System.Collections": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.any.System.Globalization": "(,4.3.32767]",
"runtime.any.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.any.System.IO": "(,4.3.32767]",
"runtime.any.System.Reflection": "(,4.3.32767]",
"runtime.any.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.any.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.any.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.any.System.Runtime": "(,4.3.32767]",
"runtime.any.System.Runtime.Handles": "(,4.3.32767]",
"runtime.any.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.any.System.Text.Encoding": "(,4.3.32767]",
"runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.any.System.Threading.Tasks": "(,4.3.32767]",
"runtime.any.System.Threading.Timer": "(,4.3.32767]",
"runtime.aot.System.Collections": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.aot.System.Globalization": "(,4.3.32767]",
"runtime.aot.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.aot.System.IO": "(,4.3.32767]",
"runtime.aot.System.Reflection": "(,4.3.32767]",
"runtime.aot.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.aot.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.aot.System.Runtime": "(,4.3.32767]",
"runtime.aot.System.Runtime.Handles": "(,4.3.32767]",
"runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.aot.System.Threading.Tasks": "(,4.3.32767]",
"runtime.aot.System.Threading.Timer": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.unix.System.Console": "(,4.3.32767]",
"runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.unix.System.IO.FileSystem": "(,4.3.32767]",
"runtime.unix.System.Net.Primitives": "(,4.3.32767]",
"runtime.unix.System.Net.Sockets": "(,4.3.32767]",
"runtime.unix.System.Private.Uri": "(,4.3.32767]",
"runtime.unix.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.win.System.Console": "(,4.3.32767]",
"runtime.win.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.win.System.IO.FileSystem": "(,4.3.32767]",
"runtime.win.System.Net.Primitives": "(,4.3.32767]",
"runtime.win.System.Net.Sockets": "(,4.3.32767]",
"runtime.win.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7.System.Private.Uri": "(,4.3.32767]",
"runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]",
"System.AppContext": "(,4.3.32767]",
"System.Buffers": "(,5.0.32767]",
"System.Collections": "(,4.3.32767]",
"System.Collections.Concurrent": "(,4.3.32767]",
"System.Collections.Immutable": "(,10.0.32767]",
"System.Collections.NonGeneric": "(,4.3.32767]",
"System.Collections.Specialized": "(,4.3.32767]",
"System.ComponentModel": "(,4.3.32767]",
"System.ComponentModel.Annotations": "(,4.3.32767]",
"System.ComponentModel.EventBasedAsync": "(,4.3.32767]",
"System.ComponentModel.Primitives": "(,4.3.32767]",
"System.ComponentModel.TypeConverter": "(,4.3.32767]",
"System.Console": "(,4.3.32767]",
"System.Data.Common": "(,4.3.32767]",
"System.Data.DataSetExtensions": "(,4.4.32767]",
"System.Diagnostics.Contracts": "(,4.3.32767]",
"System.Diagnostics.Debug": "(,4.3.32767]",
"System.Diagnostics.DiagnosticSource": "(,10.0.32767]",
"System.Diagnostics.FileVersionInfo": "(,4.3.32767]",
"System.Diagnostics.Process": "(,4.3.32767]",
"System.Diagnostics.StackTrace": "(,4.3.32767]",
"System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]",
"System.Diagnostics.Tools": "(,4.3.32767]",
"System.Diagnostics.TraceSource": "(,4.3.32767]",
"System.Diagnostics.Tracing": "(,4.3.32767]",
"System.Drawing.Primitives": "(,4.3.32767]",
"System.Dynamic.Runtime": "(,4.3.32767]",
"System.Formats.Asn1": "(,10.0.32767]",
"System.Formats.Tar": "(,10.0.32767]",
"System.Globalization": "(,4.3.32767]",
"System.Globalization.Calendars": "(,4.3.32767]",
"System.Globalization.Extensions": "(,4.3.32767]",
"System.IO": "(,4.3.32767]",
"System.IO.Compression": "(,4.3.32767]",
"System.IO.Compression.ZipFile": "(,4.3.32767]",
"System.IO.FileSystem": "(,4.3.32767]",
"System.IO.FileSystem.AccessControl": "(,4.4.32767]",
"System.IO.FileSystem.DriveInfo": "(,4.3.32767]",
"System.IO.FileSystem.Primitives": "(,4.3.32767]",
"System.IO.FileSystem.Watcher": "(,4.3.32767]",
"System.IO.IsolatedStorage": "(,4.3.32767]",
"System.IO.MemoryMappedFiles": "(,4.3.32767]",
"System.IO.Pipelines": "(,10.0.32767]",
"System.IO.Pipes": "(,4.3.32767]",
"System.IO.Pipes.AccessControl": "(,5.0.32767]",
"System.IO.UnmanagedMemoryStream": "(,4.3.32767]",
"System.Linq": "(,4.3.32767]",
"System.Linq.AsyncEnumerable": "(,10.0.32767]",
"System.Linq.Expressions": "(,4.3.32767]",
"System.Linq.Parallel": "(,4.3.32767]",
"System.Linq.Queryable": "(,4.3.32767]",
"System.Memory": "(,5.0.32767]",
"System.Net.Http": "(,4.3.32767]",
"System.Net.Http.Json": "(,10.0.32767]",
"System.Net.NameResolution": "(,4.3.32767]",
"System.Net.NetworkInformation": "(,4.3.32767]",
"System.Net.Ping": "(,4.3.32767]",
"System.Net.Primitives": "(,4.3.32767]",
"System.Net.Requests": "(,4.3.32767]",
"System.Net.Security": "(,4.3.32767]",
"System.Net.ServerSentEvents": "(,10.0.32767]",
"System.Net.Sockets": "(,4.3.32767]",
"System.Net.WebHeaderCollection": "(,4.3.32767]",
"System.Net.WebSockets": "(,4.3.32767]",
"System.Net.WebSockets.Client": "(,4.3.32767]",
"System.Numerics.Vectors": "(,5.0.32767]",
"System.ObjectModel": "(,4.3.32767]",
"System.Private.DataContractSerialization": "(,4.3.32767]",
"System.Private.Uri": "(,4.3.32767]",
"System.Reflection": "(,4.3.32767]",
"System.Reflection.DispatchProxy": "(,6.0.32767]",
"System.Reflection.Emit": "(,4.7.32767]",
"System.Reflection.Emit.ILGeneration": "(,4.7.32767]",
"System.Reflection.Emit.Lightweight": "(,4.7.32767]",
"System.Reflection.Extensions": "(,4.3.32767]",
"System.Reflection.Metadata": "(,10.0.32767]",
"System.Reflection.Primitives": "(,4.3.32767]",
"System.Reflection.TypeExtensions": "(,4.3.32767]",
"System.Resources.Reader": "(,4.3.32767]",
"System.Resources.ResourceManager": "(,4.3.32767]",
"System.Resources.Writer": "(,4.3.32767]",
"System.Runtime": "(,4.3.32767]",
"System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]",
"System.Runtime.CompilerServices.VisualC": "(,4.3.32767]",
"System.Runtime.Extensions": "(,4.3.32767]",
"System.Runtime.Handles": "(,4.3.32767]",
"System.Runtime.InteropServices": "(,4.3.32767]",
"System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]",
"System.Runtime.Loader": "(,4.3.32767]",
"System.Runtime.Numerics": "(,4.3.32767]",
"System.Runtime.Serialization.Formatters": "(,4.3.32767]",
"System.Runtime.Serialization.Json": "(,4.3.32767]",
"System.Runtime.Serialization.Primitives": "(,4.3.32767]",
"System.Runtime.Serialization.Xml": "(,4.3.32767]",
"System.Security.AccessControl": "(,6.0.32767]",
"System.Security.Claims": "(,4.3.32767]",
"System.Security.Cryptography.Algorithms": "(,4.3.32767]",
"System.Security.Cryptography.Cng": "(,5.0.32767]",
"System.Security.Cryptography.Csp": "(,4.3.32767]",
"System.Security.Cryptography.Encoding": "(,4.3.32767]",
"System.Security.Cryptography.OpenSsl": "(,5.0.32767]",
"System.Security.Cryptography.Primitives": "(,4.3.32767]",
"System.Security.Cryptography.X509Certificates": "(,4.3.32767]",
"System.Security.Principal": "(,4.3.32767]",
"System.Security.Principal.Windows": "(,5.0.32767]",
"System.Security.SecureString": "(,4.3.32767]",
"System.Text.Encoding": "(,4.3.32767]",
"System.Text.Encoding.CodePages": "(,10.0.32767]",
"System.Text.Encoding.Extensions": "(,4.3.32767]",
"System.Text.Encodings.Web": "(,10.0.32767]",
"System.Text.Json": "(,10.0.32767]",
"System.Text.RegularExpressions": "(,4.3.32767]",
"System.Threading": "(,4.3.32767]",
"System.Threading.AccessControl": "(,10.0.32767]",
"System.Threading.Channels": "(,10.0.32767]",
"System.Threading.Overlapped": "(,4.3.32767]",
"System.Threading.Tasks": "(,4.3.32767]",
"System.Threading.Tasks.Dataflow": "(,10.0.32767]",
"System.Threading.Tasks.Extensions": "(,5.0.32767]",
"System.Threading.Tasks.Parallel": "(,4.3.32767]",
"System.Threading.Thread": "(,4.3.32767]",
"System.Threading.ThreadPool": "(,4.3.32767]",
"System.Threading.Timer": "(,4.3.32767]",
"System.ValueTuple": "(,4.5.32767]",
"System.Xml.ReaderWriter": "(,4.3.32767]",
"System.Xml.XDocument": "(,4.3.32767]",
"System.Xml.XmlDocument": "(,4.3.32767]",
"System.Xml.XmlSerializer": "(,4.3.32767]",
"System.Xml.XPath": "(,4.3.32767]",
"System.Xml.XPath.XDocument": "(,5.0.32767]"
}
}
}
}
}
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\LeSon\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\LeSon\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("CanCommon")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7f00e38980374b3efb789292711a8a3f80be4a8b")]
[assembly: System.Reflection.AssemblyProductAttribute("CanCommon")]
[assembly: System.Reflection.AssemblyTitleAttribute("CanCommon")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
64d0cbed909bfa8362c81e48ca9e6831499a40959bcd785456dd8d024bbd952d

View File

@@ -0,0 +1,18 @@
is_global = true
build_property.TargetFramework = net10.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v10.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property.EntryPointFilePath =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = CanCommon
build_property.ProjectDir = C:\Users\LeSon\Desktop\testcan\CanCommon\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 10.0
build_property.EnableCodeStyleSeverity =

View File

@@ -0,0 +1,8 @@
// <auto-generated/>
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Threading;
global using System.Threading.Tasks;

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("CanCommon")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("CanCommon")]
[assembly: System.Reflection.AssemblyTitleAttribute("CanCommon")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
aa02f52bf8c8c2ccc22afc027c086c6cf67d646aab757538879c4e3b2fd6aaf5

View File

@@ -0,0 +1,17 @@
is_global = true
build_property.TargetFramework = net10.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v10.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = CanCommon
build_property.ProjectDir = /home/robotics/testcan/CanCommon/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 10.0
build_property.EnableCodeStyleSeverity =

View File

@@ -0,0 +1,8 @@
// <auto-generated/>
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Threading;
global using System.Threading.Tasks;

Binary file not shown.

View File

@@ -0,0 +1 @@
fef9772c590b92d5190b590340b806f020d1e947a87cca7abdf8ebcf6fe3645f

View File

@@ -0,0 +1,11 @@
/home/robotics/testcan/CanCommon/obj/Release/net10.0/CanCommon.GeneratedMSBuildEditorConfig.editorconfig
/home/robotics/testcan/CanCommon/obj/Release/net10.0/CanCommon.AssemblyInfoInputs.cache
/home/robotics/testcan/CanCommon/obj/Release/net10.0/CanCommon.AssemblyInfo.cs
/home/robotics/testcan/CanCommon/obj/Release/net10.0/CanCommon.csproj.CoreCompileInputs.cache
/home/robotics/testcan/CanCommon/bin/Release/net10.0/CanCommon.deps.json
/home/robotics/testcan/CanCommon/bin/Release/net10.0/CanCommon.dll
/home/robotics/testcan/CanCommon/bin/Release/net10.0/CanCommon.pdb
/home/robotics/testcan/CanCommon/obj/Release/net10.0/CanCommon.dll
/home/robotics/testcan/CanCommon/obj/Release/net10.0/refint/CanCommon.dll
/home/robotics/testcan/CanCommon/obj/Release/net10.0/CanCommon.pdb
/home/robotics/testcan/CanCommon/obj/Release/net10.0/ref/CanCommon.dll

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,356 @@
{
"version": 4,
"targets": {
"net10.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net10.0": []
},
"packageFolders": {
"C:\\Users\\LeSon\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj",
"projectName": "CanCommon",
"projectPath": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj",
"packagesPath": "C:\\Users\\LeSon\\.nuget\\packages\\",
"outputPath": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\LeSon\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net10.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "all"
},
"SdkAnalysisLevel": "10.0.400"
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.400/PortableRuntimeIdentifierGraph.json",
"packagesToPrune": {
"Microsoft.CSharp": "(,4.7.32767]",
"Microsoft.VisualBasic": "(,10.4.32767]",
"Microsoft.Win32.Primitives": "(,4.3.32767]",
"Microsoft.Win32.Registry": "(,5.0.32767]",
"runtime.any.System.Collections": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.any.System.Globalization": "(,4.3.32767]",
"runtime.any.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.any.System.IO": "(,4.3.32767]",
"runtime.any.System.Reflection": "(,4.3.32767]",
"runtime.any.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.any.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.any.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.any.System.Runtime": "(,4.3.32767]",
"runtime.any.System.Runtime.Handles": "(,4.3.32767]",
"runtime.any.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.any.System.Text.Encoding": "(,4.3.32767]",
"runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.any.System.Threading.Tasks": "(,4.3.32767]",
"runtime.any.System.Threading.Timer": "(,4.3.32767]",
"runtime.aot.System.Collections": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.aot.System.Globalization": "(,4.3.32767]",
"runtime.aot.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.aot.System.IO": "(,4.3.32767]",
"runtime.aot.System.Reflection": "(,4.3.32767]",
"runtime.aot.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.aot.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.aot.System.Runtime": "(,4.3.32767]",
"runtime.aot.System.Runtime.Handles": "(,4.3.32767]",
"runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.aot.System.Threading.Tasks": "(,4.3.32767]",
"runtime.aot.System.Threading.Timer": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.unix.System.Console": "(,4.3.32767]",
"runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.unix.System.IO.FileSystem": "(,4.3.32767]",
"runtime.unix.System.Net.Primitives": "(,4.3.32767]",
"runtime.unix.System.Net.Sockets": "(,4.3.32767]",
"runtime.unix.System.Private.Uri": "(,4.3.32767]",
"runtime.unix.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.win.System.Console": "(,4.3.32767]",
"runtime.win.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.win.System.IO.FileSystem": "(,4.3.32767]",
"runtime.win.System.Net.Primitives": "(,4.3.32767]",
"runtime.win.System.Net.Sockets": "(,4.3.32767]",
"runtime.win.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7.System.Private.Uri": "(,4.3.32767]",
"runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]",
"System.AppContext": "(,4.3.32767]",
"System.Buffers": "(,5.0.32767]",
"System.Collections": "(,4.3.32767]",
"System.Collections.Concurrent": "(,4.3.32767]",
"System.Collections.Immutable": "(,10.0.32767]",
"System.Collections.NonGeneric": "(,4.3.32767]",
"System.Collections.Specialized": "(,4.3.32767]",
"System.ComponentModel": "(,4.3.32767]",
"System.ComponentModel.Annotations": "(,4.3.32767]",
"System.ComponentModel.EventBasedAsync": "(,4.3.32767]",
"System.ComponentModel.Primitives": "(,4.3.32767]",
"System.ComponentModel.TypeConverter": "(,4.3.32767]",
"System.Console": "(,4.3.32767]",
"System.Data.Common": "(,4.3.32767]",
"System.Data.DataSetExtensions": "(,4.4.32767]",
"System.Diagnostics.Contracts": "(,4.3.32767]",
"System.Diagnostics.Debug": "(,4.3.32767]",
"System.Diagnostics.DiagnosticSource": "(,10.0.32767]",
"System.Diagnostics.FileVersionInfo": "(,4.3.32767]",
"System.Diagnostics.Process": "(,4.3.32767]",
"System.Diagnostics.StackTrace": "(,4.3.32767]",
"System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]",
"System.Diagnostics.Tools": "(,4.3.32767]",
"System.Diagnostics.TraceSource": "(,4.3.32767]",
"System.Diagnostics.Tracing": "(,4.3.32767]",
"System.Drawing.Primitives": "(,4.3.32767]",
"System.Dynamic.Runtime": "(,4.3.32767]",
"System.Formats.Asn1": "(,10.0.32767]",
"System.Formats.Tar": "(,10.0.32767]",
"System.Globalization": "(,4.3.32767]",
"System.Globalization.Calendars": "(,4.3.32767]",
"System.Globalization.Extensions": "(,4.3.32767]",
"System.IO": "(,4.3.32767]",
"System.IO.Compression": "(,4.3.32767]",
"System.IO.Compression.ZipFile": "(,4.3.32767]",
"System.IO.FileSystem": "(,4.3.32767]",
"System.IO.FileSystem.AccessControl": "(,4.4.32767]",
"System.IO.FileSystem.DriveInfo": "(,4.3.32767]",
"System.IO.FileSystem.Primitives": "(,4.3.32767]",
"System.IO.FileSystem.Watcher": "(,4.3.32767]",
"System.IO.IsolatedStorage": "(,4.3.32767]",
"System.IO.MemoryMappedFiles": "(,4.3.32767]",
"System.IO.Pipelines": "(,10.0.32767]",
"System.IO.Pipes": "(,4.3.32767]",
"System.IO.Pipes.AccessControl": "(,5.0.32767]",
"System.IO.UnmanagedMemoryStream": "(,4.3.32767]",
"System.Linq": "(,4.3.32767]",
"System.Linq.AsyncEnumerable": "(,10.0.32767]",
"System.Linq.Expressions": "(,4.3.32767]",
"System.Linq.Parallel": "(,4.3.32767]",
"System.Linq.Queryable": "(,4.3.32767]",
"System.Memory": "(,5.0.32767]",
"System.Net.Http": "(,4.3.32767]",
"System.Net.Http.Json": "(,10.0.32767]",
"System.Net.NameResolution": "(,4.3.32767]",
"System.Net.NetworkInformation": "(,4.3.32767]",
"System.Net.Ping": "(,4.3.32767]",
"System.Net.Primitives": "(,4.3.32767]",
"System.Net.Requests": "(,4.3.32767]",
"System.Net.Security": "(,4.3.32767]",
"System.Net.ServerSentEvents": "(,10.0.32767]",
"System.Net.Sockets": "(,4.3.32767]",
"System.Net.WebHeaderCollection": "(,4.3.32767]",
"System.Net.WebSockets": "(,4.3.32767]",
"System.Net.WebSockets.Client": "(,4.3.32767]",
"System.Numerics.Vectors": "(,5.0.32767]",
"System.ObjectModel": "(,4.3.32767]",
"System.Private.DataContractSerialization": "(,4.3.32767]",
"System.Private.Uri": "(,4.3.32767]",
"System.Reflection": "(,4.3.32767]",
"System.Reflection.DispatchProxy": "(,6.0.32767]",
"System.Reflection.Emit": "(,4.7.32767]",
"System.Reflection.Emit.ILGeneration": "(,4.7.32767]",
"System.Reflection.Emit.Lightweight": "(,4.7.32767]",
"System.Reflection.Extensions": "(,4.3.32767]",
"System.Reflection.Metadata": "(,10.0.32767]",
"System.Reflection.Primitives": "(,4.3.32767]",
"System.Reflection.TypeExtensions": "(,4.3.32767]",
"System.Resources.Reader": "(,4.3.32767]",
"System.Resources.ResourceManager": "(,4.3.32767]",
"System.Resources.Writer": "(,4.3.32767]",
"System.Runtime": "(,4.3.32767]",
"System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]",
"System.Runtime.CompilerServices.VisualC": "(,4.3.32767]",
"System.Runtime.Extensions": "(,4.3.32767]",
"System.Runtime.Handles": "(,4.3.32767]",
"System.Runtime.InteropServices": "(,4.3.32767]",
"System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]",
"System.Runtime.Loader": "(,4.3.32767]",
"System.Runtime.Numerics": "(,4.3.32767]",
"System.Runtime.Serialization.Formatters": "(,4.3.32767]",
"System.Runtime.Serialization.Json": "(,4.3.32767]",
"System.Runtime.Serialization.Primitives": "(,4.3.32767]",
"System.Runtime.Serialization.Xml": "(,4.3.32767]",
"System.Security.AccessControl": "(,6.0.32767]",
"System.Security.Claims": "(,4.3.32767]",
"System.Security.Cryptography.Algorithms": "(,4.3.32767]",
"System.Security.Cryptography.Cng": "(,5.0.32767]",
"System.Security.Cryptography.Csp": "(,4.3.32767]",
"System.Security.Cryptography.Encoding": "(,4.3.32767]",
"System.Security.Cryptography.OpenSsl": "(,5.0.32767]",
"System.Security.Cryptography.Primitives": "(,4.3.32767]",
"System.Security.Cryptography.X509Certificates": "(,4.3.32767]",
"System.Security.Principal": "(,4.3.32767]",
"System.Security.Principal.Windows": "(,5.0.32767]",
"System.Security.SecureString": "(,4.3.32767]",
"System.Text.Encoding": "(,4.3.32767]",
"System.Text.Encoding.CodePages": "(,10.0.32767]",
"System.Text.Encoding.Extensions": "(,4.3.32767]",
"System.Text.Encodings.Web": "(,10.0.32767]",
"System.Text.Json": "(,10.0.32767]",
"System.Text.RegularExpressions": "(,4.3.32767]",
"System.Threading": "(,4.3.32767]",
"System.Threading.AccessControl": "(,10.0.32767]",
"System.Threading.Channels": "(,10.0.32767]",
"System.Threading.Overlapped": "(,4.3.32767]",
"System.Threading.Tasks": "(,4.3.32767]",
"System.Threading.Tasks.Dataflow": "(,10.0.32767]",
"System.Threading.Tasks.Extensions": "(,5.0.32767]",
"System.Threading.Tasks.Parallel": "(,4.3.32767]",
"System.Threading.Thread": "(,4.3.32767]",
"System.Threading.ThreadPool": "(,4.3.32767]",
"System.Threading.Timer": "(,4.3.32767]",
"System.ValueTuple": "(,4.5.32767]",
"System.Xml.ReaderWriter": "(,4.3.32767]",
"System.Xml.XDocument": "(,4.3.32767]",
"System.Xml.XmlDocument": "(,4.3.32767]",
"System.Xml.XmlSerializer": "(,4.3.32767]",
"System.Xml.XPath": "(,4.3.32767]",
"System.Xml.XPath.XDocument": "(,5.0.32767]"
}
}
}
}
}

View File

@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "UJRL6mNgqsI=",
"success": true,
"projectFilePath": "C:\\Users\\LeSon\\Desktop\\testcan\\CanCommon\\CanCommon.csproj",
"expectedPackageFiles": [],
"logs": []
}