简体   繁体   中英

How to include a NuGet package in Visual Studio Installer Project

I'm developing an Installer project that wraps third-party executable file to customise installation according to requirements.

I want to include executable file in a civilised manner. We have a local NuGet repository, and using it as a source for executable file seemed like a good idea. But it turns out that Visual Studio Installer Setup Project does not support NuGet.

Adding the executable to our GIT repository is something I would like to avoid.

I tried to install the NuGet package using commandline NuGet interface in a PreBuildEvent but pre-build validation failed due to missing files.

Is there a straightforward way to include an executable file in Installer project?

You don't.

Make a normal target that depends on the nuget package. This should cause the contents of the package to end up in the build output.

Target the build output of that project with the installer project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM