Hi,
Light.exe works well with 1.1 .net environment. but when the code is
converted to 2.0 net environment the light cannot work on 2.0 assemblies. in
order to make light.exe to work add light.exe.config file with this
information:
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
-->
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>
now run light.exe on 2.0 net assembly files it will run successfully and the
MSI will be created.
Thanks & Regards,
Jyothi Gummadi
John Vottero wrote:
>
> Nobody wants to write code that they know they will have to go fix when
> the CLR is upgraded. The goal is to write code that will work with all
> new versions of the CLR without touching it.
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rob
> Mensching
> Sent: Friday, December 02, 2005 1:01 PM
> To: 'Kinny Kun'; [EMAIL PROTECTED]
> Cc: Frederik Carlier; [email protected]
> Subject: RE: [WiX-users] RE: CLR 2.0 assembly and the gac
>
>
>
> I'm not aware of anyway to do what you are asking but if someone
> finds one, that would be great. Honestly, though, how often do you plan
> to change your CLR version? When you do update the CLR version
> light.exe will fail with a pretty decent error message (now I think)
> saying that it can't load the new assemblies because the CLR versions
> aren't aligned.
>
>
>
> This just doesn't seem like that huge of an issue to me.
> Annoying yes... but upgrading CLR versions isn't something I think
> anybody does lightly.
>
>
>
>
> ________________________________
>
>
> From: Kinny Kun [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 01, 2005 5:53 PM
> To: [EMAIL PROTECTED]
> Cc: Frederik Carlier; [email protected]
> Subject: Re: [WiX-users] RE: CLR 2.0 assembly and the gac
>
>
>
> So let said I'm now running framework version 2.0.50215 and I
> specified in the config file.
>
> <requiredRuntime version="v2.0.50215"/>
> Then later when framework version 2.1.0000 came out. Then my
> code will break because the version is different.
>
> Is there any work around for the issue above?
>
> The reason I want to handle this case is I created a program to
> build msi using Wix programmatically, and I don't want to have something
> that I know it will break in the future.
>
> Any suggestion?
>
>
>
> Thanks alot. Any help is appreciated.
>
>
> On 12/1/05, Rob Mensching <[EMAIL PROTECTED]> wrote:
>
> AFAIK, that isn't supported. You can however list several
> "requiredRuntime" elements to support many different versions. We need
> to add that information to the light.exe.config file now that CLR 2.0
> has shipped.
>
>
>
>
> ________________________________
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Kinny Kun
> Sent: Thursday, December 01, 2005 4:39 PM
> To: Frederik Carlier
> Cc: [email protected]
> Subject: Re: [WiX-users] RE: CLR 2.0 assembly and the gac
>
>
>
> Thanks for the input, but I have another question regarding to
> the configuration file below. The code below, it only work for that
> particular version, " v2.0.50215". How about I want to support future
> versions? In that case, I can't hard coded the version. How to handle if
> I want to support 2.0 or above?
>
>
>
> Many thanks.
>
>
>
> On 8/10/05, Frederik Carlier <
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> > wrote:
>
> Kinny,
>
> You should create a file named light.exe.config with the
> following
> contents (for .NET Framework 2.0 Beta 2):
>
> <?xml version =" 1.0"?>
> <configuration>
> <startup>
> <requiredRuntime version="v2.0.50215"/>
> </startup>
> </configuration>
>
> This will cause light to be loaded under version 2.0 of the .NET
> framework. That version can load your assembly.
>
> I hope it helps,
>
> Frederik
>
> -----Original Message-----
> From: Kinny Kun [mailto: [EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:36 AM
> To: [email protected]
> Subject: [WiX-users] RE: CLR 2.0 assembly and the gac
>
> I encountered the same problem, I'm trying to register .Net 2.0
> asseblies into the GAC and getting error with light.exe.
>
> fatal error LGHT0006: Invalid assembly file "C:\test.dll".
> Please
> ensure this is a valid assembly file and that the user has the
> appropriate access rights to this file.
>
> Can anyone provide an example or sample code that will
> accomplish the
> above task?
>
> Thanks alot,
> Kinny
>
>
>
> -----Original Message-----
> From: Rob Mensching <[EMAIL PROTECTED]>
> RE: CLR 2.0 assembly and the gac
> 2005-04-04 08:22
> By default the WiX toolset cannot process CLR 2.0 assemblies
> because WiX
> runs in the 1.1 runtime and that can"t load 2.0 assemblies.
> There are
> two
> ways around this:
>
> 1. Add to the light.exe.manifest telling the 1.1 runtime to try
> and
> load
> assemblies from 2.0. I"ve heard rumors this works. If you
> can"t find
> the
> magical incantation to get this working, I"ll ask around.
> Someone got
> this
> working.
>
> 2. Specify all of the attributes using the AssemblyName
> attribute.
> This is
> a pain to code, but is guaranteed to work (once you get the code
>
> right).
>
> When Beta2 hits the streets we"ll look at making this more
> straight-forward.
> We (obviously) haven"t done a lot of work to make things work
> for
> Beta1.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Stephane
> Sent: Monday, April 04, 2005 8:12 AM
> To: [EMAIL PROTECTED]
> Subject: [WiX-users] CLR 2.0 assembly and the gac
>
> Hi,
>
> I"m trying to register a .net 2.0 assembly into the gac, like
> this:
>
> <Component Id="Authorization"
> Guid="CC57DA88-DDCC-4713-A008-1F8E46821FC9">
> <File Id="Authorization" Name="Authoriz.dll"
> LongName="ACVCSC.ApplicationBlocks.Authorization.dll" DiskId="1"
>
> src="C:\BuildOutput\ACVCSC.ApplicationBlocks.Authorization.dll"
> KeyPath="yes" Assembly=".net" ProcessorArchitecture="msil"/>
> </Component>
>
> But I keep getting the following error with light.exe:
> fatal error LGHT0006: Invalid assembly file
> "C:\BuildOutput\ACVCSC.ApplicationBlocks.Authorization.dll".
> Please
> ensure this is a valid assembly file and that the user has the
> appropriate access rights to this file.
>
> I"m using wix v2.0.2722.0 and the .NET framework that came with
> VS2005
> beta1
>
> Any idea what I"m doing wrong ?
>
> Thanks,
>
> Stephane Tombeur
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
> real
> users.
> Discover which products truly live up to the hype. Start reading
> now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> WiX-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference &
> EXPO
> September 19-22, 2005 * San Francisco, CA * Development
> Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing &
> QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-RE%3A-CLR-2.0-assembly-and-the-gac-tf657609.html#a6905213
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users