[英]Deploying visual studio 2012 c# windows application
i created a windows application that uses system.xml and system.io libraries, it reads and writes into a specific file (in same directory). 我创建了一个使用system.xml和system.io库的Windows应用程序,它可以读写特定文件(在同一目录中)。 after i am done, i run the .exe file and its perfectly fine BUT when i tried it on any other computer, it gives an error and doesn't work(doesn't even open). 完成后,当我在其他任何计算机上尝试运行.exe文件时,它都运行良好,但它给出了一个错误并且无法正常工作(甚至无法打开)。 i think that i should attach some library files such as the xml library ? 我认为我应该附加一些库文件,例如xml库? I tried publishing as installation file and it also doesn't work i don't know and don't know how to do that, please help. 我尝试发布为安装文件,但我也不知道并且不知道该怎么做,也无法正常工作,请帮助。
System.XML
and System.IO
are part of the .NET Framework. System.XML
和System.IO
是.NET Framework的一部分。 Check which .NET Framework version your solution is compiled for (in the project settings in Visual Studio). 检查解决方案针对哪个.NET Framework版本进行编译(在Visual Studio中的项目设置中)。 Default for Visual Studio 2015 is the .NET Framework 4.5.2, which is not installed by default on Windows 7! Visual Studio 2015的默认值为.NET Framework 4.5.2,Windows 7默认未安装该版本。 You need to install it for your application to work, but you don't need to copy any DLLs manually. 您需要安装它以使您的应用程序正常工作,但不需要手动复制任何DLL。
You can find the official download here 您可以在这里找到官方下载
https://www.microsoft.com/en-us/download/details.aspx?id=42642 https://www.microsoft.com/zh-cn/download/details.aspx?id=42642
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.