I\'m using a C# class and it works perfectly fine in my Windows Store App (C#). But when I try to use it in a Windows Runtime Compenent I get the following error:
I was also facing the same issue in my Windows Runtime Component as below.
Severity Code Description Project File Line Suppression State
Error Method '.put_TxPower(System.SByte)' has parameter 'value' of type 'System.SByte'.
System.SByte' is not a valid Windows Runtime parameter type.
As Lukasz Madon mentioned in the comment, changing the access modifier from the public to internal worked for me.
Before:
public sbyte TxPower { get; set; }
After:
internal sbyte TxPower { get; set; }