[英]Now that part of the .NET Framework runs on Mac and Linux, how can we know if a .NET app will run outside of Windows?
我认为,.net 应用程序应该能够以某种方式找出它们在哪个操作系统上运行。
If your app runs fine on .NET Core 5 in Windows (not full .NET Framework), then by definition it should run on .NET Core 5 on OS X and Linux.如果您的应用程序在 Windows 中的 .NET Core 5 上运行良好(不是完整的 .NET Framework),那么根据定义,它应该在 OS X 和 Linux 上的 .NET Core 5 上运行。
However that's still too optimistic, as file paths and so on are still different enough to impact the way you write your code.然而,这仍然过于乐观,因为文件路径等仍然不同,足以影响您编写代码的方式。 Thorough testing is always needed.始终需要彻底的测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.