Thanks for these notes.  Moving to CLR v2.0 was an interesting struggle 
and I don't think we have all of our build dependencies worked out.  The 
AssemblyInfo.cs is totally one of those files that I've messed up.  I've 
been struggling with the freaking keys for a while (keeping the private 
"protected" and the public "correct").  I'm sorry you got caught in the 
middle.  I'll look into this.

One note that I don't think I've ever made clear in the past.  The "src" 
zip files do not have the compiled binaries that we are dependent on 
because they take up too much space in the weekly releases (same reason 
we don't push the .pdbs).  That means you will not be able to easily 
build using the "src" zip file (have to download the binaries 
yourself).  The "src" zip files are really intended for easy browsing of 
the code if you're just looking for changes.

If you enlist in CVS you should get all of the files and the builds 
*should* go much smoother.  That is what our build machine is based on 
today.  It just happens to have all the private keys I've ever used so I 
don't always catch the mistakes noted above.

Rob McCready wrote:
>  
>  
> I needed to create a custom WiX build (based on 3.0.3617.0) to fix two
> bugs (1591591 & 1653864) that were plaguing us. We have been using WiX
> for over a year on our project and other than those two bugs we have
> been really happy with the project.
>  
> I have worked with other open source projects before and it surprised
> me when I had so much trouble just getting the source to compile. Maybe
> I am crazy or I completely missed a vital readme document but I searched
> high and low and didn't find any.
>
> The good news is I did finally get a working build, and the fixes 
> mentioned
> in the bug comments both worked. Life is good again. :)
> Here are the steps I had to do to make a working build, maybe they will
> help others. If needed I would be willing to help update WiX documentation
> and build process stuff, but I can't find docs on submitting changes 
> either. ;)
>
> 1) Several DLLs are needed to build but are not part of the source tree.
> I did not find any documentation about this. I did see a mention of it
> in a WiX-users email somewhere but I can't find it again. Unless there
> is a problem with redistribution rights I can't see why they are not in
> the tree already.
>  
>   src\light\bin:
>     darice.cub
>     mergemod.cub
>     mergemod.dll
>    
>   src\pyro\bin:
>     mspatchc.dll
>    
>   Release\debug:
>   Release\ship:
>     ProjectAggregator2.msi
>  
>  
> 2) A sibling folder tree to the wix-sources tree must be created
>  
>   dtools\bin\x86\Nant:
>     Nant.Core.dll
>  
>   I am guessing this is the location on one of the developer's machines?
> Probably would be better to either add this DLL to the source tree or 
> detect
> its location relative to the installed Nant binaries at build time.
>  
>
> 3) This drove me completely insane for over a day.
>  
>   src\votive\sconce\Properties\AssemblyInfo.cs
>  
>   This file is different than what is in CVS, and seems to reference a 
> PublicKey
> that is not from the publickey_wix.snk file. This causes Votive2005 to 
> fail with
> errors that are really not clear.
>  
>   Replace the InternalsVisibleTo lines and things get happy:
>  
> [assembly: InternalsVisibleTo("votive2005, 
> PublicKey=0024000004800000940000000
> 602000000240000525341310004000001000100d94aacc567fbd9fd7d60e04aca0817b2059b62d
> 69630f24a07d699c4d5363ba24083a8ac9433b62c04cc6016bf7d528033ce655c1a0ee1b58f9ce
> c3ad603525c9ca5319518ad2aeecf1a1263727e246db0603b72f2d49e65dc21a0e4d5ab65b8467
> 59d5f49529014b8766cb5a8b8daf987f25a49839dd3e538954d3a4ed938c4")]
> [assembly: InternalsVisibleTo("votive2008, 
> PublicKey=0024000004800000940000000
> 602000000240000525341310004000001000100d94aacc567fbd9fd7d60e04aca0817b2059b62d
> 69630f24a07d699c4d5363ba24083a8ac9433b62c04cc6016bf7d528033ce655c1a0ee1b58f9ce
> c3ad603525c9ca5319518ad2aeecf1a1263727e246db0603b72f2d49e65dc21a0e4d5ab65b8467
> 59d5f49529014b8766cb5a8b8daf987f25a49839dd3e538954d3a4ed938c4")]
>  
>   My guess is that the source zip was created after the file was 
> modified to use
> the key that the binaries/msi are generated with and that is not the 
> same key as
> is distributed with the sources.
>  
>
> 4) src\Setup\Votive.wxs references the Sconce2008/Votive2008 DLLs even 
> though
> they were not built since I do not have VS2008 installed. I deleted 
> the contents
> of the two 2008 components and made the component itself 
> KeyPath="yes". Complete
> kludge, but it worked.
>  
>  
>
>  
>
> ------------------------------------------------------------------------
> Don't get caught with egg on your face. Play Chicktionary! Check it 
> out! 
> <http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to