Problem
Building a UWP project in Rider results in errors such as:
Error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
Error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
Cause
These errors commonly occur if the Universal Windows Platform (UWP) SDK or required tooling is not installed or correctly configured.
Resolution
Install the prerequisites of UWP via either of the following:
-
Run Visual Studio installer
-
Install "WinUI application development" workload:

-
Download and install Windows SDK.
Comments
0 comments
Please sign in to leave a comment.