ReSharper在全新的dnx解决方案

时间:2016-04-05 06:16:19

标签: c# visual-studio-2015 resharper dnx dnx50

我的设置:

  • VisualStudio 2015 Update1
  • ReSharper Ultimate 9.2
  • dnvm version 1.0.0-rc1-update2 clr x86

到目前为止我做了什么:

我创建了一个包含2个项目的全新解决方案:

  1. Visual C#/ Web - > “班级图书馆(包)
  2. Visual C#/ Web - > “控制台应用程序(包)
  3. 并将类库的引用添加到控制台应用程序。

    类库的project.json如下所示:

    {
      "version": "1.0.0-*",
      "description": "DnxExampleClassLibrary Class Library",
      "authors": [ "John Doe" ],
      "tags": [ "" ],
      "projectUrl": "",
      "licenseUrl": "",
    
      "frameworks": {
        "net451": { },
        "dotnet5.4": {
          "dependencies": {
            "Microsoft.CSharp": "4.0.1-beta-23516",
            "System.Collections": "4.0.11-beta-23516",
            "System.Linq": "4.0.1-beta-23516",
            "System.Runtime": "4.0.21-beta-23516",
            "System.Threading": "4.0.11-beta-23516"
          }
        }
      }
    }
    

    控制台应用程序的project.json如下所示:

    {
      "version": "1.0.0-*",
      "description": "DnxExampleConsoleApp Console Application",
      "authors": [ "John Doe" ],
      "tags": [ "" ],
      "projectUrl": "",
      "licenseUrl": "",
    
      "compilationOptions": {
        "emitEntryPoint": true
      },
    
      "dependencies": {
        "DnxExampleClassLibrary": "1.0.0-*"
      },
    
      "commands": {
        "DnxExampleConsoleApp": "DnxExampleConsoleApp"
      },
    
      "frameworks": {
        "dnx451": { },
        "dnxcore50": {
          "dependencies": {
            "Microsoft.CSharp": "4.0.1-beta-23516",
            "System.Collections": "4.0.11-beta-23516",
            "System.Console": "4.0.0-beta-23516",
            "System.Linq": "4.0.1-beta-23516",
            "System.Threading": "4.0.11-beta-23516"
          }
        }
      }
    }
    

    现在,当我尝试在Main函数中创建Class1的实例(在类库项目中)时,ReSharper告诉我,它无法解析符号。

    enter image description here

    项目编译,当我暂停ReSharper时,一切看起来都不错 我也尝试过“ReSharper / Options - > Environment / General - > Clear Caches”,但这也没有解决问题。

    我做错了什么?请帮忙。

1 个答案:

答案 0 :(得分:2)

尝试安装ReSharper 10.1 EAP build,修复了以下问题:onetwothree。所以它应该支持最新的dnx版本(ReSharper 9.2不能支持“1.0.0-rc1-update2”,因为R#9.2版本大约在9个月前发布)。