在 2008 年后的 Visual Studio 中开发 .NET Compact Framework 应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24241978/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Developing .NET Compact Framework apps in Post-2008 Visual Studio?
提问by ???
I want to develop a Compact Framework App for a Windows CE 6.0 target device. Can I do this with Visual Studio 2013?
我想为 Windows CE 6.0 目标设备开发一个 Compact Framework 应用程序。我可以用 Visual Studio 2013 做到这一点吗?
If this is not possible, what would be a development environment for .net compact framework?
如果这是不可能的,那么 .net 紧凑型框架的开发环境是什么?
回答by ctacke
I'm positive this question is a duplicate, but for the life of me I can't find the original so I'll re-answer here.
我肯定这个问题是重复的,但对于我的生活,我找不到原版,所以我会在这里重新回答。
Microsoft's support for Compact Framework development is not completely obvious or well documented. It's a mixed matrix of the target version of Windows CE, the version of the Compact Framework and the version (and SKU level) of Visual Studio.
Microsoft 对 Compact Framework 开发的支持并不完全明显或有据可查。它是 Windows CE 目标版本、Compact Framework 版本和 Visual Studio 版本(和 SKU 级别)的混合矩阵。
Generally speaking it comes out like this, based on your target OS:
一般来说,根据您的目标操作系统,结果是这样的:
WEC 2013
WEC 2013
WEC 2013 supports onlyCompact Framework 3.9. Assemblies targeting previous CF versions should be recompiled (though I suspect they would still run).
WEC 2013仅支持Compact Framework 3.9。应重新编译针对以前 CF 版本的程序集(尽管我怀疑它们仍会运行)。
Compact Framework 3.9 is supported starting with Visual Studio 2012, so you must use VS2012 or later for these projects.
从 Visual Studio 2012 开始支持 Compact Framework 3.9,因此您必须对这些项目使用 VS2012 或更高版本。
Unlike previous versions of the CF, CF 3.9 application development isn't provided "out of the box" in these versions of Visual Studio. You must install an "Application Builder" SDK from the device vendor to do any CF development.
与以前版本的 CF 不同,这些版本的 Visual Studio 不提供“开箱即用”的 CF 3.9 应用程序开发。您必须安装来自设备供应商的“应用程序生成器”SDK 才能进行任何 CF 开发。
Windows CE 7.0
视窗 CE 7.0
Windows CE 7.0 supports CF 3.5 or CF 2.0 applications. Generally these devices only shipped with CF 3.5, if it was included, because 2.0 wasn't available as a catalog item in Platform Builder.
Windows CE 7.0 支持 CF 3.5 或 CF 2.0 应用程序。通常,这些设备仅随 CF 3.5(如果包含)一起提供,因为 2.0 不能作为 Platform Builder 中的目录项提供。
You can develop CF applications for CE 7 in Visual Studio 2008 Pro or Visual Studio 2005 Standard (CF 2.0) only. There is no option to build using a newer version of Visual Studio for these targets, period.
您只能在 Visual Studio 2008 Pro 或 Visual Studio 2005 Standard (CF 2.0) 中为 CE 7 开发 CF 应用程序。对于这些目标,不能选择使用较新版本的 Visual Studio 进行构建。
Where does one get Studio 2008, you might ask? Either through an MSDN subscription, or (and many don't know) by purchasing Platform Builder 7.
您可能会问,从哪里获得 Studio 2008?通过 MSDN 订阅,或(很多人不知道)购买 Platform Builder 7。
Windows CE 6.0
视窗 CE 6.0
Same story as CE 7.0 above. CF 2.0 or 3.5, using Studio 2008 Pro or Studio 2005 Standard.
与上述 CE 7.0 相同的故事。CF 2.0 或 3.5,使用 Studio 2008 Pro 或 Studio 2005 Standard。
Windows CE 5.0 and Windows Mobile 5.0-6.x
Windows CE 5.0 和 Windows Mobile 5.0-6.x
Same story as CE 7.0 with an addition. These platforms also support CF 1.0. For CF 1.0, using Visual Studio 2005 Standard or Visual Studio 2003 Professional.
与 CE 7.0 相同的故事,但增加了一个。这些平台还支持 CF 1.0。对于 CF 1.0,使用 Visual Studio 2005 Standard 或 Visual Studio 2003 Professional。
Windows CE 4.2
视窗 CE 4.2
My memory gets hazy here, since it's been a while, but IIRC you can use CF 1.0, 2.0 or 3.5. This would require Studio 2005 Standard (CF 2.0/3.5) or Studio 2003 Pro (CF 1.0)
我的记忆在这里变得模糊,因为已经有一段时间了,但是 IIRC 你可以使用 CF 1.0, 2.0 或3.5。这将需要 Studio 2005 Standard (CF 2.0/3.5) 或 Studio 2003 Pro (CF 1.0)
Windows CE 4.1
视窗 CE 4.1
Supports CF 1.0, using Studio 2003 Pro or eVC 4.0
支持 CF 1.0,使用 Studio 2003 Pro 或 eVC 4.0
Windows CE 4.0
视窗 CE 4.0
Though this was called "Windows CE .NET", it actually had nothing to do with .NET outside of marketing. It will not run CF apps of any sort. eVB or eVC were the choices for application development
尽管这被称为“Windows CE .NET”,但它实际上与营销之外的 .NET 无关。它不会运行任何类型的 CF 应用程序。eVB 或 eVC 是应用程序开发的选择
Windows CE 3.0 and Pocket PC (original and 2003 variants)
Windows CE 3.0 和 Pocket PC(原始和 2003 变体)
eVB or eVC were the development platforms.
eVB 或 eVC 是开发平台。
Windows CE 2.11 and 2.12, HPC Pro
Windows CE 2.11 和 2.12,HPC 专业版
eVB or eVC
eVB 或 eVC
Windows CE 2.0, PsPC
Windows CE 2.0,PSPC
(Yes, my memory goes back this far)
eVB, eVC or the Visual Basic 6.0 Toolkit for Windows CE, depending on when you came into it
(是的,我的记忆可以追溯到这么远)
eVB、eVC 或 Visual Basic 6.0 Toolkit for Windows CE,这取决于您何时开始使用它
回答by apc
If targeting Windows CE/Mobile 5-6.5 then the last version to support .NET CF was Visual Studio 2008 and so generally speaking apps for .NET CF must be developed in that.
如果以 Windows CE/Mobile 5-6.5 为目标,那么支持 .NET CF 的最后一个版本是 Visual Studio 2008,因此一般来说,必须在其中开发 .NET CF 的应用程序。
There is however a plugin for Visual Studio 2013 (required Visual Studio 2008 Installed) to allow development of .NET CF apps but its not free:
然而,有一个 Visual Studio 2013 插件(需要安装 Visual Studio 2008)允许开发 .NET CF 应用程序,但它不是免费的:
http://ifactr.com/platform/modernization-framework/visual-studio-2013-compact-framework-plugin
http://ifactr.com/platform/modernization-framework/visual-studio-2013-compact-framework-plugin
回答by tcarvin
It is alwyas best to go to the source:
最好去源头:
http://msdn.microsoft.com/en-us/library/dn197932.aspx
http://msdn.microsoft.com/en-us/library/dn197932.aspx
A quick summary:
快速总结:
Get started developing for Windows Embedded Compact in Visual Studio (Compact 2013)
You can develop your .NET Compact Framework 3.9 or Visual C++ apps from within Visual Studio 2013 or Visual Studio 2012 Professional, Premium, and Ultimate editions. When you install Application Builder and the SDK provided for the version of Windows Embedded Compact Edition you are targeting, the SDK provides Visual Studio project templates and Application Builder provides the ability to deploy your apps from Visual Studio to a device or virtual machine for debugging and testing.
开始在 Visual Studio (Compact 2013) 中为 Windows Embedded Compact 进行开发
您可以在 Visual Studio 2013 或 Visual Studio 2012 Professional、Premium 和 Ultimate 版本中开发 .NET Compact Framework 3.9 或 Visual C++ 应用程序。安装应用程序生成器和为目标 Windows Embedded Compact Edition 版本提供的 SDK 时,SDK 提供 Visual Studio 项目模板,应用程序生成器提供将应用程序从 Visual Studio 部署到设备或虚拟机以进行调试和测试。
And if you are targeting earlier devices that are still running Windows Mobile 6.5 or earlier, or Windows CE devices running Windows Embedded Compact 7 or earlier, you will need to use the tried-and-true Visual Studio 2008.
如果您的目标是仍在运行 Windows Mobile 6.5 或更早版本的早期设备,或者运行 Windows Embedded Compact 7 或更早版本的 Windows CE 设备,则需要使用久经考验的 Visual Studio 2008。

