简体   繁体   中英

changing target-framework causes error in visual studio 2015

I changed in project.json the section of target-framework from

  "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. Schließen Sie das Fenster, und versuchen Sie es noch einmal. 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).

Any ideas how to fix this?

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

Try to change it back to what it was originally in the project.json. Try to open properties again.

If you create a new project and open properties does it give you the same error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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