安装项目正在将内置的 .NET Framework .System 程序集添加到输出

编程入门 行业动态 更新时间:2024-10-21 16:15:40
本文介绍了安装项目正在将内置的 .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 程序集添加到输出

本文发布于:2023-11-14 15:07:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587704.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程序   项目   Framework   NET   System

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!