32 vs. 64-bit versions

90 views
Skip to first unread message

oys...@gmail.com

unread,
Jan 31, 2012, 3:40:27 AM1/31/12
to linqt...@googlegroups.com
Hi Paul,

First of all; great work! Love the linq to excel project!

But I wonder: Why have you split the project into a 32-bit and a 64-bit package? Wouldn't it be better to build it with an "Any CPU" platform profile? Or maybe just add the AnyCpu in addition?

The following additions worked for me (project.build file)


<property name="dir.binAnyCpu" value="${dir.base}\binAnyCpu" />
...
<target name="build" depends="clean, compile, compile64, compileAnyCpu, deleteLog4netXml" />
<target name="publish" depends="test, build, zip, zip64, zipAnyCpu, package, package64, resetNuspecVersion" />
...
<delete dir="${dir.binAnyCpu}" if="${directory::exists(dir.binAnyCpu)}" />
...
<target name="compileAnyCpu" description="compiles the project in AnyCPU mode">
<exec program="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe"
commandline="&quot;${file.project}&quot; /p:Configuration=Release;DocumentationFile=LinqToExcel.xml;Platform=&quot;Any CPU&quot;;OutputPath=&quot;${dir.binAnyCpu}\\&quot;" />
</target>
...
<target name="zipAnyCpu" description="zips the contents of the bin64 folder to the zip.dir64" depends="setVersion">
<zip zipfile="${dir.base}\LinqToExcel_AnyCpu_${publish.version}.zip">
<fileset basedir="${dir.binAnyCpu}">
<include name="**/*" />
</fileset>
</zip>
</target>


Best Regards,
Øystein Garnes

Paul Yoder

unread,
Feb 4, 2012, 8:50:59 PM2/4/12
to linqt...@googlegroups.com, oys...@gmail.com
Hi Øystein,

I thought I had tried setting the target platform to AnyCpu previously, and it didn't work for 64 bit machines.

Thanks for the heads up though. I'll look into some more in the future when I have some time.

Thanks,
Paul
Reply all
Reply to author
Forward
0 new messages