not sure if this is a programming question but....
-
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) :)
-
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) :)
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.
-
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) :)
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. -
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) :)
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
-
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.
-
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
-
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.
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
-
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
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!! :)
-
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!! :)
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. -
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.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.
-
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.
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. -
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?
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.
-
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.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?
-
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.
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 :)
-
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?
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. -
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.
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