Windows 通用项目不支持 VS2017 页面 [英] VS2017 Page is not supported in a Windows Universal project
问题描述
从昨天开始我就有一个相当不愉快的问题...
I have a rather unpleasant problem since yesterday...
我清除了 NuGet chache,因为我无法使用 NuGet 包来处理我的代码之一.但这并没有帮助,而是把我之前写的 UWP 应用搞砸了.
I cleared my NuGet chache because I couldn't get a NuGet-Package to work with one of my codes. But it didn't help and instead f***ed up the UWP apps I wrote before that.
我的代码中的每个元素都出现错误,如下所示:
I get errors for every element I have in my code like this:
在 XAML 中,它主要是Windows 通用项目不支持 XXX",而在 .cs 文件中,它有很多无法解析符号 XXX"
In XAML it's mostly "XXX is not supported in a WIndows Universal project" and in the .cs files its a lot of "Cannot resolve symbol XXX"
我该如何修复?
我可以很好地编译和运行我的代码,但是当 VS 中的所有内容都被检测为错误并且我在设计它时看不到我的 UI 时,我无法使用代码...
I can compile and run my code just fine but I can't work with the code when everything gets detected as an error in VS and I can't see my UI while designing it...
我真的需要一些帮助:/
I could really need some help here :/
推荐答案
好吧,我真的不知道为什么会这样,但我找到了我的答案...
Ok I don't really know why that happend but I found my answer...
我尝试重新启动 VS,但没有解决问题.
I tried restarting VS which didn't solve problem.
我尝试重新启动我的电脑,但没有解决问题.
I tried restarting my PC which didn't solve problem.
我尝试构建我的代码,但没有解决问题,但在构建时没有错误.
I tried to build my code which didn't solve problembut no errors while building.
我试图运行我的代码,但没有成功,但应用程序打开没有问题.
I tried to run my code which didn't work but app opens without a problem.
下一步让我有点困惑......
Next step confuses me a bit...
我的代码分为2个项目.一个用于所有 XAML 文件,一个用于我的所有代码文件,如 Helpers、Converters、Collections...
My Code is divided into 2 projects. One for all the XAML files and one for all my code files like Helpers, Converters, Collections...
我在第二个项目中打开了 NuGet-Manager 并寻找我的包的可能更新.我立即安装了 Fody-Package 的更新.现在一切似乎又好了……即使在 XAML 项目中……
I opened the NuGet-Manager in the second project and looked for possible updates to my packages. There was an update for the Fody-Package which I installed right away. Now everything seems fine again...even in the XAML project...
我不明白它为什么有效,但确实有效:/
I don't understand why it works but it does :/
这篇关于Windows 通用项目不支持 VS2017 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!