【问题标题】:Visual Studio stopped supporting my projectsVisual Studio 停止支持我的项目
【发布时间】:2017-08-23 07:11:47
【问题描述】:

我有 Visual Studio 2013 Ultimate。今天当我打开它时,它没有加载我的任何解决方案的项目。错误信息:

Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them. 
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
     - ETL_<Project name>, "<Project path></Project>.csproj"


Non-functional changes required
Visual Studio will automatically make non-functional changes to the following projects in order to enable them to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1. Project behavior will not be impacted.
     - <Project name></Project>, "<Project path></Project>.sln"

这些项目属于类库和控制台应用程序类型。如果我尝试创建一个新项目,则会列出这些类型,但是当我创建它时,我会收到消息 &lt;Project path&gt; cannot be opened because its project type (.csproj is not supported by this version of the application. To open it, please use a version that supports this type of project.

所以,Visual Studio 告诉我它不支持它刚刚创建的项目?! GJ M$!!

【问题讨论】:

  • 您恰好有来自公司存储库的代码?是否有用户将项目文件升级到最新版本的 Visual Studio?
  • 你有没有可能在 VS 中安装 c# 支持失败?
  • 你可以在 .csproj 文件中设置 VS 版本,我很确定。检查以确保那里设置的值与您的 VS 版本相对应。
  • 在我看来,VS 中的某些东西已经损坏。修复/卸载->重新安装听起来是明智的第一步。

标签: c# visual-studio visual-studio-2013 class-library project-types


【解决方案1】:

我在 Hyper-V 虚拟机中也有同样的情况。修复后不起作用,我卸载并重新安装了VS 2017。同样的事情。 在宿主机上我还是可以用VS打开同一个项目,所以不是项目,而是VS安装有问题。

它把它放在迁移日志中: src\DTOWEB\project.json:无法迁移 XProj 项目 DTOWEB。在 C:\DTOWeb\DTOWEB7\src\DTOWEB\project.json 找不到 project.json。

我有第二个虚拟机,它是 x86 iso x64,它可以毫无问题地打开项目。再说一遍,我的结论是这个项目没有任何问题。

【讨论】:

    【解决方案2】:

    很遗憾,我无法解决这个问题。我最终卸载了 VS Ultimate。现在我使用 VS Express for Desktop,它适用于我的旧项目。

    我的假设是 Windows 上的某些东西破坏了 VS 的某些部分。我应该尝试卸载并重新安装它,但没有机会。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-23
      • 2010-12-28
      • 2019-10-05
      • 2013-11-09
      • 2016-05-08
      • 1970-01-01
      相关资源
      最近更新 更多