Visual Studio setup project adds GAC assembly as discovered dependencies

I am using Visual Studio 2017 and I am using this extension from Microsoft to give Visual Studio 2017 the ability to create a setup project.

I created a new setup project and I added the main output of the WPF application to this project. Everything is fine here.

The problem is this: Visual Studio 2017 Adds GAC assemblies under Detected dependencies and also adds them to the application folder, Also This add duplicates them (each assembly is added twice).

here is an image enter image description here Finally, when I use the MSI package to install the application, the GAC assemblies are copied to the folder containing the application.

So why is Visual Studio behaving like this: "What am I doing wrong?
I tried to exclude the GAC DLL, but VS is overriding that.
I wanted to remove the GAC DLL from the Dependencies Detected, but vs did not allow me to do this

I don't want the GAC assemblies to be copied to the application folder, I want to use them directly from the GAC. how to do it?

NOTE 1. I am using TFS to host the source code for the solution.
NOTE 2: The whole project is built according to Release x64


NOTE 3: Although there are lines to read in the assemblies, no errors or warnings are thrown when creating visual studio.

Refresh enter image description here

+3


source to share





All Articles