简体   繁体   English

.net 标准和 .net 核心之间的 Visual Studio 2017 项目参考支持

[英]Visual Studio 2017 project reference support between .net standard and .net core

I have a .Net standard 2.0 project in a Visual Studio solution that contains some Azure functions.我在包含一些 Azure 函数的 Visual Studio 解决方案中有一个 .Net 标准 2.0 项目。 In the same solution, I've created a .Net Core 2.0 Unit Test project.在同一个解决方案中,我创建了一个 .Net Core 2.0 单元测试项目。 I've added a project reference from the .Net Core Unit Test project to the .Net standard 2.0 library.我已将 .Net Core Unit Test 项目中的项目引用添加到 .Net 标准 2.0 库中。

Despite the project reference, Visual Studio is behaving like I'm referencing a dll instead of the project.尽管有项目引用,但 Visual Studio 的行为就像我在引用 dll 而不是项目。 For example, if I try to use F12/Go to reference, it brings me to a 'From metadata' file instead of the actual code file in the other project.例如,如果我尝试使用 F12/Go 进行引用,它会将我带到“来自元数据”文件而不是其他项目中的实际代码文件。 Additionally, codelens features like 'Tested by' (and even just 'referenced by') and the Live Unit testing icons in the .Net Standard project aren't working, since they don't seem to be aware of the Unit Test project at all.此外,像“Tested by”(甚至只是“referenced by”)和 .Net Standard 项目中的 Live Unit testing 图标这样的 Codelens 功能也不起作用,因为它们似乎不知道位于所有。

Is there some way to get this integration working between the two projects?有什么方法可以让这种集成在两个项目之间发挥作用? My Visual Studio is up to date (15.5.3 enterprise), and I'm not using any tools like Resharper or anything like that.我的 Visual Studio 是最新的(15.5.3 企业版),我没有使用任何工具,如 Resharper 或类似工具。

I'm also facing the same issue but so far the project reference vs dll reference is not the case.我也面临同样的问题,但到目前为止,项目引用与 dll 引用并非如此。 I believe this is an existing issue with Azure function projects.我相信这是 Azure 函数项目的现有问题。 There is a thread in Microsoft community regarding this issue. Microsoft 社区中有一个关于此问题的线程 The last comment from Visual Studio is as follows: Visual Studio 的最后一条评论如下:

I'm closing this report, because in the last 90 days there was no internal developer activity and very small number of new votes or comments.我要关闭此报告,因为在过去 90 天内没有内部开发人员活动,并且只有很少的新投票或评论。 Sorry, we would like to look at this further, but we just don't have the time right now.抱歉,我们想进一步研究这个问题,但我们现在没有时间。 Our goal in closing older issues such as this one is to keep customers informed on which issues are currently being pursued by Visual Studio teams.我们解决诸如此类的旧问题的目标是让客户了解 Visual Studio 团队目前正在解决哪些问题。 If you still have trouble with our latest version, please report it as a new problem.如果您对我们的最新版本仍有问题,请将其报告为新问题。

暂无
暂无

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

相关问题 当前.NET SDK在Visual Studio 2017更新15.9.3中不支持定位.NET Standard 2.0错误,已安装.NET Core 2.2.1 SDK - The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.9.3, .NET Core 2.2.1 SDK installed Visual Studio 2017 中的空 ASP .NET Core Web 应用程序项目 - Empty ASP .NET Core Web Application project in Visual studio 2017 在 Visual Studio 2017 中通过 postbuild 事件构建 .net 核心项目 - Build .net core project by postbuild event in visual studio 2017 Visual Studio 2017为新的F#.Net核心项目创建System.ValueTuple(4.3.1)的无效Nuget引用吗? - Visual studio 2017 create invalid Nuget reference of System.ValueTuple (4.3.1) for new F# .Net core project? Visual Studio 2017 +.Net Core 2 测试不可执行 - Visual Studio 2017 + .Net Core 2 Tests not executable Visual Studio 2017 (.NET Core) 中的自动版本控制 - Auto Versioning in Visual Studio 2017 (.NET Core) Visual Studio点网核心项目引用错误 - Visual Studio dot net core project reference error 如何在Visual Studio 2017中使用F#interactive中的Dll引用.Net核心2.1应用程序? - How to reference the Dll in F# interactive in Visual Studio 2017 for a .Net core 2.1 application? 如何使用 Visual Studio 2017+ 删除 GitHub 项目中未使用的 .NET 框架/核心参考? - How to remove unused .NET framework / Core reference in GitHub projects with Visual Studio 2017+? 使用 Visual Studio 2017 以 .NET Framework 2.0(不是 .NET Core 2.0)为目标 - Target .NET Framework 2.0 (not .NET Core 2.0) with Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM