Dependencies not loaded Microsoft Visual Studio Installer Projects 2022

perfect code 271 Reputation points
2023-01-16T08:57:19.9666667+00:00

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?

Thanks

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

Accepted answer
  1. RLWA32 40,771 Reputation points
    2023-01-16T09:26:52.2033333+00:00

    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 https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2022InstallerProjects&ssr=false#qna 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
    2023-07-02T03:16:56.6766667+00:00

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

    0 comments No comments