如何在VS安装和部署项目中删除.net依赖关系 [英] How to remove .net Dependency in VS setup and deployment project

查看:136
本文介绍了如何在VS安装和部署项目中删除.net依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用VS 2008开发了一个基于MFC的Windows应用程序.由于该应用程序消耗了Web服务,因此我使用clr通过c ++ .net来实现它.效果很好.

I developed a MFC based windows application with VS 2008. For the application consumes a web service, I use clr to achieve it, using c++ .net. It works fine.

然后我打算发布该应用程序,我创建了一个VS 2008安装和部署项目,并将应用程序的项目输出添加到其中.我成功构建了msi安装程序包.但是,当用户尝试安装它时,它会显示一个对话框,让他们 安装.NET 3.5,否则安装将中止.您知道,这很无聊,下载完整的.NET 3.5安装程序包需要很多时间.但是,我的应用程序不依赖于.NET 3.5,它可以与.NET 2.0很好地工作.

Then I plan to publish the application, I created a VS 2008 setup and deployment project, adding the project output of my application into it. I built the msi setup package successfully. But when the users try to install it, it shows a dialog to let them install .NET 3.5, or the installation will abort. It is very boring, you know, downloading a full .NET 3.5 setup package needs a lot of time. However, my appliation does not rely on .NET 3.5, it work fines with .NET 2.0.

我花了很长时间才能找到一种删除.NET 3.5依赖项的方法,但是我失败了.我在安装项目属性窗口中删除了.NET 3.5的先决条件,它将无法正常工作.我将应用程序的.NET目标更改为2.0,但无法正常工作.我什至编辑 带有文本编辑器的安装程序包项目文件,它仍然无法正常工作.我找不到其他尝试的方法.

It takes me a long time to find a way to remove the .NET 3.5 dependency, but I failed. I removed the prerequisites of .NET 3.5 in the setup project property window, it won't work. I change my application's .NET target to 2.0, it didnot work. I even edit the setup package project file with a text editor, it still didnot work. I cannot find another way to have a try.

有人可以告诉我我怎么做,或者根本做不到.

Could somebody tell me how I can do that, or it can not be done at all.

推荐答案

辛,

我正在将该线程从基础".Net Framework安装"论坛移至"Visual C ++常规"论坛.论坛,因为该问题与C ++有关. "Visual C ++ General"(Visual C ++常规)中有更多专家.论坛.

谢谢
Hi Xin,

I am moving this thread from Base ".Net Framework Setup" forum to the "Visual C++ General" forum, since the issue is related to C++. There are more experts in the "Visual C++ General" forum.

Thanks


这篇关于如何在VS安装和部署项目中删除.net依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆