简体   繁体   English

更改目标框架会导致Visual Studio 2015错误

[英]changing target-framework causes error in visual studio 2015

I changed in project.json the section of target-framework from 我在project.json中更改了目标框架的部分

  "frameworks": {
    "dotnet": { }
  }

to

  "frameworks": {
    "dnx451": {
      "dependencies": {
      }
    },
    "dnxcore50": {
      "dependencies": {
        "System.Collections": "4.0.10-beta-23019",
        "System.Console": "4.0.0-beta-23019",
        "System.Linq": "4.0.0-beta-23019",
        "System.Threading": "4.0.10-beta-23019",
        "Microsoft.CSharp": "4.0.0-beta-23019"
      }
    }

when trying to get into the settings of the project, the tab opens with following exception: 尝试进入项目设置时,选项卡将打开,但以下情况除外:

Fehler beim Laden des Projekteigenschaftenfensters. Fehler beim Laden des Projekteigenschaftenfensters。 Schließen Sie das Fenster, und versuchen Sie es noch einmal. SchließenSie das Fenster和其他发行人。 Ein COM-Objekt, das vom zugrunde liegenden RCW getrennt wurde, kann nicht verwendet werden. Ein COM-Objekt,das vom zugrunde liegenden RCW getrennt wurde,kann nicht verwendet werden。

(means something like "error when loading the projects settings-window. close the window and try again. A COM-Object trimmed from RCW can't be used) I tried again to open the window - same error again. I changed back to the previous but this didn't help neither. I can't even open the settings-window from another project anymore (that definitely worked before). (这意味着“加载项目设置窗口时出错。关闭窗口,然后重试。无法使用从RCW修剪的COM对象)。我再次尝试打开窗口-再次出现相同的错误。我改回我什至不能再打开另一个项目的设置窗口(以前确实可以使用)。

Any ideas how to fix this? 任何想法如何解决这一问题?

目标框架在Properties中更改目标框架,在下拉菜单中可以选择新框架。

Try to change it back to what it was originally in the project.json. 尝试将其更改回原来在project.json中的内容。 Try to open properties again. 尝试再次打开属性。

If you create a new project and open properties does it give you the same error. 如果创建一个新项目并打开属性,它会给您同样的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM