Re: [WiX-users] Managing dependencies to preprocessor extensions

2014-02-10 Thread impy
I found out a solution.

Just load manually the needed assembly (i.e My.Assembly.dll) in the
extension constructor:

Assembly.Load("My.Assembly");

I've placed the assembly in the same location as the Extension.dll and it
worked!

Regards



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managing-dependencies-to-preprocessor-extensions-tp7546435p7592517.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Managing dependencies to preprocessor extensions

2014-02-10 Thread impy
Hi,

any news on this issue? I'm having the same problem.

Regards



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managing-dependencies-to-preprocessor-extensions-tp7546435p7592508.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Managing dependencies to preprocessor extensions

2012-05-10 Thread Morten Lemvigh
On 10-05-2012 14:00, Morten Lemvigh wrote:
> I have written a preprocessor extension that has a dependency to another
> assembly. When I try to build a setup project using that extension, I
> get an error saying:
>
> In the preprocessor extension that handles prefix 'somePrefix' while
> trying to call function 'someFunction' and exception has occurred :
> Could not load file or assembly 'ExntensionDependency, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
> system cannot find the file specified.

Just to make things clear: I have no problem creating a console 
application, linking it to the same preprocessor dll and making a manual 
call to:

public override string EvaluateFunction(string prefix, string function, 
string[] args)




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Managing dependencies to preprocessor extensions

2012-05-10 Thread Morten Lemvigh
On 10-05-2012 14:31, Simon Dahlbacka wrote:
> The name in the error message and the name of the dll is spelled
> differently, can it be as simple as that?

Sorry, that is just a typo I introduced when replacing the original 
assembly name. The names are the same in the two places.

/Morten



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Managing dependencies to preprocessor extensions

2012-05-10 Thread Simon Dahlbacka
The name in the error message and the name of the dll is spelled
differently, can it be as simple as that?

/Simon

On Thu, May 10, 2012 at 3:00 PM, Morten Lemvigh <
morten.lemv...@novasoftware.se> wrote:

> I have written a preprocessor extension that has a dependency to another
> assembly. When I try to build a setup project using that extension, I
> get an error saying:
>
> In the preprocessor extension that handles prefix 'somePrefix' while
> trying to call function 'someFunction' and exception has occurred :
> Could not load file or assembly 'ExntensionDependency, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
> system cannot find the file specified.
>
> The file ExtensionDependency.dll is located in the same folder as the
> wix extension Extension.dll. The assembly ExtensionDependency only has
> dependencies to System and System.Core.
>
> I have tried to have both files in a sub directory of the setup project
> and in the Wix/Bin folder. Both without success.
>
> Can I somehow use the dependency without placing it in the GAC?
>
> I'm using v. 3.5.2519.0  with Visual Studio.
>
> Thanks,
> Morten
>
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Managing dependencies to preprocessor extensions

2012-05-10 Thread Morten Lemvigh
I have written a preprocessor extension that has a dependency to another 
assembly. When I try to build a setup project using that extension, I 
get an error saying:

In the preprocessor extension that handles prefix 'somePrefix' while 
trying to call function 'someFunction' and exception has occurred : 
Could not load file or assembly 'ExntensionDependency, Version=1.0.0.0, 
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The 
system cannot find the file specified.

The file ExtensionDependency.dll is located in the same folder as the 
wix extension Extension.dll. The assembly ExtensionDependency only has 
dependencies to System and System.Core.

I have tried to have both files in a sub directory of the setup project 
and in the Wix/Bin folder. Both without success.

Can I somehow use the dependency without placing it in the GAC?

I'm using v. 3.5.2519.0  with Visual Studio.

Thanks,
Morten



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users