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. Application Properties?

Application Properties?

Scheduled Pinned Locked Moved C#
csharpquestioncssvisual-studioannouncement
5 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.
  • M Offline
    M Offline
    max29297
    wrote on last edited by
    #1

    When you right click on an .exe and go to the Version tab (I think that's what it's called), There are several properties of the application that are visible; they are:

    • File Version
    • Description
    • Copyright
    • Assembly Version
    • Internal Name
    • Language
    • Original File Name
    • Product Version

    Are there options in csc.exe that let you alter these? I couldn't find any when I did csc -?. Oh yeah, one more thing; When I want to open a file with a program I just created, I right-click the file and press "Open With...". My program is shown in the dialog box that pops up, but all you see is its icon (the default icon) with no text to the right. How do I set the text that is supposed to be there?

    ----- *** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***

    J L 2 Replies Last reply
    0
    • M max29297

      When you right click on an .exe and go to the Version tab (I think that's what it's called), There are several properties of the application that are visible; they are:

      • File Version
      • Description
      • Copyright
      • Assembly Version
      • Internal Name
      • Language
      • Original File Name
      • Product Version

      Are there options in csc.exe that let you alter these? I couldn't find any when I did csc -?. Oh yeah, one more thing; When I want to open a file with a program I just created, I right-click the file and press "Open With...". My program is shown in the dialog box that pops up, but all you see is its icon (the default icon) with no text to the right. How do I set the text that is supposed to be there?

      ----- *** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***

      J Offline
      J Offline
      J 0
      wrote on last edited by
      #2

      max29297 wrote:

      When you right click on an .exe and go to the Version tab (I think that's what it's called), There are several properties of the application that are visible; they are: * File Version * Description * Copyright * Assembly Version * Internal Name * Language * Original File Name * Product Version

      You can change those values in your AssemblyInfo.cs (or .vb) file. If you look in your solution explorer, expand the "Properties" folder, you should find it there.

      M 1 Reply Last reply
      0
      • J J 0

        max29297 wrote:

        When you right click on an .exe and go to the Version tab (I think that's what it's called), There are several properties of the application that are visible; they are: * File Version * Description * Copyright * Assembly Version * Internal Name * Language * Original File Name * Product Version

        You can change those values in your AssemblyInfo.cs (or .vb) file. If you look in your solution explorer, expand the "Properties" folder, you should find it there.

        M Offline
        M Offline
        max29297
        wrote on last edited by
        #3

        I don't think you read my sig ;) Thanks though, I have some other people's AssemblyInfo.cs files from downloading projects from articles. I can figure it out from there

        ----- *** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***

        L 1 Reply Last reply
        0
        • M max29297

          I don't think you read my sig ;) Thanks though, I have some other people's AssemblyInfo.cs files from downloading projects from articles. I can figure it out from there

          ----- *** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi Max, the AssemblyInfo.cs file gets generated automatically by Visual Studio, but you can create your own, give it a different name, and/or merge it with other files. Here is a typical example:

          using System.Reflection;
          using System.Runtime.CompilerServices;
          using System.Runtime.InteropServices;

          // General Information about an assembly is controlled through the following
          // set of attributes. Change these attribute values to modify the information
          // associated with an assembly.
          [assembly: AssemblyTitle("TrayIconBuster")]
          [assembly: AssemblyDescription("")]
          [assembly: AssemblyConfiguration("")]
          [assembly: AssemblyCompany("")]
          [assembly: AssemblyProduct("TrayIconBuster")]
          [assembly: AssemblyCopyright("Copyright © 2007")]
          [assembly: AssemblyTrademark("")]
          [assembly: AssemblyCulture("")]

          // Setting ComVisible to false makes the types in this assembly not visible
          // to COM components. If you need to access a type in this assembly from
          // COM, set the ComVisible attribute to true on that type.
          [assembly: ComVisible(false)]

          // The following GUID is for the ID of the typelib if this project is exposed to COM
          [assembly: Guid("fbd90b31-54df-4581-b476-c5fd53c9d279")]

          // Version information for an assembly consists of the following four values:
          //
          // Major Version
          // Minor Version
          // Build Number
          // Revision
          //
          [assembly: AssemblyVersion("1.0.0.0")]
          [assembly: AssemblyFileVersion("1.0.0.0")]

          :)

          Luc Pattyn [My Articles] [Forum Guidelines]

          1 Reply Last reply
          0
          • M max29297

            When you right click on an .exe and go to the Version tab (I think that's what it's called), There are several properties of the application that are visible; they are:

            • File Version
            • Description
            • Copyright
            • Assembly Version
            • Internal Name
            • Language
            • Original File Name
            • Product Version

            Are there options in csc.exe that let you alter these? I couldn't find any when I did csc -?. Oh yeah, one more thing; When I want to open a file with a program I just created, I right-click the file and press "Open With...". My program is shown in the dialog box that pops up, but all you see is its icon (the default icon) with no text to the right. How do I set the text that is supposed to be there?

            ----- *** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            Hi Max, to add a file type with description, use Windows Explorer, Tools, Folder Options, File Types, New, Advanced, and enter the required information. BTW: you can add/remove/changeorder the fields shown in Windows Explorer through View, Choose Details. Some of that info is fetched from the file itself, such as "program version number" for an .EXE, or "date photo taken" for a .JPEG file (from a camera that provides such info). :)

            Luc Pattyn [My Articles] [Forum Guidelines]

            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