简体   繁体   English

部署Visual Studio 2012 C#Windows应用程序

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

相关问题 使用Visual Studio 2008部署Windows应用程序(C#) - Deploying Windows Application(C#) using visual studio 2008 visual studio 2012 C#:应用程序文件夹 - visual studio 2012 C#: application folders 我可以将在Visual Studio 2012中开发的C#Windows应用程序作为便携式应用程序制作吗? - Can I make an application made as a C# Windows Application developed in Visual Studio 2012 as a portable application? 将SQLite数据库连接到Visual Studio 2012中的C#Windows Phone 8应用程序? - Connecting a SQLite database to a C# Windows Phone 8 Application in Visual Studio 2012? 在Visual Studio Express 2012 for Windows 8中实现C#中的枚举 - Implementing enum in C# in Visual Studio Express 2012 for Windows 8 导入 Windows Forms (C#), Visual Studio 2012 - Importing Windows Forms (C#), Visual Studio 2012 Visual Studio 2012(Windows 8.1)C#编辑器,用户类型颜色 - Visual Studio 2012 (Windows 8.1) C# editor, Usertypes color 在Visual Studio 2012中使用SqlServer 2012 Databse部署Windowsform应用程序 - Deploying Windowsform application with SqlServer 2012 Databse in Visual Studio 2012 在Visual Studio 2012中发布C#winform应用程序 - publishing a C# winform application in Visual Studio 2012 在没有发布选项的情况下使用Visual Studio 2012部署C#wpf - Deploying a C# wpf with Visual Studio 2012 without its publishing option
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM