Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I want to genarate two different builds(x64 and x86) from my asp.net application by right clicking on the solution explorer which provides the build option using post build event command line from solution explorer properties.
I have seen the options for x64 and x86 from Configuration Manager of my asp.net application. I have third party dll(sharpsvn.dll) in my application which is for x86 and x64 also(under two different folders).
My question is whether it is possible to generate two builds one for x64 and another for x86 having the third party dlls as required for both from build option simultaneously.

Thank You
Mahammad Samim
Posted
Updated 25-Jan-10 0:05am
v2

mahammad_09 wrote:
My question is whether it is possible to generate two builds one for x64 and another for x86 having the third party dlls as required for both from build option simultaneously.


I doubt it. A build builds one version.
 
Share this answer
 
Hi Christian

Can you please give me some idea regarding the following scenario.
I generated a build using visual studio post build event command line.
The code is as below.
if $(ConfigurationName) == Release C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_compiler -v / -f -u -p "$(ProjectDir)\" "$(SolutionDir)ApexBuild\Web"
I used the path for 64 bit of the 3rd party dll(sharpsvn.dll) by modifying the dll path from .csproj and having the Platform Target as x64 from configuration manager.
If I use the build mode as Release, it never allows the build to be generated. It always says, "Bad Image exception, could not load sharpsvn.dll.....", whic means the above build code is unable to run with 64 bit sharpsvn.dll.
But if I use the build mode as Debug. It generates the binaries in bin->x64 folder(there is no if checking in debug mode). And, if I try to run a new build with the x64 binaries in bin folder, "incoming request does not match any route" problem occurs.

Can you tell me why is this problem coming because it is running well in IIS7 with the build generated from "Any CPU" option and having the default binaries(not x64) generated in bin folder?

Thank you
 
Share this answer
 
You can build for one environment at a time. Select x86, and build. Then, select x64, and build.

When you look in the bin/debug (or release) folder, you'll see two appropriately named sub-folders "x86" and "x64".
 
Share this answer
 
mahammad_09 wrote:
My question is whether it is possible to generate two builds one for x64 and another for x86 having the third party dlls as required for both from build option simultaneously.


When I build in C# 2008, it builds both the debug and release version at the same time, so I would think x86/x64 would be possible too... not sure how though.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900