使用 Visual Studio 2022 打开旧的解决方案

发布于 2025-01-16 20:09:53 字数 503 浏览 1 评论 0原文

我正在尝试从 Visual Studio 2019 切换到 Visual Studio 2022Codes 运行正常,但显示 CS0103 名称“Color”在 Visual Studio 2022 的当前上下文中不存在 代码被执行并且运行良好。相同的代码在 Visual Studio 2019 中完全没问题,没有任何错误 这是文件.aspx这是显示 file.aspx 文件中的 file.aspx.cs Id 在 Visual Studio 2022 的 file.aspx.cs 文件中找不到

I am trying to switch from Visual Studio 2019 to Visual Studio 2022Codes runs fine but shows CS0103 The name 'Color' does not exist in the current context in Visual Studio 2022
Code gets executed and runs fine. The same code is totally fine in visual studio 2019 without any errors
this is file.aspx
this is file.aspx.cs Ids from file.aspx file is shown not found in file.aspx.cs file in visual studio 2022

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文