Launch of .bat files out of Visual Studio 2010

Or how to hang a voluntary action to the context to any item in the Project Explorer.

As already mentioned in the title, this step will be to rotate. Bat files since they are widely used in our daily activities, and constantly open Explorer or FAR is not very convenient. Much better to have effect until the pile and hang it on the key combination to achieve complete nirvana

So, given: a project that uses a batch file

Required: run a batch file from the context menu in the Project Explorer.

Continue reading

Visual Studio Multi-Project Templates

The idea

In a previous article I’ve already talked about how to create project templates. There I talked about the nuances of creating templates in VS2008 and VS2010, how to set up data, files and so on. This is certainly all right, but always wants more.

If the studio can create multiple projects for one solution, and that means we should be able to in theory do the same. And as applications, I think we will find. You can just make a blank for the domain, infrastructure, services, and interfaces, all at once to set up the relationship and create a single click (or, I don’t remember how much it needs to create as they have to create a project).

So, let’s do a multi-project types solution.

Continue reading

Visual Studio. Project Templates

Recently, I’ve started not just a bit but a lot experimenting with the code approaches, writing some test scripts and applications. The result, of course, always different, but not this will be discussed today. Gradually you begin to tire of setting standard projects. For the library project we need to delete class, created there by default, because it will be too lazy to rename. I am pleased to still redirect all output of compilations to the same folder at the root of the project from all libraries, not dawdle in the folders ..\bin\Debug \ for each component of the project, to remove *.dll. For Test projects deleting useless junk is especially actual! It would be nice to also set the attributes for the assembly and the information on it for everything.

I want if you need to create something new you will chose the project – and everything is already set! And the total output folder, and the appropriate values ​​in AssemblyInfo are prescribed, and nothing too much lying around in the project. I thought  and remembered that there is an option in the studio «Get online Templates», and if it is online it should be also offline – for my own templates. Said and done

As a result, I am very happy that I spent an hour to set up all necessary projects and now I do not digress into the process, but I am glad everything turned out fine and that we should not waste time on dumb work.

To learn how to do it in Visual Studio 2008, 2010 will be discussed further. Also it wil be discussed how to delete, and import ready-made project templates in the studio.

Visual Studio 2008

Beginning more than a banal and known to the pain everyone – open studio and create the desired design.


Continue reading

Smart tag – Simple


For a long time I was wandering how easy and comfortable to work with smart tags. Actually I didn’t knew how it was called officially, but anyway I thought (and still think) that this feature is awesome! Some time ago I’ve started to develop my own components and also spend more time tuning user’s interface. I found that it’s very time consuming and boring to setup necessary properties from the Property view. Its okay to setup few controls in little program, but when you have over 30 complicated views with custom components – you quickly became in a sad mood. So I decide found out how to create for my controls those pretty little triangles on the top right corner at the most standard components.

I found articles, books; I performed several tests and finally made what I want. And you know, it’s really helps me with development! Time saving in action! )

Now I’d like to share how to make it from the very beginning.

For all described actions below I used VS2008, ReSharper5

What is smart tag?

Smart tags are menu-like user interface (UI) elements that supply commonly used design-time options. Most of the standard components and controls provided with the .NET Framework contain smart tag and designer verb enhancements.

You can find three main parts in a smart tag:

  • Verbs – looks like link and perform some immediate action with control;
  • Fields – there are may be many different editor types as on figure. String editor, image, binding, date.
  • Text – just a simple text for information or for something not editable.

Performing changes in smart tag, you change underlying control at the same time.

Continue reading