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. The Lounge
  3. not sure if this is a programming question but....

not sure if this is a programming question but....

Scheduled Pinned Locked Moved The Lounge
questioncsharpannouncement
16 Posts 6 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.
  • E Offline
    E Offline
    eyeseetee
    wrote on last edited by
    #1

    As far as I know there are a few ways to update c# code. The way I do it is to find the file that needs to be changed, make the change and then just click Save. However other people make a change to the file and then build the app so it creates a new dll etc. Is there a better way to do it? Is the name for either of these two ways? thanks (Hope this makes sense) :)

    M E M 3 Replies Last reply
    0
    • E eyeseetee

      As far as I know there are a few ways to update c# code. The way I do it is to find the file that needs to be changed, make the change and then just click Save. However other people make a change to the file and then build the app so it creates a new dll etc. Is there a better way to do it? Is the name for either of these two ways? thanks (Hope this makes sense) :)

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      eyeseetee wrote:

      Hope this makes sense

      No. because to be able to build your app (or dll), you HAVE to save the file back to disk. Other than that, I don't know what you're talking about.

      E 1 Reply Last reply
      0
      • E eyeseetee

        As far as I know there are a few ways to update c# code. The way I do it is to find the file that needs to be changed, make the change and then just click Save. However other people make a change to the file and then build the app so it creates a new dll etc. Is there a better way to do it? Is the name for either of these two ways? thanks (Hope this makes sense) :)

        E Offline
        E Offline
        Ennis Ray Lynch Jr
        wrote on last edited by
        #3

        If you have your IDE setup to save on build you will notice that is why a lot of Dev's build to save. This allows small syntax errors to be fixed rapidly. I suppose you could call the opposing approaches optimistic and lazy. Since building to save is optimistic in assuming build success and lazy means only do work when needed so the build is not performed until the dev actually wants to build, choosing instead to click save.

        Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
        Most of this sig is for Google, not ego.

        1 Reply Last reply
        0
        • E eyeseetee

          As far as I know there are a few ways to update c# code. The way I do it is to find the file that needs to be changed, make the change and then just click Save. However other people make a change to the file and then build the app so it creates a new dll etc. Is there a better way to do it? Is the name for either of these two ways? thanks (Hope this makes sense) :)

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          eyeseetee wrote:

          The way I do it is to find the file that needs to be changed, make the change and then just click Save.

          Without building to see if your code compiles? Without running the app or unit tests or whatever to make sure you didn't break something? I would fire you from my team. :) Marc

          Thyme In The Country Interacx My Blog

          E 1 Reply Last reply
          0
          • M Maximilien

            eyeseetee wrote:

            Hope this makes sense

            No. because to be able to build your app (or dll), you HAVE to save the file back to disk. Other than that, I don't know what you're talking about.

            E Offline
            E Offline
            eyeseetee
            wrote on last edited by
            #5

            OK, here is a step by step of me updating a file 1. Open the project folder through VWD 2005 2. Find file, make change and then hit CTRL S 3. Change is made 4. Live project reflects change I havent built the app Understand what I am saying now?

            C 1 Reply Last reply
            0
            • M Marc Clifton

              eyeseetee wrote:

              The way I do it is to find the file that needs to be changed, make the change and then just click Save.

              Without building to see if your code compiles? Without running the app or unit tests or whatever to make sure you didn't break something? I would fire you from my team. :) Marc

              Thyme In The Country Interacx My Blog

              E Offline
              E Offline
              eyeseetee
              wrote on last edited by
              #6

              Marc Clifton wrote:

              I would fire you from my team.

              I have a test version of the software so I make all changes through there and test first.

              M 1 Reply Last reply
              0
              • E eyeseetee

                Marc Clifton wrote:

                I would fire you from my team.

                I have a test version of the software so I make all changes through there and test first.

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #7

                eyeseetee wrote:

                I have a test version of the software so I make all changes through there and test first.

                ok, then you do build the dll. So I'm not sure what you're asking. I do tend to save the file frequently when I make changes, in case the IDE crashes, the power goes out, the OS crashes, or some other act of god. But if it's a small change, I just rebuild, as I've set the IDE to save on build. Marc

                Thyme In The Country Interacx My Blog

                E 1 Reply Last reply
                0
                • M Marc Clifton

                  eyeseetee wrote:

                  I have a test version of the software so I make all changes through there and test first.

                  ok, then you do build the dll. So I'm not sure what you're asking. I do tend to save the file frequently when I make changes, in case the IDE crashes, the power goes out, the OS crashes, or some other act of god. But if it's a small change, I just rebuild, as I've set the IDE to save on build. Marc

                  Thyme In The Country Interacx My Blog

                  E Offline
                  E Offline
                  eyeseetee
                  wrote on last edited by
                  #8

                  But when I say I test I simple save the file in the test project because I know the syntax is correct. However in an old job I worked at I used to have to build the app in Visual Studio and get the dll and copy across to another folder and upload to the server that way using Dreamweaver. Therefore the .cs files where compiled into a dll and uploaded to the server that way. However the way I am doing it at the moment using VWD 2005 is just editing the file live on the server and therefore not uploading a dll file, so which way is best? This does make sense in my head but is hard to transform into written word!! :)

                  E 1 Reply Last reply
                  0
                  • E eyeseetee

                    But when I say I test I simple save the file in the test project because I know the syntax is correct. However in an old job I worked at I used to have to build the app in Visual Studio and get the dll and copy across to another folder and upload to the server that way using Dreamweaver. Therefore the .cs files where compiled into a dll and uploaded to the server that way. However the way I am doing it at the moment using VWD 2005 is just editing the file live on the server and therefore not uploading a dll file, so which way is best? This does make sense in my head but is hard to transform into written word!! :)

                    E Offline
                    E Offline
                    Ennis Ray Lynch Jr
                    wrote on last edited by
                    #9

                    The WebSite project setting MS created is the worst design ever, allowing code to be deployed without being built first. I don't like it.

                    Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                    Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
                    Most of this sig is for Google, not ego.

                    E 1 Reply Last reply
                    0
                    • E Ennis Ray Lynch Jr

                      The WebSite project setting MS created is the worst design ever, allowing code to be deployed without being built first. I don't like it.

                      Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                      Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
                      Most of this sig is for Google, not ego.

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

                      So, hopefully you can answer my question then. I am saving and editing files directly from the server through VWD without building the files or compiling a dll. What is the better way to do it? Is there a good article out there on the different methods on editing .net files because I cant find one.

                      E 1 Reply Last reply
                      0
                      • E eyeseetee

                        So, hopefully you can answer my question then. I am saving and editing files directly from the server through VWD without building the files or compiling a dll. What is the better way to do it? Is there a good article out there on the different methods on editing .net files because I cant find one.

                        E Offline
                        E Offline
                        Ennis Ray Lynch Jr
                        wrote on last edited by
                        #11

                        Yeah, don't do it. Download the Web Application project template from MS and use that instead and then just use traditional deployment. Personally, I install IIS locally instead of using Casini which sucks. As an alternative, I create a separate project from the web site which is a class library project and put all my code in there, then reference the class library project from the website project. Keeping only UI stuff in the website and requiring a build for at least the accompanying dll. I don't know about a good article, I just use experience as a guide and experience tells me if I can't build it I don't want to ship it.

                        Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
                        Most of this sig is for Google, not ego.

                        E 1 Reply Last reply
                        0
                        • E eyeseetee

                          OK, here is a step by step of me updating a file 1. Open the project folder through VWD 2005 2. Find file, make change and then hit CTRL S 3. Change is made 4. Live project reflects change I havent built the app Understand what I am saying now?

                          C Offline
                          C Offline
                          Christian Graus
                          wrote on last edited by
                          #12

                          Again, your project cannot reflect your code changes unless there is a build for it to update from.

                          Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

                          E D 2 Replies Last reply
                          0
                          • E Ennis Ray Lynch Jr

                            Yeah, don't do it. Download the Web Application project template from MS and use that instead and then just use traditional deployment. Personally, I install IIS locally instead of using Casini which sucks. As an alternative, I create a separate project from the web site which is a class library project and put all my code in there, then reference the class library project from the website project. Keeping only UI stuff in the website and requiring a build for at least the accompanying dll. I don't know about a good article, I just use experience as a guide and experience tells me if I can't build it I don't want to ship it.

                            Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                            Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
                            Most of this sig is for Google, not ego.

                            E Offline
                            E Offline
                            eyeseetee
                            wrote on last edited by
                            #13

                            OK, thankyou for answering my questions One final thing is that when I do try and build my project which is on the server it throws up errors saying it cant find some code tags, however the project still works with those code tags and when I build the same project which is located locally it works fine. It says it cant find some ajax tags which Im using Why would this be?

                            E 1 Reply Last reply
                            0
                            • C Christian Graus

                              Again, your project cannot reflect your code changes unless there is a build for it to update from.

                              Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

                              E Offline
                              E Offline
                              eyeseetee
                              wrote on last edited by
                              #14

                              Therefore if I amend one file and save only that one file through VWD the build the server is looking at has one updated file and all the rest are in their previous state. Where as if I built the project again it would be looking at a fully new state of the project even if changes hadnt been made to the other files. I'm sorry if this appears to show a lack of understanding on my part but I'm struggling to explain what I'm thinking!! Basically Im leaving the company soon and I am worryed that the current method of updating the file straight from the server is somewhat dangerous and if there is a better way of doing it. In my previous job as I have mentioned in another post I built a dll using Visual Studio, copyed that dll to the folder my aspx files were in and then uploaded the dll through Dreamweaver. thanks :)

                              1 Reply Last reply
                              0
                              • E eyeseetee

                                OK, thankyou for answering my questions One final thing is that when I do try and build my project which is on the server it throws up errors saying it cant find some code tags, however the project still works with those code tags and when I build the same project which is located locally it works fine. It says it cant find some ajax tags which Im using Why would this be?

                                E Offline
                                E Offline
                                Ennis Ray Lynch Jr
                                wrote on last edited by
                                #15

                                This is really devolving into a programming question.

                                Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                                Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
                                Most of this sig is for Google, not ego.

                                1 Reply Last reply
                                0
                                • C Christian Graus

                                  Again, your project cannot reflect your code changes unless there is a build for it to update from.

                                  Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

                                  D Offline
                                  D Offline
                                  Dan Neely
                                  wrote on last edited by
                                  #16

                                  There's a type of web project where everything is compiled at runtime and you just have to upload .cs files to the server with no local build.

                                  Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                                  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