简体   繁体   中英

Deploy DLL automatically on build

I'm using nuget GeckoFX for a project.

After installing this package, I've noticed that it contains only two .NET DLL referenced to my project ( Geckofx-Core and Geckofx-Winforms ).

I've noticed also that the nuget installer did not put any build events on my project.

But every time I build the project, it generates many other dlls and exe in the Debug directory.

How could it do that?

The GeckoFX NuGet package depends on the Baseclass.Contrib.Nuget.Output which is the NuGet package that is responsible for copying the files to your output directory.

The Baseclass.Contrib.Nuget.Output NuGet package has a custom MSBuild task that looks for an output directory that any installed NuGet package has and will copy all those files to your project's output directory.

If you look in your packages directory you will see that the GeckoFX NuGet package has an output directory:

packages\GeckoFX.1.0.4\output

All these files are copied to your project's output directory when your project is compiled.

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