Dependencies not loaded Microsoft Visual Studio Installer Projects 2022

perfect code 271 Reputation points

I have a WPF app in NET 7. To create a setup I have installed Extension Microsoft Visual Studio Installer Projects 2022. Unfortunately I get a problem already at the first step when I select Primary Output. In the older version with Visual Studio 2019 I get all DLLs listed immediately. Here I get now only the entry Primery output from APP (Active)! So without any DLLs listed.

I have tried everything possible, but do not get the listed DLLs. If I open the old project on another machine in Visual Studio 2019 and use the older version of Microsoft Visual Studio Installer Projects there, then immediately all DLLs are listed when I select Primary output. following that, I can then create a working setup.

I looked in internet but nowhere found a post that describes the problem of me!!! Can it be that I do something wrong?


Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,556 questions
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 39,806 Reputation points

    When using the extension to create an installer for .Net 6/7 you should add "Publish Items" to the installer project instead of "Primary output".

    Also, the Q&A for the extension at includes the following answer from Microsoft to a question about dependency detection -- "Due to the different way dependencies are detected for .NET 6.0 projects you generally won't be able to rely on what show's up under detected dependencies. You'll have to see what gets added at build time."

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Gerson Matias 0 Reputation points

    este problema pasa habitualmente, borra nuevamente la salida primaria y vuelvelo a agregar.

    0 comments No comments