Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to configure VS2005 to use 64 bit csc.exe

How to configure VS2005 to use 64 bit csc.exe

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studiotutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raks35
    wrote on last edited by
    #1

    Hi All, I am writing a 64 bit class library hence I assume I need to use 64 bit compiler ( csc.exe ) I would like to know how can I configure Visual Studio 2005 so that csc.exe present in C:\WINDOWS\Microsoft.NET\Framework64\ is used instead of the csc.exe present in C:\WINDOWS\Microsoft.NET\Framework\ which i assume is the 32 bit compiler - Rakesh

    M M 2 Replies Last reply
    0
    • R raks35

      Hi All, I am writing a 64 bit class library hence I assume I need to use 64 bit compiler ( csc.exe ) I would like to know how can I configure Visual Studio 2005 so that csc.exe present in C:\WINDOWS\Microsoft.NET\Framework64\ is used instead of the csc.exe present in C:\WINDOWS\Microsoft.NET\Framework\ which i assume is the 32 bit compiler - Rakesh

      M Offline
      M Offline
      Michael P Scherer
      wrote on last edited by
      #2

      I believe you can use the build configuration manager to change whether to compile as a 32-bit program, a 64-bit one, or as one that can go both ways.

      www.socoder.net

      1 Reply Last reply
      0
      • R raks35

        Hi All, I am writing a 64 bit class library hence I assume I need to use 64 bit compiler ( csc.exe ) I would like to know how can I configure Visual Studio 2005 so that csc.exe present in C:\WINDOWS\Microsoft.NET\Framework64\ is used instead of the csc.exe present in C:\WINDOWS\Microsoft.NET\Framework\ which i assume is the 32 bit compiler - Rakesh

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        The output MSIL code is identical whether you select MSIL (AnyCpu), x86 or x64 output. The only difference is a flag in the header stating which platform it was compiled for. EXE files (I'm not sure about DLLs) carry a PE64 header indicating it can only be run on the 64-bit OS. The actual processor-specific code is compiled at runtime by the JIT compiler. A class library marked MSIL (AnyCpu) can be loaded into a 32-bit or a 64-bit process. The only reason to mark it as one of the others is if you've written any code which assumes the size of a pointer, or uses any APIs that are different between the two platforms. The only difference between the two versions of csc.exe is that the version in Framework64 is itself a 64-bit executable. Either version can produce code marked with any of the three platform types.

        DoEvents: Generating unexpected recursion since 1991

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups