BertP
Posts: 4
Joined: Thu Feb 11, 2021 9:23 am

Empty "Add Project Output" window in Visual Studio

Thu Feb 11, 2021 9:29 am

The popup window is empty when your visual studio solution has at least one project that uses multitargetting (TargetFramework-s-, instead of TargetFramework). The behaviour returns as expected after removal of these projects or updated project configuration.
Due to issues with 3rd party dependencies we multitarget our common projects so single targetting isn't really possible in our case.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Empty "Add Project Output" window in Visual Studio

Mon Feb 15, 2021 3:26 pm

Hello,

I have tested this, but I was not able to reproduce it.

Basically, here are the steps I've taken:

- create a .NET Console App project

- add multiple target frameworks

- to the solution, add a new AI project

- "Files and Folders" page --> "Add project output"

TargetFrameworks.png
TargetFrameworks.png (213.67KiB)Viewed 8618 times
AddProjectOutput.png
AddProjectOutput.png (48.3KiB)Viewed 8618 times


The above was tested with the latest version of Advanced Installer (17.9).

Could you please let me know if I'm missing anything?

Also, if possible, could you please create a sample project that reproduces this and forward it to me? The sample project should consist of the .SLN file and the Advanced Installer project (that you add to your Visual Studio solution).

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

BertP
Posts: 4
Joined: Thu Feb 11, 2021 9:23 am

Re: Empty "Add Project Output" window in Visual Studio

Fri Oct 29, 2021 9:29 am

Hi Catalin, Thank you for your elaborate reply.

I have revisited Advanced Installer and noticed the same error still exists.
My suspicion was misguided; there is indeed no issue with the TargetFrameworks property, as you demonstrated. But there is an issue when at least one of your visual studio projects uses the new SDK-style project layout.
This layout is automatically chosen when you create projects targetting NetCore or the new Net5.0 (which is basically .net core 4.0).

This is at least an issue on my end. Maybe it's not a general issue.
But I'm surprised because .net core projects should work as expected (i browsed the forums and since january 2021 there should be support). I try to keep my program installations as default as possible.

This might be an issue with documentation too. The getting started with AI and Visual Studio starts from an already existing solution, but it neglects to mention which visual studio version, which framework the projects are targetting and which project file layout is used.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Empty "Add Project Output" window in Visual Studio

Tue Nov 02, 2021 4:14 pm

Hello Bert,

You are always welcome!

Regarding the new issue, I have tried testing this and everything seemed to be working as expected on my end. Truth being told, it's been quite some time since my last reply and perhaps something has changed in the meantime - I am testing using version 18.8 (our latest version).

So here is how I tested this:

- in VS, create a new .NET Core project

- set the Target Framework to .NET 5.0 as specified by you
NetCore5.png
NetCore5.png (49.88KiB)Viewed 7495 times
- add a new Advanced Installer project to my solution

- open the project --> "Files and Folders" page --> "Add project output". Here is how the window looks like:
AddProjectOutput.png
AddProjectOutput.png (11.49KiB)Viewed 7495 times

After clicking "Ok", the files are added to the project, as expected.
Files.png
Files.png (124.91KiB)Viewed 7495 times

If possible, could you please forward me a step-by-step test case which I can follow in order to reproduce this issue on our end?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”