diff --git a/packages/experimental/cua-windows/native/.gitignore b/packages/experimental/cua-windows/native/.gitignore
index d519714059..afc10cfbc5 100644
--- a/packages/experimental/cua-windows/native/.gitignore
+++ b/packages/experimental/cua-windows/native/.gitignore
@@ -1,3 +1,4 @@
**/bin/
**/obj/
.build/
+**/.vs
diff --git a/packages/experimental/cua-windows/native/CuaWindows.csproj b/packages/experimental/cua-windows/native/CuaWindows.csproj
index 0cc65b6907..014cb6e37a 100644
--- a/packages/experimental/cua-windows/native/CuaWindows.csproj
+++ b/packages/experimental/cua-windows/native/CuaWindows.csproj
@@ -1,8 +1,7 @@
Exe
- net10.0-windows10.0.19041.0
- true
+ net48
true
true
false
@@ -12,15 +11,11 @@
dsh-cua-windows
app.manifest
true
- win-x64;win-arm64
- true
- true
none
false
-
diff --git a/packages/experimental/cua-windows/native/Directory.Build.props b/packages/experimental/cua-windows/native/Directory.Build.props
index b4fbcbc808..f68224faae 100644
--- a/packages/experimental/cua-windows/native/Directory.Build.props
+++ b/packages/experimental/cua-windows/native/Directory.Build.props
@@ -1,6 +1,13 @@
+ 14.0
+ true
$(MSBuildThisFileDirectory).build/$(MSBuildProjectName)/bin/
$(MSBuildThisFileDirectory).build/$(MSBuildProjectName)/obj/
+
+
+
+
+
diff --git a/packages/experimental/cua-windows/native/cua-windows.slnx b/packages/experimental/cua-windows/native/cua-windows.slnx
new file mode 100644
index 0000000000..efe33b9414
--- /dev/null
+++ b/packages/experimental/cua-windows/native/cua-windows.slnx
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj b/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj
index cb0fda00a0..77c960608e 100644
--- a/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj
+++ b/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj
@@ -1,13 +1,10 @@
Exe
- net10.0-windows
+ net48
true
- true
enable
enable
dsh-cua-desktop-fixture
- true
- true
diff --git a/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj.user b/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj.user
new file mode 100644
index 0000000000..191764a929
--- /dev/null
+++ b/packages/experimental/cua-windows/native/desktop-tests/DesktopFixture.csproj.user
@@ -0,0 +1,9 @@
+
+
+
+
+
+ Form
+
+
+
\ No newline at end of file
diff --git a/packages/experimental/cua-windows/native/packages.lock.json b/packages/experimental/cua-windows/native/packages.lock.json
index dee2e0c44b..f2cf154da0 100644
--- a/packages/experimental/cua-windows/native/packages.lock.json
+++ b/packages/experimental/cua-windows/native/packages.lock.json
@@ -1,32 +1,56 @@
{
"version": 1,
"dependencies": {
- "net10.0-windows10.0.19041": {
- "Microsoft.NET.ILLink.Tasks": {
+ ".NETFramework,Version=v4.8": {
+ "Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
- "requested": "[10.0.14, )",
- "resolved": "10.0.14",
- "contentHash": "YlTamXppEQls6DYWt7RdUuwWDb0lyw/vXCaGeQpLCpsLmfwGuCkOz/vIGgMTV7ECsJcavkCOkxZXv9s8rdAHkQ=="
- },
- "Vortice.Direct3D11": {
- "type": "Direct",
- "requested": "[3.8.3, )",
- "resolved": "3.8.3",
- "contentHash": "JgFUswu2mgrSwcd0KRF2AnfeE5VbMEgcicmxPD1g2yXyomPIHbnX3wldBNHPOzzD0URC1WJ/pO1ymfi3imZwvg==",
+ "requested": "[1.0.3, )",
+ "resolved": "1.0.3",
+ "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"dependencies": {
- "SharpGen.Runtime": "2.4.2-beta",
- "Vortice.DXGI": "3.8.3"
+ "Microsoft.NETFramework.ReferenceAssemblies.net48": "1.0.3"
+ }
+ },
+ "PolySharp": {
+ "type": "Direct",
+ "requested": "[1.15.0, )",
+ "resolved": "1.15.0",
+ "contentHash": "FbU0El+EEjdpuIX4iDbeS7ki1uzpJPx8vbqOzEtqnl1GZeAGJfq+jCbxeJL2y0EPnUNk8dRnnqR2xnYXg9Tf+g=="
+ },
+ "System.Text.Json": {
+ "type": "Direct",
+ "requested": "[10.0.14, 10.0.14]",
+ "resolved": "10.0.14",
+ "contentHash": "JSSLGJTJJDvS76VnLdY1X289rFcHuYApk7QGw0hCoP5wVR1mk7BvJbOYxQLXq4x1qK/Ml9OHa/AKaAbBVCfSSQ==",
+ "dependencies": {
+ "Microsoft.Bcl.AsyncInterfaces": "10.0.14",
+ "System.Buffers": "4.6.1",
+ "System.IO.Pipelines": "10.0.14",
+ "System.Memory": "4.6.3",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2",
+ "System.Text.Encodings.Web": "10.0.14",
+ "System.Threading.Tasks.Extensions": "4.6.3",
+ "System.ValueTuple": "4.6.2"
}
},
"Humanizer.Core": {
"type": "Transitive",
"resolved": "3.0.10",
- "contentHash": "yZIhtw8sYuvsONzQbZxWpR60tMWYHXoo0DL6nyOqSFiU5POjBTSEyWFpTQtJEZuy+oqiYTXKXY/Mjx7KnqIQFw=="
+ "contentHash": "yZIhtw8sYuvsONzQbZxWpR60tMWYHXoo0DL6nyOqSFiU5POjBTSEyWFpTQtJEZuy+oqiYTXKXY/Mjx7KnqIQFw==",
+ "dependencies": {
+ "System.Collections.Immutable": "9.0.10",
+ "System.ComponentModel.Annotations": "5.0.0",
+ "System.Memory": "4.6.3"
+ }
},
"Json.More.Net": {
"type": "Transitive",
"resolved": "3.0.1",
- "contentHash": "fRctF2J2SILYG6wqP21drmeEODmCVkVQ/b3MndDu2fT1swfySyUgq7ePCk+aENGlDcIm05fyfjh9vcuqDEfv3w=="
+ "contentHash": "fRctF2J2SILYG6wqP21drmeEODmCVkVQ/b3MndDu2fT1swfySyUgq7ePCk+aENGlDcIm05fyfjh9vcuqDEfv3w==",
+ "dependencies": {
+ "System.Collections.Immutable": "10.0.5",
+ "System.Text.Json": "10.0.5"
+ }
},
"JsonPointer.Net": {
"type": "Transitive",
@@ -45,51 +69,99 @@
"JsonPointer.Net": "7.0.2"
}
},
- "SharpGen.Runtime": {
+ "Microsoft.Bcl.AsyncInterfaces": {
"type": "Transitive",
- "resolved": "2.4.2-beta",
- "contentHash": "niTtWAUov1F7wZGAlVeEvW+Tnqvg5yTmhI7rxmYu2Utoyu2TbC9tWWpUpMs0PQg5lu5svoYpCAztNjxCqMFP/w=="
- },
- "SharpGen.Runtime.COM": {
- "type": "Transitive",
- "resolved": "2.4.2-beta",
- "contentHash": "9lxDFMiepqo3lJQzMSjECCIONeCc2f3Drokgj6HtrTLZcJSftNgcLbD6/iXYj2iphkwgrZb1oLsDOZxoFZkawQ==",
+ "resolved": "10.0.14",
+ "contentHash": "HCu9NbiXDh9++j4eRNRHCOiKPw/7I5UEJlFIRaDM3v0+ttZaH8p8rjxSWfNgP2cGv5JAa4EZnmc/nlcUOTFlpA==",
"dependencies": {
- "SharpGen.Runtime": "2.4.2-beta"
+ "System.Threading.Tasks.Extensions": "4.6.3"
}
},
- "Vortice.DirectX": {
+ "Microsoft.NETFramework.ReferenceAssemblies.net48": {
"type": "Transitive",
- "resolved": "3.8.3",
- "contentHash": "nKwSavv0w5rDF7prSefqAVPDcTyqrfZxKFMVfttiXPfm62VdA/1d+b3PhCZpW4xO7jXczXDwjQdWgD1zGsvM8w==",
+ "resolved": "1.0.3",
+ "contentHash": "zMk4D+9zyiEWByyQ7oPImPN/Jhpj166Ky0Nlla4eXlNL8hI/BtSJsgR8Inldd4NNpIAH3oh8yym0W2DrhXdSLQ=="
+ },
+ "System.Buffers": {
+ "type": "Transitive",
+ "resolved": "4.6.1",
+ "contentHash": "N8GXpmiLMtljq7gwvyS+1QvKT/W2J8sNAvx+HVg4NGmsG/H+2k/y9QI23auLJRterrzCiDH+IWAw4V/GPwsMlw=="
+ },
+ "System.Collections.Immutable": {
+ "type": "Transitive",
+ "resolved": "10.0.5",
+ "contentHash": "nozrOKfEgfrvvswkCfxaumY68RA/x1F3ZYwtwRvva8ul91NCnUzb6MKpl5/P7u9v/nIagVL4OXXj8d007tucxw==",
"dependencies": {
- "SharpGen.Runtime": "2.4.2-beta",
- "SharpGen.Runtime.COM": "2.4.2-beta",
- "Vortice.Mathematics": "2.1.0"
+ "System.Memory": "4.6.3",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
}
},
- "Vortice.DXGI": {
+ "System.ComponentModel.Annotations": {
"type": "Transitive",
- "resolved": "3.8.3",
- "contentHash": "MbAUnTeQ6WD99ctAdrj5CQO2I7oaax0Kt2eVdWSUj0bYP9Ed0726+s7dIHe4+tqhpmINW/dcPt0mNtc72o+E0w==",
+ "resolved": "5.0.0",
+ "contentHash": "dMkqfy2el8A8/I76n2Hi1oBFEbG1SfxD2l5nhwXV3XjlnOmwxJlQbYpJH4W51odnU9sARCSAgv7S3CyAFMkpYg=="
+ },
+ "System.IO.Pipelines": {
+ "type": "Transitive",
+ "resolved": "10.0.14",
+ "contentHash": "pLVClkIC4XfXhcOQXNtNDJl5LYJOS4XAQAdzbqF8rj6sk2zdXO/5uikBsZqgqnAAb07z9Fmtu0sMj3TwEiBtIw==",
"dependencies": {
- "SharpGen.Runtime": "2.4.2-beta",
- "Vortice.DirectX": "3.8.3"
+ "System.Buffers": "4.6.1",
+ "System.Memory": "4.6.3",
+ "System.Threading.Tasks.Extensions": "4.6.3"
}
},
- "Vortice.Mathematics": {
+ "System.Memory": {
"type": "Transitive",
- "resolved": "2.1.0",
- "contentHash": "KK+SjNSuKdP+zbavekubi+vaeb1Jo4k87ZF6CMkVWjr6RjJwc8peVtmgzXXDIMy4ZC3ZISyk3llY3q65ISOkBQ=="
+ "resolved": "4.6.3",
+ "contentHash": "qdcDOgnFZY40+Q9876JUHnlHu7bosOHX8XISRoH94fwk6hgaeQGSgfZd8srWRZNt5bV9ZW2TljcegDNxsf+96A==",
+ "dependencies": {
+ "System.Buffers": "4.6.1",
+ "System.Numerics.Vectors": "4.6.1",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.Numerics.Vectors": {
+ "type": "Transitive",
+ "resolved": "4.6.1",
+ "contentHash": "sQxefTnhagrhoq2ReR0D/6K0zJcr9Hrd6kikeXsA1I8kOCboTavcUC4r7TSfpKFeE163uMuxZcyfO1mGO3EN8Q=="
+ },
+ "System.Runtime.CompilerServices.Unsafe": {
+ "type": "Transitive",
+ "resolved": "6.1.2",
+ "contentHash": "2hBr6zdbIBTDE3EhK7NSVNdX58uTK6iHW/P/Axmm9sl1xoGSLqDvMtpecn226TNwHByFokYwJmt/aQQNlO5CRw=="
+ },
+ "System.Text.Encodings.Web": {
+ "type": "Transitive",
+ "resolved": "10.0.14",
+ "contentHash": "+aDpFLtsHyft9ZVx9pZQ9MILqwrr8LK1te1L39VMKQYhoYDbs+RUqBhCT3Zydb5ymi2Buo4Cn+3Wi208IxD6rw==",
+ "dependencies": {
+ "System.Buffers": "4.6.1",
+ "System.Memory": "4.6.3",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.Threading.Tasks.Extensions": {
+ "type": "Transitive",
+ "resolved": "4.6.3",
+ "contentHash": "7sCiwilJLYbTZELaKnc7RecBBXWXA+xMLQWZKWawBxYjp6DBlSE3v9/UcvKBvr1vv2tTOhipiogM8rRmxlhrVA==",
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.ValueTuple": {
+ "type": "Transitive",
+ "resolved": "4.6.2",
+ "contentHash": "yQgmjfFximrNm9LIV3mL6T5MzjeC+epeE5rl4hXxAlYmxby7RM1dPSkIKXk9HNkl6G54h2JHOmLD46+Pey+IRg=="
},
"cuaprotocol": {
"type": "Project",
"dependencies": {
- "JsonSchema.Net": "[9.4.0, )"
+ "JsonSchema.Net": "[9.4.0, )",
+ "System.Text.Json": "[10.0.14, 10.0.14]"
}
}
},
- "net10.0-windows10.0.19041/win-arm64": {},
- "net10.0-windows10.0.19041/win-x64": {}
+ ".NETFramework,Version=v4.8/win-x86": {}
}
-}
\ No newline at end of file
+}
diff --git a/packages/experimental/cua-windows/native/protocol/AccessibilityText.cs b/packages/experimental/cua-windows/native/protocol/AccessibilityText.cs
index 35c6acdb75..ded98aa1cd 100644
--- a/packages/experimental/cua-windows/native/protocol/AccessibilityText.cs
+++ b/packages/experimental/cua-windows/native/protocol/AccessibilityText.cs
@@ -64,9 +64,9 @@ public static class AccessibilityText
if (actions.Length != 0) text.Append(" actions=[").Append(string.Join(", ", actions.Select(Quote))).Append(']');
if (details)
{
- if (!string.IsNullOrEmpty(node.Identifier)) text.Append(" id=").Append(Quote(node.Identifier));
+ if (node.Identifier is { Length: > 0 } identifier) text.Append(" id=").Append(Quote(identifier));
if (index.HasValue && node.Bounds is { } bounds)
- text.Append(" bounds=[").Append(string.Join(',', new[] { bounds.X, bounds.Y, bounds.Width, bounds.Height }
+ text.Append(" bounds=[").Append(string.Join(",", new[] { bounds.X, bounds.Y, bounds.Width, bounds.Height }
.Select(number => number.ToString("G", CultureInfo.InvariantCulture)))).Append(']');
}
return text.ToString();
diff --git a/packages/experimental/cua-windows/native/protocol/CuaProtocol.csproj b/packages/experimental/cua-windows/native/protocol/CuaProtocol.csproj
index 353ac1afa7..adab284210 100644
--- a/packages/experimental/cua-windows/native/protocol/CuaProtocol.csproj
+++ b/packages/experimental/cua-windows/native/protocol/CuaProtocol.csproj
@@ -1,10 +1,9 @@
- net10.0
+ net48
enable
enable
true
- win-x64;win-arm64
false
diff --git a/packages/experimental/cua-windows/native/protocol/KeyChord.cs b/packages/experimental/cua-windows/native/protocol/KeyChord.cs
index 74d375ab35..9c0e307d00 100644
--- a/packages/experimental/cua-windows/native/protocol/KeyChord.cs
+++ b/packages/experimental/cua-windows/native/protocol/KeyChord.cs
@@ -6,10 +6,10 @@ public sealed record KeyChord(string Key, string[] Modifiers)
{
if (text.Length == 0) throw new NativeFailure("INVALID_ARGUMENT", "A key name is required");
var plus = text == "+" || text.EndsWith("++", StringComparison.Ordinal);
- var parts = plus ? text[..^1].TrimEnd('+').Split('+', StringSplitOptions.RemoveEmptyEntries) : text.Split('+');
+ var parts = plus ? text[..^1].TrimEnd('+').Split(new[] { '+' }, StringSplitOptions.RemoveEmptyEntries) : text.Split('+');
var key = plus ? "+" : parts[^1];
if (key.Length == 0) throw new NativeFailure("INVALID_ARGUMENT", "A key chord must end with a key");
- var modifiers = (plus ? parts : parts[..^1]).Concat(extra).Select(NormalizeModifier).Distinct().ToArray();
+ var modifiers = (plus ? parts : parts.Take(parts.Length - 1)).Concat(extra).Select(NormalizeModifier).Distinct().ToArray();
return new(key, modifiers);
}
diff --git a/packages/experimental/cua-windows/native/protocol/NativeRequest.cs b/packages/experimental/cua-windows/native/protocol/NativeRequest.cs
index 8cdd6a3293..86c1029f15 100644
--- a/packages/experimental/cua-windows/native/protocol/NativeRequest.cs
+++ b/packages/experimental/cua-windows/native/protocol/NativeRequest.cs
@@ -80,7 +80,7 @@ public sealed class FrameReader(Stream stream)
{
if (start == end)
{
- end = await stream.ReadAsync(buffer, cancellation);
+ end = await stream.ReadAsync(buffer, 0, buffer.Length, cancellation);
start = 0;
if (end == 0)
{
diff --git a/packages/experimental/cua-windows/native/protocol/packages.lock.json b/packages/experimental/cua-windows/native/protocol/packages.lock.json
index 4118720b93..2edb96ae39 100644
--- a/packages/experimental/cua-windows/native/protocol/packages.lock.json
+++ b/packages/experimental/cua-windows/native/protocol/packages.lock.json
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
- "net10.0": {
+ ".NETFramework,Version=v4.8": {
"JsonSchema.Net": {
"type": "Direct",
"requested": "[9.4.0, )",
@@ -11,15 +11,55 @@
"JsonPointer.Net": "7.0.2"
}
},
+ "Microsoft.NETFramework.ReferenceAssemblies": {
+ "type": "Direct",
+ "requested": "[1.0.3, )",
+ "resolved": "1.0.3",
+ "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
+ "dependencies": {
+ "Microsoft.NETFramework.ReferenceAssemblies.net48": "1.0.3"
+ }
+ },
+ "PolySharp": {
+ "type": "Direct",
+ "requested": "[1.15.0, )",
+ "resolved": "1.15.0",
+ "contentHash": "FbU0El+EEjdpuIX4iDbeS7ki1uzpJPx8vbqOzEtqnl1GZeAGJfq+jCbxeJL2y0EPnUNk8dRnnqR2xnYXg9Tf+g=="
+ },
+ "System.Text.Json": {
+ "type": "Direct",
+ "requested": "[10.0.14, 10.0.14]",
+ "resolved": "10.0.14",
+ "contentHash": "JSSLGJTJJDvS76VnLdY1X289rFcHuYApk7QGw0hCoP5wVR1mk7BvJbOYxQLXq4x1qK/Ml9OHa/AKaAbBVCfSSQ==",
+ "dependencies": {
+ "Microsoft.Bcl.AsyncInterfaces": "10.0.14",
+ "System.Buffers": "4.6.1",
+ "System.IO.Pipelines": "10.0.14",
+ "System.Memory": "4.6.3",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2",
+ "System.Text.Encodings.Web": "10.0.14",
+ "System.Threading.Tasks.Extensions": "4.6.3",
+ "System.ValueTuple": "4.6.2"
+ }
+ },
"Humanizer.Core": {
"type": "Transitive",
"resolved": "3.0.10",
- "contentHash": "yZIhtw8sYuvsONzQbZxWpR60tMWYHXoo0DL6nyOqSFiU5POjBTSEyWFpTQtJEZuy+oqiYTXKXY/Mjx7KnqIQFw=="
+ "contentHash": "yZIhtw8sYuvsONzQbZxWpR60tMWYHXoo0DL6nyOqSFiU5POjBTSEyWFpTQtJEZuy+oqiYTXKXY/Mjx7KnqIQFw==",
+ "dependencies": {
+ "System.Collections.Immutable": "9.0.10",
+ "System.ComponentModel.Annotations": "5.0.0",
+ "System.Memory": "4.6.3"
+ }
},
"Json.More.Net": {
"type": "Transitive",
"resolved": "3.0.1",
- "contentHash": "fRctF2J2SILYG6wqP21drmeEODmCVkVQ/b3MndDu2fT1swfySyUgq7ePCk+aENGlDcIm05fyfjh9vcuqDEfv3w=="
+ "contentHash": "fRctF2J2SILYG6wqP21drmeEODmCVkVQ/b3MndDu2fT1swfySyUgq7ePCk+aENGlDcIm05fyfjh9vcuqDEfv3w==",
+ "dependencies": {
+ "System.Collections.Immutable": "10.0.5",
+ "System.Text.Json": "10.0.5"
+ }
},
"JsonPointer.Net": {
"type": "Transitive",
@@ -29,9 +69,92 @@
"Humanizer.Core": "3.0.10",
"Json.More.Net": "3.0.1"
}
+ },
+ "Microsoft.Bcl.AsyncInterfaces": {
+ "type": "Transitive",
+ "resolved": "10.0.14",
+ "contentHash": "HCu9NbiXDh9++j4eRNRHCOiKPw/7I5UEJlFIRaDM3v0+ttZaH8p8rjxSWfNgP2cGv5JAa4EZnmc/nlcUOTFlpA==",
+ "dependencies": {
+ "System.Threading.Tasks.Extensions": "4.6.3"
+ }
+ },
+ "Microsoft.NETFramework.ReferenceAssemblies.net48": {
+ "type": "Transitive",
+ "resolved": "1.0.3",
+ "contentHash": "zMk4D+9zyiEWByyQ7oPImPN/Jhpj166Ky0Nlla4eXlNL8hI/BtSJsgR8Inldd4NNpIAH3oh8yym0W2DrhXdSLQ=="
+ },
+ "System.Buffers": {
+ "type": "Transitive",
+ "resolved": "4.6.1",
+ "contentHash": "N8GXpmiLMtljq7gwvyS+1QvKT/W2J8sNAvx+HVg4NGmsG/H+2k/y9QI23auLJRterrzCiDH+IWAw4V/GPwsMlw=="
+ },
+ "System.Collections.Immutable": {
+ "type": "Transitive",
+ "resolved": "10.0.5",
+ "contentHash": "nozrOKfEgfrvvswkCfxaumY68RA/x1F3ZYwtwRvva8ul91NCnUzb6MKpl5/P7u9v/nIagVL4OXXj8d007tucxw==",
+ "dependencies": {
+ "System.Memory": "4.6.3",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.ComponentModel.Annotations": {
+ "type": "Transitive",
+ "resolved": "5.0.0",
+ "contentHash": "dMkqfy2el8A8/I76n2Hi1oBFEbG1SfxD2l5nhwXV3XjlnOmwxJlQbYpJH4W51odnU9sARCSAgv7S3CyAFMkpYg=="
+ },
+ "System.IO.Pipelines": {
+ "type": "Transitive",
+ "resolved": "10.0.14",
+ "contentHash": "pLVClkIC4XfXhcOQXNtNDJl5LYJOS4XAQAdzbqF8rj6sk2zdXO/5uikBsZqgqnAAb07z9Fmtu0sMj3TwEiBtIw==",
+ "dependencies": {
+ "System.Buffers": "4.6.1",
+ "System.Memory": "4.6.3",
+ "System.Threading.Tasks.Extensions": "4.6.3"
+ }
+ },
+ "System.Memory": {
+ "type": "Transitive",
+ "resolved": "4.6.3",
+ "contentHash": "qdcDOgnFZY40+Q9876JUHnlHu7bosOHX8XISRoH94fwk6hgaeQGSgfZd8srWRZNt5bV9ZW2TljcegDNxsf+96A==",
+ "dependencies": {
+ "System.Buffers": "4.6.1",
+ "System.Numerics.Vectors": "4.6.1",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.Numerics.Vectors": {
+ "type": "Transitive",
+ "resolved": "4.6.1",
+ "contentHash": "sQxefTnhagrhoq2ReR0D/6K0zJcr9Hrd6kikeXsA1I8kOCboTavcUC4r7TSfpKFeE163uMuxZcyfO1mGO3EN8Q=="
+ },
+ "System.Runtime.CompilerServices.Unsafe": {
+ "type": "Transitive",
+ "resolved": "6.1.2",
+ "contentHash": "2hBr6zdbIBTDE3EhK7NSVNdX58uTK6iHW/P/Axmm9sl1xoGSLqDvMtpecn226TNwHByFokYwJmt/aQQNlO5CRw=="
+ },
+ "System.Text.Encodings.Web": {
+ "type": "Transitive",
+ "resolved": "10.0.14",
+ "contentHash": "+aDpFLtsHyft9ZVx9pZQ9MILqwrr8LK1te1L39VMKQYhoYDbs+RUqBhCT3Zydb5ymi2Buo4Cn+3Wi208IxD6rw==",
+ "dependencies": {
+ "System.Buffers": "4.6.1",
+ "System.Memory": "4.6.3",
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.Threading.Tasks.Extensions": {
+ "type": "Transitive",
+ "resolved": "4.6.3",
+ "contentHash": "7sCiwilJLYbTZELaKnc7RecBBXWXA+xMLQWZKWawBxYjp6DBlSE3v9/UcvKBvr1vv2tTOhipiogM8rRmxlhrVA==",
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.1.2"
+ }
+ },
+ "System.ValueTuple": {
+ "type": "Transitive",
+ "resolved": "4.6.2",
+ "contentHash": "yQgmjfFximrNm9LIV3mL6T5MzjeC+epeE5rl4hXxAlYmxby7RM1dPSkIKXk9HNkl6G54h2JHOmLD46+Pey+IRg=="
}
- },
- "net10.0/win-arm64": {},
- "net10.0/win-x64": {}
+ }
}
-}
+}
\ No newline at end of file
diff --git a/packages/experimental/cua-windows/native/src/CaptureAdmission.cs b/packages/experimental/cua-windows/native/src/CaptureAdmission.cs
deleted file mode 100644
index 5014f34f85..0000000000
--- a/packages/experimental/cua-windows/native/src/CaptureAdmission.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// The native operation owns its capture slot until cleanup finishes, independently of the caller's await.
-using DeepSeek.Cua.Protocol;
-
-namespace DeepSeek.Cua.Windows;
-
-internal sealed class CaptureAdmission
-{
- private readonly object gate = new();
- private Task? pending;
-
- internal Task Start(Func> operation)
- {
- lock (gate)
- {
- if (pending is { IsCompleted: false })
- throw new NativeFailure("CAPTURE_BUSY", "The previous Windows capture is still releasing its resources; UIA and input remain available");
- pending = operation();
- _ = pending.ContinueWith(completed => { _ = completed.Exception; }, CancellationToken.None,
- TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
- return pending;
- }
- }
-
- internal async Task Join()
- {
- Task? active;
- lock (gate) active = pending;
- if (active is not null)
- {
- try { await active; }
- catch (Exception error) { _ = error; /* The requesting connection owns the capture failure. */ }
- }
- }
-}
diff --git a/packages/experimental/cua-windows/native/src/ClipboardPaste.cs b/packages/experimental/cua-windows/native/src/ClipboardPaste.cs
index 6244fc9fa7..ad166b5bd2 100644
--- a/packages/experimental/cua-windows/native/src/ClipboardPaste.cs
+++ b/packages/experimental/cua-windows/native/src/ClipboardPaste.cs
@@ -10,7 +10,7 @@ internal sealed class ClipboardPaste
{
private sealed class Transaction(ServiceControl control, int targetPid, uint format, byte[] payload, List<(uint Format, byte[] Data)> previous, uint originalSequence)
{
- internal readonly TaskCompletionSource Consumed = new(TaskCreationOptions.RunContinuationsAsynchronously);
+ internal readonly TaskCompletionSource