Conversation
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/07bdc3d8-227a-4637-8d3a-8e93b72598a8 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/e097a3e9-9657-44ce-930d-2a1c49414c75 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
… Robot.FromAbi Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/ca6b84e1-48e0-4ab2-bfe8-ee281d366ce8 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
|
@copilot client.cs(27,1): error CS8803: Top-level statements must precede namespace and type declarations. |
…ments Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/c91893da-9f77-44ba-8097-892882ce6422 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
|
@copilot now its failing for a different reason on x64 |
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/931c57f3-dff7-43d8-9f65-2ace34612340 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Fixed in 6a05bc7. The x64 failure was |
|
@copilot more issues |
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/5026261f-4c08-46e4-ab21-e8ee1707fe84 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Fixed in 90fd1fc. The root issue is that CsWinRT registers a global The fix removes the invalid cast and instead calls
|
|
@copilot still failing |
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/27d81e40-8468-45b5-9af5-8cc1676d74ba Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Fixed in 088d2e2. The issue was warning CS9191: |
Adds a C# client for the robot sample using CsWinRT to generate projections from
robot.winmdat build time.client.csproj: targetsnet9.0-windows10.0.19041.0; referencesMicrosoft.Windows.CsWinRT2.2.0; feedsrobot.winmdviaCsWinRTInputs/CsWinRTIncludes=Robotics; setsCsWinRTWindowsMetadata=localsocswinrt.exeskips reading the UAPPlatform.xml(only our ownRoboticstypes are projected, no Windows SDK WinRT types are needed).client.cs: uses CsWinRT-projected types —new Robot()for WinRT activation,robot.Speak("...")with automatic HSTRING marshaling, andMarshalInspectable<Robot>.FromAbi(ptr)to wrap the raw ABI pointer returned byCreateRobotFromHandle.CreateRobotFromHandleis kept as a P/Invoke (plain Win32 export). To obtain the interop handle,Marshal.QueryInterfaceis called directly on the raw ABI pointer (passing theGuidwithout arefmodifier, matching thein Guidparameter in .NET 9) to retrieveIRobotInterop*, andHandle()is invoked through the COM vtable viaMarshal.GetDelegateForFunctionPointer— bypassing CsWinRT's globalComWrappers, which re-projects allIInspectable*pointers as WinRT types and makes a direct[ComImport]cast invalid (CS0030).src/lib.rs: Rust test invokesdotnet runand validates output; panic message includes both stdout (where MSBuild writes compiler errors) and stderr.