[wix-users] Nuget with Bundle projects

Ziller, Ralf Ralf.Ziller at sartorius-stedim.com
Tue Feb 21 23:57:28 PST 2017


Hello,

You can do this by using a xdt in your nuget package (http://blog.nuget.org/20130920/how-to-use-nugets-xdt-feature-examples-and-facts.html)

<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:wi="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<Bundle>
    <BootstrapperApplicationRef>
      <Payload SourceFile="Resources\bootstrapper.dll" xdt:Transform="InsertIfMissing" xdt:Locator="Match(SourceFile)" />
    </BootstrapperApplicationRef>
  </Bundle>
</Wix>

Regards
Ralf


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: Freitag, 17. Februar 2017 06:06
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Nuget with Bundle projects

Hi
I am publishing my Bootstrapper.dll on our local nuget server during its build, and this is working fine. But to use it in my Bundle projects (wixproj), I can't find any direct method to reference this in PayLoad.
As a workaround I have created a dummy C# project, adding the nuget reference, Copy to build output folder and then referencing this dummy C# project's TargetDir\Bootstrapper.dll in Bundle PayLoad.

Is there any way to avoid using dummy C# project and using nuget referenced binaries in Bundle's PayLoad????

Thanks

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


-----------------------------------------------------------------------------

This message has been checked for all known viruses and filtered for SPAM contents by the central scan services at Sartorius!



Disclaimer :
Neither the footer, e-mail auto-signature, nor anything else in this e-mail
is intended to constitute an electronic signature binding the parties hereto
in the absence of an express written statement by the sender to the contrary.
The information contained in this e-mail is intended only for the individual addressed,
may contain confidential and/or privileged information, and may be legally protected
from disclosure via separate written agreement or otherwise. If you have received
this e-mail by mistake, please notify us immediately by return reply. Be sure to
delete this message and all its attachments from your system. Please note that any
unauthorized review, copying, disclosure or any other use of this information is
strictly prohibited.
WARNING: E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, received late or
incomplete, or could contain viruses. The sender therefore does not accept any
liability for any error or omission in the content of this message, either of which
are caused as a result of e-mail transmission.
Thank you.


More information about the wix-users mailing list