You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Declaring a Guid (winrt::guid) type in the C++/WinRT IDL file, to create a WinRT projection, will cause the C# projection to complain about not finding the namespace for it.
To Reproduce
In the idl file of a C++/WinRT component declare a new method/delegate which passes a Guid type argument
Try to compile and generate the C# projection and the following error will be displayed:
C:\src\MyCSProject\obj\x64\Debug\net6.0-windows10.0.19041.0\Generated Files\MyExampleFile.cs(775,123,775,127): error CS0246: The type or namespace name 'Guid' could not be found (are you missing a using directive or an assembly reference?)
Expected behavior
I would expect the Guid type to be recognized in the C# .NET projection.
Version Info
Microsoft.Windows.CsWinRT: v2.0.1
Microsoft.Windows.SDK.BuildTools: v10.0.22621.755
Microsoft.WindowsAppSDK: v1.2.221116.1
.NET: net6.0-windows10.0.19041.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Declaring a
Guid
(winrt::guid) type in the C++/WinRT IDL file, to create a WinRT projection, will cause the C# projection to complain about not finding the namespace for it.To Reproduce
idl
file of a C++/WinRT component declare a new method/delegate which passes aGuid
type argumentExample:
delegate void MyDelegate(IInspectable parameter, Guid guid);
Expected behavior
I would expect the
Guid
type to be recognized in the C# .NET projection.Version Info
The text was updated successfully, but these errors were encountered: