CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

C# language projection for the Windows Runtime

Results 226 CsWinRT issues
Sort by recently updated
recently updated
newest added

**Describe the bug** `C:\myproj\obj\x64\Debug\net6.0-windows\Generated Files\Windows.Foundation.Collections.cs(560,23,560,28): error CA2257: The 'ABI.Windows.Foundation.Collections.IMapChangedEventArgs.Vftbl' member on the 'ABI.Windows.Foundation.Collections.IMapChangedEventArgs' type should be marked 'static' as 'ABI.Windows.Foundation.Collections.IMapChangedEventArgs' has the 'DynamicInterfaceImplementationAttribute' applied` **To Reproduce** 1. Create a `net6.0-windows`...

bug
needs-author-feedback

![image](https://user-images.githubusercontent.com/16729017/131144630-24dac129-e701-424b-b33c-7b264bbb0f63.png) ![image](https://user-images.githubusercontent.com/16729017/131145311-3875f33c-8608-40b3-a4c3-30f487e9c83c.png)

bug
question
authoring
pri-2

**Describe the bug** While trying to use CsWinRT authoring in our Notifications Toolkit library, I ran into a KeyNotFoundException when building. I'm not sure what type it's unhappy with. The...

bug
authoring

The generator will try adding `ExclusiveTo` but pass a string (class name) instead of a `Type` https://github.com/microsoft/CsWinRT/blob/ad6adcb997b40cea649cf4156451316e714bc3ea/src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs#L1566-L1579

bug
authoring
cswinmd

Crash in `WinRTTypeWriter.AddCustomAttributes` when no matching constructors are found (we blindly access `matchingConstructor.First()`) ``` System.Linq.dll!System.Linq.ThrowHelper.ThrowNoElementsException() Unknown System.Linq.dll!System.Linq.Enumerable.First(System.Collections.Generic.IEnumerable source) Unknown > CsWinMD.dll!Generator.WinRTTypeWriter.AddCustomAttributes(string attributeTypeName, System.Collections.Generic.IList primitiveTypes, System.Collections.Generic.IList primitiveValues, System.Reflection.Metadata.EntityHandle parentHandle) Line 1717...

bug
authoring
cswinmd

**Describe the bug** IList property causes source generator to fail for authored C# component **To Reproduce** 1. Create a C#/WinRT authored component (set CsWinRTComponent to true) 2. Add this to...

bug
authoring

**Describe the bug** When trying to build a C# class library that uses `System.Uri` in methods, like the one seen below, I get an "Incorrect function" error. And then trying...

bug
authoring

**Describe the bug** When trying to build a C# class library that uses nullable types in methods, like the one seen below, I get an "Incorrect function" error, and trying...

bug
authoring

**Describe the bug** When opening the NetProjectionSample (CppWinRTComponentProjectionSample.sln) in Visual Studio, errors like the following appear in VS: > (1) Error Path 'C:\Users\deads\Desktop\Dev\CsWinRT-master\src\Samples\Net5ProjectionSample\_build\x64\Debug\SimpleMathComponent\bin\SimpleMathComponent\SimpleMathComponent.winmd' is not a file or directory SimpleMathProjection...

bug
tooling