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. Assembly

Assembly

Scheduled Pinned Locked Moved C#
csharptutorialquestionlearning
11 Posts 5 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.
  • J Offline
    J Offline
    Jinwah
    wrote on last edited by
    #1

    Can anyone suggest? I have C# Standard edition, which under new projects does not provide the ability to start an assembly project. Can it be done without? That is the compiler must be capable of generating the Assembly? If the answer is yes what I am trying to do is just add some forms to an assembly. Then I want to load that assembly into my application and display the forms the assembly contains. Can anyone point me to a good article on how to do this?? I have the Wrox press Pro C# book but the Assembly section doesn't make it clear how to achieve this. TIA Luke

    S L 2 Replies Last reply
    0
    • J Jinwah

      Can anyone suggest? I have C# Standard edition, which under new projects does not provide the ability to start an assembly project. Can it be done without? That is the compiler must be capable of generating the Assembly? If the answer is yes what I am trying to do is just add some forms to an assembly. Then I want to load that assembly into my application and display the forms the assembly contains. Can anyone point me to a good article on how to do this?? I have the Wrox press Pro C# book but the Assembly section doesn't make it clear how to achieve this. TIA Luke

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      I can't figure out why you couldn't do things such like :

      csc /out:myAssembly.exe myCode.cs
      csc /out:myCodeLibrary.dll /t:library myCode.cs

      Using such assembly in your code depends on the environment : - from the IDE, you just add a reference - from code, you dynamically load the assembly thanks to the *.Assembly namespace - from configuration, you may create either a manifest file (versioning), or a config file (targetting specific outside assemblies), depending on what you intend to do. I would suggest these two links : appdomain[^], assemblies[^].


      if you start putting in too manay features, it no longer remains useful for beginners quote in a CP article comment, shiraz baig

      1 Reply Last reply
      0
      • J Jinwah

        Can anyone suggest? I have C# Standard edition, which under new projects does not provide the ability to start an assembly project. Can it be done without? That is the compiler must be capable of generating the Assembly? If the answer is yes what I am trying to do is just add some forms to an assembly. Then I want to load that assembly into my application and display the forms the assembly contains. Can anyone point me to a good article on how to do this?? I have the Wrox press Pro C# book but the Assembly section doesn't make it clear how to achieve this. TIA Luke

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Jinwah wrote: I have C# Standard edition, which under new projects does not provide the ability to start an assembly project. Assembly = class library :) So either chose 1. class library or 2. windows control library. Cheers Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

        J 1 Reply Last reply
        0
        • L leppie

          Jinwah wrote: I have C# Standard edition, which under new projects does not provide the ability to start an assembly project. Assembly = class library :) So either chose 1. class library or 2. windows control library. Cheers Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

          J Offline
          J Offline
          Jinwah
          wrote on last edited by
          #4

          I am totally new to the VS IDE, I have always used the Borland IDE's. Under New > Projects I have 4 options Windows App Web App Web Service Console App Under New > File There are several options not one called Class Library. I know this is a lame question but I'm just not used to the VS IDE. So how do I start my new class library just add a new Text file and code there? There is no visible option I can find for 1. class library or 2. windows control library. TIA (I know I sound really green, but unfamiliarity is the problem, coding is no trouble) Luke

          L 1 Reply Last reply
          0
          • J Jinwah

            I am totally new to the VS IDE, I have always used the Borland IDE's. Under New > Projects I have 4 options Windows App Web App Web Service Console App Under New > File There are several options not one called Class Library. I know this is a lame question but I'm just not used to the VS IDE. So how do I start my new class library just add a new Text file and code there? There is no visible option I can find for 1. class library or 2. windows control library. TIA (I know I sound really green, but unfamiliarity is the problem, coding is no trouble) Luke

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Jinwah wrote: There are several options not one called Class Library. O ^%^% :laugh: Thats pretty lame. Jinwah wrote: I know this is a lame question but I'm just not used to the VS IDE. So how do I start my new class library just add a new Text file and code there? Basically start an empty project, then add a class, by rightclicking in the solution explorer. Now, rightclick the project in solution explorer, goto properties. Select output type as class library, once you click apply, you will see the extension becomes ".dll" and you can now reference that assembly, once compiled :) Hope this helps :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

            J 1 Reply Last reply
            0
            • L leppie

              Jinwah wrote: There are several options not one called Class Library. O ^%^% :laugh: Thats pretty lame. Jinwah wrote: I know this is a lame question but I'm just not used to the VS IDE. So how do I start my new class library just add a new Text file and code there? Basically start an empty project, then add a class, by rightclicking in the solution explorer. Now, rightclick the project in solution explorer, goto properties. Select output type as class library, once you click apply, you will see the extension becomes ".dll" and you can now reference that assembly, once compiled :) Hope this helps :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

              J Offline
              J Offline
              Jinwah
              wrote on last edited by
              #6

              :-O Hanging head with embarassment... Thanks for that, still have a problem though. The project properties sheet does not have an Output Type field. I found the help article but VS isn't displaying as the help file describes. Are you sure this isn't a limitation because I have the standard edition? TIA Luke

              J 1 Reply Last reply
              0
              • J Jinwah

                :-O Hanging head with embarassment... Thanks for that, still have a problem though. The project properties sheet does not have an Output Type field. I found the help article but VS isn't displaying as the help file describes. Are you sure this isn't a limitation because I have the standard edition? TIA Luke

                J Offline
                J Offline
                James T Johnson
                wrote on last edited by
                #7

                Jinwah wrote: Are you sure this isn't a limitation because I have the standard edition? Thats exactly why you don't have that option. That is the limitation of Visual C# Standard (since they can't actually cripple the compiler since it is used by ASP.NET)

                James Sig code stolen from David Wulff

                L J 2 Replies Last reply
                0
                • J James T Johnson

                  Jinwah wrote: Are you sure this isn't a limitation because I have the standard edition? Thats exactly why you don't have that option. That is the limitation of Visual C# Standard (since they can't actually cripple the compiler since it is used by ASP.NET)

                  James Sig code stolen from David Wulff

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #8

                  James T. Johnson wrote: Thats exactly why you don't have that option. That is the limitation of Visual C# Standard (since they can't actually cripple the compiler since it is used by ASP.NET) Thats a bit stupid X| Can you actually compile a project on the Learning edition? :wtf: Cheers :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                  1 Reply Last reply
                  0
                  • J James T Johnson

                    Jinwah wrote: Are you sure this isn't a limitation because I have the standard edition? Thats exactly why you don't have that option. That is the limitation of Visual C# Standard (since they can't actually cripple the compiler since it is used by ASP.NET)

                    James Sig code stolen from David Wulff

                    J Offline
                    J Offline
                    Jinwah
                    wrote on last edited by
                    #9

                    Are you suggesting that it is still possible, i.e. the IDE doesn't provide the option but the good ole compiler will still compile it, if I go the long way and write the assembly source code. :confused: I'm just trying to learn I don't want to fork out for the Pro edition just to create an assembly. Especially as my assembly is just going to contain some forms, nothing fancy. Thanks Once Again To All ;)

                    E 1 Reply Last reply
                    0
                    • J Jinwah

                      Are you suggesting that it is still possible, i.e. the IDE doesn't provide the option but the good ole compiler will still compile it, if I go the long way and write the assembly source code. :confused: I'm just trying to learn I don't want to fork out for the Pro edition just to create an assembly. Especially as my assembly is just going to contain some forms, nothing fancy. Thanks Once Again To All ;)

                      E Offline
                      E Offline
                      ez2
                      wrote on last edited by
                      #10

                      I have the standard addition as well and ran into the same problems you have. However the ide is fairly customizable and I was able to add new wizards to create both a class library and the application config files (which are not present in the standard edition). In other words, when I select "add new item" from solution explorer a template is their for the creation of a class library. It's pretty simple. Checkout the following article. Just modify the template for your needs. http://softwaredev.earthweb.com/msnet/article/0,,10839\_1463201\_2,00.html If you need additional help, send me an email. I've got templates already created.

                      L 1 Reply Last reply
                      0
                      • E ez2

                        I have the standard addition as well and ran into the same problems you have. However the ide is fairly customizable and I was able to add new wizards to create both a class library and the application config files (which are not present in the standard edition). In other words, when I select "add new item" from solution explorer a template is their for the creation of a class library. It's pretty simple. Checkout the following article. Just modify the template for your needs. http://softwaredev.earthweb.com/msnet/article/0,,10839\_1463201\_2,00.html If you need additional help, send me an email. I've got templates already created.

                        L Offline
                        L Offline
                        leppie
                        wrote on last edited by
                        #11

                        I thought someone would have come up with something :) Probably as easy as copying the wizards probably. Not that I ever use any! :laugh: Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                        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