bovlk
asked on
Make aspnet_compiler use 3.5 framework
Hello,
I have an app that uses the MSBuild task, which calls aspnet_compiler which then spawns csc.exe. On my local machine, which is WinXP SP3 with .NET 2.0 & 3.5 & MS Visual Studio 2008, aspnet_compiler correctly spawns csc.exe from the 3.5 framework. However, on the production server, which is Win 2008 with both .NET 2.0 & 3.5 installed, it spawns csc.exe v 2.0, which gives a lot of compile errors. Note that I'm just running the aspnet_compiler from an NANT script to compile & merge the app to a DLL to be deployed later, not deploying it to the IIS. Is there anything I can do for using the 3.5 framework? Also, I looked into IIS config and the 3.5 framework is not listed there at all as an option to use. There's just 2.0 or no managed code.
I have an app that uses the MSBuild task, which calls aspnet_compiler which then spawns csc.exe. On my local machine, which is WinXP SP3 with .NET 2.0 & 3.5 & MS Visual Studio 2008, aspnet_compiler correctly spawns csc.exe from the 3.5 framework. However, on the production server, which is Win 2008 with both .NET 2.0 & 3.5 installed, it spawns csc.exe v 2.0, which gives a lot of compile errors. Note that I'm just running the aspnet_compiler from an NANT script to compile & merge the app to a DLL to be deployed later, not deploying it to the IIS. Is there anything I can do for using the 3.5 framework? Also, I looked into IIS config and the 3.5 framework is not listed there at all as an option to use. There's just 2.0 or no managed code.
In the VS IDE go to the Website menu and select "Start Options" in the new dialog click on the 'Build' to the left and then you will see drop downs that let you choose the framework.
Oh, I missed something key in your post. The reason 3.5 is not visible in IIS on the server is that the .Net Framework 3.5 runtimes are not installed on the web server.
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=333325fd-ae52-4e35-b531-508d977d32a6&displaylang=en
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=333325fd-ae52-4e35-b531-508d977d32a6&displaylang=en
ASKER
No no, the 3.5 SP1 framework is installed at the server, as the appropriate control panel says. The files are present in the appropriate subdir of c:\windows. The option you talk about is set in my project and the project compiles just fine on my local XP. But it does not compile on the server. Forgot to mention that there's no VS on the server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It was the actual reason for this problem