简体   繁体   English

使用框架发布.NET应用程序

[英]Publish .NET application with framework

I made a simple application including VLCPlugin in .NET 2012 including framework 4. 我在包含框架4的.NET 2012中制作了一个包括VLCPlugin的简单应用程序。

I need to install the application in non-frame work installed machines also. 我还需要在非框架安装的计算机上安装该应用程序。 Now when I build the application and try to install on a machine the following error showing. 现在,当我构建应用程序并尝试在计算机上安装时,显示以下错误。

My question is how to export the entire application including frameworks ? 我的问题是如何导出包括框架的整个应用程序? So that clients can install and works the application. 这样客户端可以安装和使用该应用程序。

Anyone please help Thanks in advance 任何人请帮助提前

在此处输入图片说明

You must use and installer of some kind. 您必须使用某种安装程序。 For Visual Studio 2012, you can publish the application using ClickOnce and mark .NET 4.0 as a prerequisite. 对于Visual Studio 2012,可以使用ClickOnce发布应用程序,并将.NET 4.0标记为先决条件。 For earlier versions of Visual Studio, you can use a Setup project to create an MSI based install; 对于Visual Studio的早期版本,可以使用安装程序项目来创建基于MSI的安装;请参阅“安装指南”。 the setup project, like the ClickOnce wizard, should automatically detect the dependency on the .NET 4.0 runtime. 安装项目(如ClickOnce向导)应自动检测对.NET 4.0运行时的依赖性。 You can also use InstallShield or another commercially available installer creation package. 您也可以使用InstallShield或其他商业上可用的安装程序创建软件包。 The only other alternative is to tell your users to download either the standalone or web versions of the .NET installation package from Microsoft. 唯一的替代方法是告诉您的用户从Microsoft下载.NET安装包的独立版本或Web版本。

For distributing a commercial software, we use WIX - http://wix.sourceforge.net/ . 为了分发商业软件,我们使用WIX- http: //wix.sourceforge.net/。 This is free, you can fully customize the installation process and of course detect and install the .Net framework. 这是免费的,您可以完全自定义安装过程,当然也可以检测并安装.Net框架。 It has a plugin for Visual Studio and works with VS2012 well. 它具有Visual Studio插件,并且与VS2012兼容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM