adkerremans2
Posts: 3
Joined: Tue Mar 21, 2023 3:23 pm

Update nuget package references

Hi,

I have created an installer and updated my nuget packages.
When I create a new installer with the updated nuget package, not all packages are in the installer.

How do I do this?

Regards
Ad
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Update nuget package references

Hello Ad and welcome to our forums,

Unfortunately, I'm afraid I do not quite understand your question here.

Are you saying that after upgrade, some of the Nuget packages are not installed?

If so, did you make sure to add a newer version in the package?

I'm not quite familiar with Nuget packages, I have to admit. Are these like usual installation packages? Or how are you installing them?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adkerremans2
Posts: 3
Joined: Tue Mar 21, 2023 3:23 pm

Re: Update nuget package references

Hi Catalin,

I have in VS 2022 nuget packages as a reference. (https://learn.microsoft.com/en-us/nuget/what-is-nuget).
There were some issues in some packages, so i upgraded them and included all the file in de bin\release folder in the installer.
But I still get the error that some file are missing. In development is it working.

Regards
Ad
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Update nuget package references

Hello Ad,

I understand that you add them in your project (this is ok, no problem here).

However, how are you "installing" them? Are you doing so through a custom action?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adkerremans2
Posts: 3
Joined: Tue Mar 21, 2023 3:23 pm

Re: Update nuget package references

Hello Catelin,

I found the solution, in my app.deps.json file was the solution to add some extra files to my installer.
Thanks

Regards
Ad
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Update nuget package references

Hello Ad,

Thank you very much for your followup on this and for sharing your solution with us!

Glad to hear everything is working as expected now.

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

Return to “Building Installers”