我在GitHub上有一个UWP应用程序。我正在为此设置CI构建。我遵循了本演练。
https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/windows/universal?view=vsts&tabs=github
但是当构建被触发时,它会失败。而且出现以下错误,
Error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Windows.UI.Xaml' (are you missing an assembly reference?)
Error CS0234: The type or namespace name 'System' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
Error CS0234: The type or namespace name 'Input' does not exist in the namespace 'Windows.UI.Xaml' (are you missing an assembly reference?)
Error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
Error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Windows.UI.Xaml' (are you missing an assembly reference?)
Error CS0234: The type or namespace name 'Storage' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
Error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
NuGet软件包已还原(通过日志确认),但仍然出现这些错误。