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

NuGet creation

NuGet creation
The last time I spoke as NuGet is used, this time it is logical to tell you how to create your NuGet package and place it on a shared hosting or on your own in a local directory, or else in the gallery.

Creating your own package NuGet

For example, and I think in most cases, you’ll create a package NuGet without dependencies on other packages. So we need any project, for simplicity let it be a simple library with the N- of methods.

In order to be able to set library or libraries to include in the final NuGet package, you must add the project file with the extension “.Nuspec“, where there will be described all the properties and the internal function of our package. So far, in the studio there is no setting to create the files required extensions, so that you can create any text file, and change it’s dwells.

In general, the nuspec file looks as follows:

<?xml version="1.0" encoding="utf-8"?>
<package>
  <metadata>
    <id>WBR.ArgParser</id>
    <version>1.0.0</version>
    <title>Argument Parser library</title>
    <authors>Violet Tape</authors>
    <description>Easy to use library for parsing app arguments.</description>
    <language>en-US</language>
    <projectUrl>http://violet-tape.net</projectUrl>
    <iconUrl>http://violet-tape.net/images/commandprompt.png</iconUrl>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
  </metadata>
  <files>
    <file src="bin\Release\WBR.ArgParser.dll" target="lib" />
  </files>
</package>

 

We can say that the comments here are irrelevant. The only thing that is necessary to specify is which tags are mandatory and which are optional.

Continue reading

Enum with a human face

A problem

Quite often we have to use enums for a limited set of values. They are very easy to use in your code, but there are problems for bringing them to the interface of the application. Not only in Russian but in English. The values ​​in enum may consist of several words logically and embarrassing them to show in the user interface. For example:

public enum MyEnum {
    None,
    CompositeValue,
    Single
}

Naturally, it is show to the customer CompositeValue is not good. Much better to show “Composite Value”. Or, to translate it into Russian.

Continue reading

Win7 Jump List – II

The last time we stayed on the fact that we have a program that can “group” icons from taskbar. If you run it and understood, it was noticed that the program has one unpleasant flaw in the usability . When you set the program to run by default – it can not be seen. Required to rely on their memories and habits. So we will correct this deficiency.

As you probably noticed last time, the images I have shown are mini-icons-default applications and those applications I have several. So let us consider in more detail how to achieve this for you too.

Continue reading

Win7 Jump List

Probably about the new Win7 features just lazy person hasn’t written, and a lot of reviews on the internet on how to apply it. I noticed that reading technical articles, which simply tell show to apply, or that tool is not very interesting. Much more interesting when technology is used on a particular useful example, resulting in a small useful program. Of course, this turns out not always, but lately I’ve been more and more I try to do.

Thus, we’ll solve the following problem: I have a lot of icons in the taskbar is attached. 2 studios, SQL Server, Expression studio, office applications, browsers – all this would be helpful to group and to the default run basic applications.

Continue reading

Notepad – –

This article is somewhat unusual in comparison to all previous ones, because it’s more like a conclusion and the summaryzing of the previous articles of this season. This is an example of interaction between the components of which I wrote recently: interprocess communication, command manager, the registration of extensions. Example I named so because it was chosen as an example of Notepad++, but due to the fact that this program only shows the options capability in close to real-life, we get a minus-minus.

You can name the current compilation of the backbone for further development. Now the program can open by clicking on the file with a registered extension, the file opens in new tabs, or, if you ask, then close all other tabs and the file will open in a single tab. There will always be running only one instance at one time.

I think that I should still consider how it works in reality. Focusing only on the differences that have emerged in real life. At the same time and will be seen asdescriptive material is different from a working prototype.

Continue reading