how to setup Visual Studio 2022 .Net 7.0 to create a Notification Listener
i am using this documentation
https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/notification-listener
I tried the documetation but cant find "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1\Facades\System.Runtime.dll" file (same file with .xml extension exists))
>Solution :
I had this exact error and I fixed it by installing the windows SDK using this link https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/ and then using it by editing the .csproj of your project and changing TargetFramework to this
net7.0-windows$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion(‘Windows’, ‘10.0’))