简体   繁体   English

既然 .NET Framework 的那一部分可以在 Mac 和 Linux 上运行,我们如何知道 .NET 应用程序是否会在 Windows 之外运行?

[英]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.

相关问题 我们如何在 linux 上安装 .net framework 4.6 - how we can install .net framework 4.6 on linux 在Mac上创建Windows窗体应用程序(.NET Framework) - Creating windows form app (.NET framework) on Mac 在Linux / Mono上运行Windows Store .Net应用 - Run Windows Store .Net app on Linux/Mono 引用.Net Framework 4 dll 的.Net 5 应用程序可以在 Linux 上运行吗? - Can a .Net 5 application that references .Net Framework 4 dlls run on Linux? 我可以在Windows中开发.NET应用程序并为Linux和Mac部署版本吗? - Can I develop a .NET application in Windows and deploy versions for Linux and Mac? 您可以在 Mac 上安装和运行基于 .NET 框架构建的应用程序吗? - Can you install and run apps built on the .NET framework on a Mac? 使用 .Net Core 运行 .Net Framework 应用程序(在 Linux 上) - Run .Net Framework apps with .Net Core (on Linux) 如何在Linux,Mac和Windows上从Java启动.NET应用程序? - How can I start a .NET application from Java on Linux, Mac and Windows? 是否可以将.NET Core应用程序作为Windows Service和Linux守护进程运行 - Is it possible to run a .NET Core app as Windows Service AND Linux deamon 我们可以在哪些版本的 Windows 上运行 dot net 应用程序? - On which versions of windows we can run dot net application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM