我的设置:
到目前为止我做了什么:
我创建了一个包含2个项目的全新解决方案:
并将类库的引用添加到控制台应用程序。
类库的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告诉我,它无法解析符号。
项目编译,当我暂停ReSharper时,一切看起来都不错 我也尝试过“ReSharper / Options - > Environment / General - > Clear Caches”,但这也没有解决问题。
我做错了什么?请帮忙。
答案 0 :(得分:2)
尝试安装ReSharper 10.1 EAP build,修复了以下问题:one,two,three。所以它应该支持最新的dnx版本(ReSharper 9.2不能支持“1.0.0-rc1-update2”,因为R#9.2版本大约在9个月前发布)。