在C#编写的USB驱动器便携式应用 [英] Writing USB Drive Portable Applications in C#
问题描述
我的一个大约拥有一个USB闪存设备最喜欢的东西是围绕着一群与我有用的工具拖运。我想写一些工具,使他们在这种环境中很好地工作。我知道C#最好的,我在它的生产,这样我就可以得到一个窗口在任何时间形成应用了这种方式。
One of my favorite things about owning a USB flash storage device is hauling around a bunch of useful tools with me. I'd like to write some tools, and make them work well in this kind of environment. I know C# best, and I'm productive in it, so I could get a windows forms application up in no time that way.
但我应该考虑哪些注意事项在制造一个便携式的应用程序?一些我能想到的,但不知道答案的:
But what considerations should I account for in making a portable app? A few I can think of, but don't know answers to:
1)语言的便携性 - 好吧,我知道,我用它在任何机器都需要一个。 .NET运行库安装。但正如我只经常使用的几个窗口的机器,这不应该是一个问题。我可以用另一种语言编写的,但后来我失去了生产力特别是关于一个简单的窗体设计器。是否有任何其他问题,从闪存驱动器中运行的.NET应用程序
1) Language portability - Ok, I know that any machine I use it on will require a .NET runtime be installed. But as I only use a few windows machines regularly, this shouldn't be a problem. I could use another language to code it, but then I lose out on productivity especially in regards to an easy forms designer. Are there any other problems with running a .NET app from a flash drive?
2)读/写周期 - 在C#中,我如何确保我的应用程序ISN 'T不必要的写入驱动器? ?难道我一直有写操作的控制,还是有什么隐藏写我需要考虑
2) Read/Write Cycles - In C#, how do I make sure that my application isn't writing unnecessarily to the drive? Do I always have control of writes, or are there any "hidden writes" that I need to account for?
3)打开的问题:有没有与任何其他问题便携式应用我应该知道的,或者建议,具有良好的IDE其他语言会得到我的生产力,更好的便携性相似水平?
3) Open question: are there any other issues relating to portable applications I should be aware of, or perhaps suggestions to other languages with good IDEs that would get me a similar level of productivity but better portability?
推荐答案
- 1)不应该运行.net应用程序的任何问题
从闪存
驱动器。 - 2)你应该有
的控制最写道。要确保你写
临时或
硬盘上的其他位置,而不是闪
驱动器上。但是,写周期不宜
A的问题 - 甚至中度到重度
使用最闪存驱动具备年的生命
时间 - 3)只是把它
类似的它有XCOPY
风格的部署,并试图解释
你的应用程序正常失败,如果
部分依赖是不是包装盒上的任何应用程序。
这篇关于在C#编写的USB驱动器便携式应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!