- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 .NET 和 C# 的初学者,我是从“Pro C# 6.0 and .NET 4.6 Framework”这本书开始的。
书中引述:
Each of the Express tools is limited in that it allows you to build .NET software that will run only on the Windows OS (7, 8.x, or 10). However, as mentioned in Chapter 1, the .NET platform runs on a wide variety of operating systems and hardware devices. Thus, if you need to build a .NET program that can run on (for example) Android or an Apple product, the Express products won’t offer much help.
我很难理解这意味着什么。根据我的理解,.NET 程序集(托管代码)将与平台无关。那么为什么 IDE 的 Express 版本生成的代码应该只特定于 Windows?生成的 CIL 是否应该同样有资格在 Linux 或 Mac OS X 中的单声道框架上运行(假设我没有使用任何不受单声道支持的框架,如 WPF 等)?有人可以澄清这是什么意思吗?提前致谢。
最佳答案
此版本的 Visual Studio(和社区版):
includes Windows SDK's compilers and core files, which developers can use to build Win32 applications
如果您构建一个 C# web 应用程序,如果该应用程序托管在 Windows 服务器(或 Mac/Linux服务器使用 Mono 而不是 .Net)。
With web applications you only need to ensure your html/jscript etc. is compatible with the users browser, although the server OS and web server matter in terms of hosting the web app.
在这种情况下,客户端不会运行您的 C# .NET 应用程序,您可以(Windows 服务器)。
但是,如果您正在为操作系统构建一个普通 C# .NET 应用程序(而非 Web 应用程序),那么您只能针对 Windows 进行开发,因为您没有其他任何编译器.
关于平台独立性的旁注:您可以在 this Stack Overflow Question 上看到有趣的辩论关于它。这个问题已有 5 年历史,但答案是新的(2016 年)。
关于c# - Visual Studio 速成版 - 特定于 Windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38263028/
由于要学习搭建服务器和数据库,所以最近开始自学sql语言了,至于写数据库就用比较基础的Mysql数据库了,虽然Mysql已经被互联网公司所淘汰掉了,他们都在使用Nosql,SQL server等sq
我正在使用 VC++ 2010 Express。 我有这样的代码: if(strlen("AA") == strlen("BB")) MessageBox("AA == BB"); else Me
你好,在我开始做一个充满类型转换和其他东西的复杂循环之前,我有一个简短的问题。 比较两个值时,结果是否为 True? 0.1 == 0.10( float ) 我实际上是在比较一个列表的成员,它们可能
我是一名优秀的程序员,十分优秀!