Tom*_*son 7 asp.net visual-studio-2015 asp.net-core
根据http://blogs.msdn.com/b/webdev/archive/2015/01/16/asp-net-5-in-visual-studio-2015-ctp-5.aspx,你现在应该能够包括常规类库到asp.net 5/vnext项目.
当我使用add引用时,package.config会更新,所以它看起来像这样:
...
"frameworks": {
"aspnet50": {
"dependencies": {
"ClassLib": "1.0.0-*"
}
},
"aspnetcore50": { }
},
...
Run Code Online (Sandbox Code Playgroud)
在Visual Studio和intellisense工作中,一切看起来都很好,但它无法构建.我收到CS103错误(当前上下文中不存在名称'xxxx').有任何想法吗?
此外,它是否应该在定位核心时工作?
使用新发布的 Visual Studio 2015 CTP,我现在能够:
一切都编译并运行,显示类库返回的时间值。
(注意:我确保我没有使用 Core 运行时。我非常确定使用 Core 运行时的项目只能使用针对 Core 运行时构建的 .dll。)
| 归档时间: |
|
| 查看次数: |
1965 次 |
| 最近记录: |