Hi,

first of all, many thanks for your very fast answers. I put some of them 
together since not all went to list.

Am 31.08.2011 17:51, schrieb Philip Sayers:
> What errors are you seeing?
>
> Make sure you are building for x86 and not AnyCPU.
>
> Does this help?
> http://social.msdn.microsoft.com/Forums/en/msbuild/thread/e5900710-9849-4d10
> -aa28-48b734d06bf2

Looks interesting. I'll bookmark this if my lc.exe issue might caused by 
this one.

>
> We compile with msbuild to generate x86 assemblies on x64 hardware/OS just
> fine.
> You'll be missing a setting, flag, argument somewhere.
> Tell us what you see, what are the errors, what is in the build logs?

Am 31.08.2011 17:57, schrieb Shammi Jayaraj:
>
> If you are relying on the visual studio ".project" file, you can set the
> lower version on the project properties page on the just the projects you
> want to and the same goes for the x86 (target platform)...
>
> SJ

Am 31.08.2011 17:58, schrieb Christopher Brandt:
> I'm not sure what the problem is. Are you building on a Win7 64 bit
> machine and that code won't run on a 32 bit Windows box?
>
> I don't think the machine architecture (32 vs. 64 bit) comes into play
> when you're building .net code. The JIT compiler takes care of that part.

Here are some more details.
I'm using latest nant 0.91 alpha 2 and use the solution task with a list 
of project files with PlatformTarget set to x86 as done on our old 32bit 
machine too. And my second try is to use msbuild directly.

Maybe I mixed something up.
First of all I got an error since lc.exe could not find some 3rd party 
assemblies. Second I got warning that the referenced assembly has 
another platform type.
I couldn't dig into the first ne since I don't like silly warnings as 
created by the second one. Where the reason is clear, since 
Framewrk64\vbc.exe will be used so all referenced framework assemblies 
are 64 bit. But I have no idea how to avoid this warning.

Or is this ok and my App will run with 32bit on target machine? Maybe 
I'll check this first tomorrow.

And going with csc/vbc task is not within our focus since this brings 
another layer of file management into our projects.

>
> -----Original Message-----
> From: Dominik Guder [mailto:o...@guder.org]
> Sent: Wednesday, August 31, 2011 11:48 AM
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] Targeting .net 2.0 x86 on x64 machine
>
> Hi folks,
>
> I'm going crazy. I don't have any idea how to achieve my issue:
>
> We are moving to Win7 x64 machines. And some of our older projets must
> be built for .net 2.0 x86.

Again many thanks for your lightning fast help.
So far Dominik


-- 
The answer to the great question of life,
the universe and everything is 42 (Douglas Adams)

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to