简体   繁体   English

有没有办法让 VSC 的 c# 插件在 ubuntu linux 上用于目标 net5.0-windows 的项目?

[英]Is there a way to get the c# plugin for VSC to work on ubuntu linux for a project with target net5.0-windows?

I need to write unit tests for a customers backend.我需要为客户后端编写单元测试。

Given that the customer is heavily invested in a microsoft ecosystem, his backend makes use of some functionalities offered by setting net5.0-windows as target framework.鉴于客户在微软生态系统中投入了大量资金,他的后端利用了将 net5.0-windows 设置为目标框架所提供的一些功能。

I meanwhile work on a linux machine (ubuntu 20.10, soon to switch to 21.04), so clearly would prefer keeping my optimized workflow going, instead of having to work on a makeshift VM surrounding.同时,我在 linux 机器上工作(ubuntu 20.10,很快将切换到 21.04),因此显然更喜欢保持我优化的工作流程,而不是不得不在临时的虚拟机环境上工作。

So just to make sure, before I setup said VM: is there a way to get the WindowsDesktop.App Runtime to work on linux just fine enough to be able to write tests for it?所以只是为了确保,在我设置之前说 VM:有没有办法让 WindowsDesktop.App 运行时在 linux 上工作,足以为它编写测试? Best using VSC with its C# plugin, but other options would be fine as well.最好使用带有 C# 插件的 VSC,但其他选项也可以。

Seems the answer is as expected: yes, but no (not worth it).似乎答案如预期:是的,但不(不值得)。 Thank you very much to all commenters.非常感谢所有评论者。

暂无
暂无

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

相关问题 MSTest v2 不能与 net5.0-windows 一起运行 - MSTest v2 won't run with net5.0-windows net5.0-windows:警告 CA1416:“windows”支持“RegistryValueKind.DWord” - net5.0-windows: warning CA1416: 'RegistryValueKind.DWord' is supported on 'windows' 仅在 Windows 上:net5.0-windows(或 net6.0-windows)是否允许我在 .Net 5(或 .Net 6)中重新编译 .Net 框架? - On Windows only: does net5.0-windows (or net6.0-windows) allow me to recompile .Net framework in .Net 5 ( or .Net 6)? Windows 和 Linux 开发人员可以使用 C# 和 Z5E37C7DCD3ADD0070AA9F3D1A9 在同一个项目上一起工作吗? - Can Windows and Linux developers work together on the same project using C# and ASP.net? 如何在 .NET 5.0 控制台应用程序的 C# 中检查 windows 版本 - How to check windows version in C# on .NET 5.0 console app c# omnisharp intellisense 不适用于 vscode 中的 net 5.0(Windows 10) - c# omnisharp intellisense not working with net 5.0 in vscode (windows 10) C# Console.ReadLine() 从不读取 Linux 中 VSC 上的输入 - C# Console.ReadLine() never reads input on VSC in Linux 在 C#.NET5.0 中 Windows Forms - 如何让面板在绘画事件中绘制之前不使用 BackColor 清除自身? - In C#/NET5.0 Windows Forms - How can I get a panel to NOT clear itself with the BackColor before drawing in the paint event? vsc 中的 c# 扩展无法正常工作 - extension doesn't work properly for c# in vsc 表单布局在Visual C#中对于智能设备-> Windows CE 5.0->设备应用程序项目不可见 - Form layout is not visible in visual C# for Smart Device->Windows CE 5.0->Device Application project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM