Wednesday, October 26, 2005

VS.Net Tip(s) of the Day

I came across some cool tips for use inside VS.Net.

1. A Cool feature of VS.NET is its ability to launch multiple projects and have a debugger attached to them. If I have an application which is using .NET Remoting, so I have a remoting host, which is an exe, I have a client who’s is going to launch remote objects. Also I’m going to have them in separate exes. I can normally run only 1 Exe at a time within the same solution. And so typically what I have to do is after I launch the client I have to go to the host and explicitly start the host to get the second exe I need to work with and then the two are actually going to be talking with each other.
Now this is kind of tedious. What I can do instead is I could go to the solution properties, select multiple startup projects and select the projects I want to start, in which case I want to start the host and I want to start the client. I can even change the order in which the client or the host are going to be started. Now when I click okay if I click the go button VS.NET is going to launch the two exes and it’s going to attach itself to them so I’m going to have the same debug session for both exes. Very handy and useful when dealing with multiple exes.


2. If I try to compile a new project and deliberately add some compilation errors to i. After trying to build, If I look at the task list I'm going to see that the errors of compilation is being added as a task for me to fix. I can also explicitly go and add a task in my task list. Now you can also do // and type to do. And it turns out that to do is a recognized token by VS.NET and the moment you say to do it would add that line to the task list. And you can actually your own constants and your own token to the task list. If you go to tools, options, task list you can add your own custom Task List. Having your own custom task list will be helpful when you’re looking for other things to do in your project you don’t have to literally do a search in all files and look for to dos. Just look at the task list, it will show you all the things you need to do.

3. In C# only there’s something called pre and post build action. This allows you to run a command line before and after a build. I want to do some pre and post-build action in that class library. So if I go to the project properties I have build Events. This command line, the pre-build defense is going to be executed before the build starts. A typical thing to do in the prebuild is to do a clean build, meaning remove all bin folders. A post-build allows you to run something after the build. A typical thing you want to do is you’re going to maybe install this class library in the GAC on every build.

I read these tips from an MSDN article by Jual Lowy the Great(yup ... a Software Legend too). I found it very useful.

Tuesday, October 18, 2005

Tip of the Day

I found this really cool tip for keyboard users in Visual Studio .Net.

If you go to the find combobox (Ctrl+D with the default keyboard mapping) and you type "> open" (without quotes). The ">" flips the find combobox into a mini Command window. The "open" part is the aliased command to the "file open" action. The super part is when you press space and the first character of the file you want to open anywhere in your solution, a dropdown window pops up with the files and folders that start with that letter. (thanks to Peter Provost)

Thursday, October 13, 2005

Cool Tools

It's been a long time since I blogged.. As always I am gonna blame it on work :) We had a tough work schedule for the last couple of months.. But really feeling happy about how things turned out in the end.. learnt to configure/administer Websphere MQ in the course of the project. we have earlier used MSMQ for our internal Message Queuing purpose and we were forced to use MQ since the client we were interacting with was using MQ.

I havent checked/used and new tool for a long time now. So I started exploring the new tools that are available. I came across couple of cool tools.

1. del.icio.us is a social bookmarks manager. I always had problem storing my favourite links and sharing it between my laptop at home and work. I am sure this is gonna solve all my issues. It allows you to easily add sites you like to your personal collection of links, to categorize those sites with keywords. You can also share your collection between your own browsers, machines and also with others. (coollll)

2. EverNote. I have been using OneNote to store information like website experts, to-do lists. It was a nice tool but i think it lacks thinks that are present in Evernote like Timeband, Encrypion. I dont think I will go back to OneNote after using this tool.

Let me know if anyone knows about any other cool tools they came across.
Loading...