安装项目正在将内置的

安装项目正在将内置的

本文介绍了安装项目正在将内置的 .NET Framework .System 程序集添加到输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 VS Community 2015,带有

在我运行安装程序后,它会继续安装一百个 dll 文件,包括应该是 .NET Framework 一部分的文件,例如:

  • System.IO.dll
  • System.Linq.dll

我确保:

  • 我的所有项目都设置为 .NET 4.5.2
  • 在安装项目中,我将目标 .NET 框架设置为 .NET 4.5.2
  • 在安装项目中,我将先决条件设置为 .NET 4.5.2

我做错了什么?我怎样才能让设置只安装不属于 .NET Framework 的 dll(如 Caliburn 或 NLog).谢谢.

编辑 1:根据 'Claudius' 问题,这里有一个 .NET 框架的列表,我的机器上应该安装了这些框架.请注意,我正在尝试安装在我正在开发的同一台机器上.我的/bin/Release 文件夹没有任何 .NET .System 目录,应用程序从那里运行良好.

编辑 2:找到另一个有类似问题的人.可惜没有解决:Visual Studio 安装项目:大量依赖项

解决方案

如果您选择一个 dll(例如 System.IO)并且您确定它已经在 .NET 框架中,您可以设置将属性窗口中的属性Exclude设为True.

dll 不会被复制到安装文件中.

I'm using VS Community 2015, with Setup Project extension. I've never seen this problem working with 2010. The problem is that when I add a project to the output, the Detected Dependencies list all dll's I've used in the project, including the built in ones:

After I run the installer, it then proceeds to install a hundred dll files, including files that should be part of .NET Framework, like:

  • System.IO.dll
  • System.Linq.dll

I made sure that:

  • I have all my projects set to .NET 4.5.2
  • inside Setup Project, I have the target .NET framework set to .NET 4.5.2
  • inside Setup Project, I have the Prerequisite set to .NET 4.5.2

What am I doing wrong? How can I get the setup to install only the dll's that are not part of .NET Framework (like Caliburn, or NLog). Thanks.

EDIT 1: As per 'Claudius' question, here's a list of .NET frameworks supposedly installed on my machine. Note that, I'm trying to install on the same machine I'm developing on. My /bin/Release folder doesn't have any of the .NET .System directories and the application runs fine from there.

EDIT 2:Found another person with a similar problem. Sadly unsolved:Visual Studio Setup Project: Huge list of dependencies

解决方案

If you select a dll (e.g. System.IO) which you are sure it's already in the .NET framework, you can set the property Exclude in the property window to True.

The dll will not be copied into the setup file.

这篇关于安装项目正在将内置的 .NET Framework .System 程序集添加到输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 23:44