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. C#
  4. excutable project

excutable project

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
4 Posts 4 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.
  • M Offline
    M Offline
    masoudshao
    wrote on last edited by
    #1

    I want to know how can I make a c# project excutable so the computer does not need the microst visual studio to open it. just a simple .exe file which can run everywhere.

    D S S 3 Replies Last reply
    0
    • M masoudshao

      I want to know how can I make a c# project excutable so the computer does not need the microst visual studio to open it. just a simple .exe file which can run everywhere.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      If you need to run a .Net application(exe file), you do not need Visual Studio. All you need is the .Net Framework. To be sure that the application runs on the computer without .net framework, just ship the framework along with the set up of your application.

      It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

      1 Reply Last reply
      0
      • M masoudshao

        I want to know how can I make a c# project excutable so the computer does not need the microst visual studio to open it. just a simple .exe file which can run everywhere.

        S Offline
        S Offline
        Saksida Bojan
        wrote on last edited by
        #3

        Look under Build menu. You can chose Build solution. Or you can go even further. Chose batch build and you can build with and withoud debugging information. The exe is builded default in [Project Folder]->[Solution Name]->[Project Name]->[Bin] and there you have folders Debug and release. Not all files are for running. Ignore every file with: [ProjectExe].pdb [ProjectExe].exe.config [ProjectExe].vshost.exe [ProjectExe].vshost.exe.config [ProjectExe].vshost.exe.manifest

        1 Reply Last reply
        0
        • M masoudshao

          I want to know how can I make a c# project excutable so the computer does not need the microst visual studio to open it. just a simple .exe file which can run everywhere.

          S Offline
          S Offline
          senguptaamlan
          wrote on last edited by
          #4

          At first I want to say that you do not need Visual Studio installed on the target machine to execute any .exe created with MS .NET, you just need the .NET framework installed in the target machine. Secondly, I really don't think its possible to build such assembly (.exe or .dll) from .NET, cause it actually breaks the fundamental concept of Microsoft .NET platform.

          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