Tag Archives: Microsoft Visual Studio

Visual Studio extension – Codemaid


Many developers use Resharper tool for visual studio which is really a great productivity extension, but it’s a paid. If you are looking for open source and a free extension alternative to Resharper then Codemaid is for you.

CodeMaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

http://www.codemaid.net/

CodeMaid is a great extensions that helps cleaning up and organizing the code. It can be used along with ReSharper. It is very easy to use. It has very nice documentation too.

Key features:

  1. Code Cleaning
  2. Code Digging
  3. Code Reorganizing
  4. Comment Formatting
  5. and Many more..

I would highly recommend it.

Advertisements

Win Free Copies of the new book NuGet 2 Essentials from Packt Publishing


I recently came across a new book NuGet 2 Essentials from Packt Publishing. You would be pleased to know that I have teamed up with Packt Publishing to organize a Giveaway of the book.

And three lucky winners stand a chance to win 3 digital copies of this book. Keep reading to find out how you can be one of the Lucky Winners.

Overview:

  • Install NuGet in all supported versions of Visual Studio
  • Use NuGet with source control and build servers
  • Create a NuGet package for your own class library
  • Publish your package to the official NuGet gallery
  • Create packages with multi-platform and multi-language support
  • Automatically configure target projects from the packages you create
  • Include custom install and uninstall scripts in your packages
  • Support debugging of your packaged libraries
  • Install your own internal NuGet server
  • Configure NuGet to use different NuGet servers

How to Enter?
All you need to do is head on over to the book page and look through the product description of the book and drop a line via the comments below this post to let us know what interests you the most about this book. It’s that simple.

Winners will get an e-copy of the Book.

Deadline
The contest will close on 31st Dec 2013. Winners will be contacted by email, so be sure to use your real email address when you comment!

Peek Definition in Visual Studio 2013


In this article, let’s review a new handy feature in Visual Studio 2013 called Peek Definition.

Generally when you want to view a method, you point a mouse cursor on a method name and right click on it and click “Go To Definition” (F12 shortcut key).

Once you do that, you will go to the file where method is declared or defined.

Using Peek Definition

This feature is similar to “Go To Definition” except in-file editing (which we can describe it as view or edit in a same file without losing your place) as explained below.

When you right click on a method by placing a cursor over it and clicking on “Peek Definition” (ALT + F12 shortcut key), you won’t leave your current file/location instead a small window will appear over there.

This makes it very easy to view as well as edit a method definition without losing your place in the current file.

How to Install a NuGet Package in Visual Studio?


In this article, let’s see what is NuGet and how to install a NuGet Package in Visual Studio.

About NuGet

It is a free and open source package manager for the .NET Framework. It was formerly known as NuPack. The NuGet Gallery (nuget.org) is the central package repository used by all package authors and consumers.

When you install a package, NuGet copies all the required files to your project/solution and makes appropriate changes such as adding a reference to assembly, changing app.config or web.config file etc.

In short, You can include a Javascript file reference or add an assembly reference via NuGet Package Manager in Visual Studio. We don’t need to worry about dependent packages as it is automatically handled and included in the project by NuGet.

NuGet Package Manager Extension for Visual Studio

It is a collection of tools to automate the process of downloading, installing, upgrading, configuring, and removing packages from a Visual Studio Project/solution. It is distributed as a Visual Studio extension.

Installing NuGet Package Manager Extension

1. If the NuGet Package Manager is not installed on Visual Studio, you can install it by clicking on Tools > Extensions and Updates from the menu.

Clicking on “Extensions and Updates”, you will see following screen.

2. Select “Online” from the left hand side, you will see a list, sorted by Most popular packages. Select “NuGet Package Manager” from it and click on “Download” button to install it.

You will see following screens.

3. As show in the screen below, accept the license terms, click “Install” to continue.

Once installation is done, You will see this screen. Click on “Close” button.

4. You will be asked to restart the Visual Studio. Now you have NuGet Package Manager extension installed in Visual Studio. A small green checkbox icon is appeared against the installed extension.

More information about Nuget Package Manager extension can be found here in the visual studio gallery.

Installing NuGet Packages in Visual Studio

Basically there are 2 ways to install a NuGet Package in Visual Studio. First is via User interface window and other is via package manager console.

  • Installation via NuGet interface window

1. RIght click on your project from solution explorer and click on Manage NuGet Packages. Select the “Online” link from the left hand side and find the required package.

2. Click on “Install” button from the screen. Package manager will do all the stuff in the background for you.

2. If you see references in your project, reference for the installed package is added.

Here in this case, it’s json.NET package.

  • Installation via Package Manager Console

1. From the Tools menu, select Library Package Manager and then click Package Manager Console.

You will see following screen in Visual Studio.

2. To search a package, type a command Get-Package -ListAvailable -Filter <package name>

e.g Get-Package -ListAvailable -Filter EntityFramework

3. To install required package, type a command  Install-Package <package name>

e.g. Install-Package EntityFramework

Once installation done, you can see that reference for the package is automatically added to project.

NuGet Intro Video

Step By Step Installing Visual Studio Professional 2013 RC


In this article, let’s see how to install Visual studio Professional 2013 RC (Release Candidate).

Please note: The installation for Visual studio (VS) Ultimate and Premium 2013 RC is almost simillar to VS Professional 2013 RC installation.

Steps to install VS Professional 2013:

1. First download Visual Studio Professional 2013 RC from here. Setup is around 3 GB. I recommend to download dvd iso image file.

You can also refer this post for new features in the VS 2013 RC.

2. Mount .iso file (if downloaded) , you will see following list of files.

3. Click on vs_professioanl.exe file to start the installation. You will see following screen first.

4. Read the license terms and privacy policy and accept them by selecting the checkbox in from of them. Click on “Next” button.

5. Select the features you want to install then click on “INSTALL” button to start the installation.

Setup will create system restore point first before installing VS 2013 components.

6. Once it’s done, setup will start acquiring the required components to install and will start installing core features. It will take few minutes to install it. You may required to restart your system (for once ONLY) in between the setup.

7. Once it finishes the setup, you will see the success screen as below.

8. Click on “Restart Now” button to restart your system. After restarting your system, you are now ready to use your VS Professional 2013 RC.

Here you are done with the installation of the Visual Studio Professional 2013 RC.

Now Just open the installed VS 2013 program from your system. You will see following welcome screen. You can sign in to your Microsoft account by clicking on “Sign In” button, else you can just skip the step by clicking on the “Not now, maybe later” link.

If you sign in with your Microsoft account, Visual studio will sync your VS settings between different devices and connect to online developer services.

9. If you click on the “Sign in” button, you will see the following screens.

10. If you are not interested to sign in, you can just skip this step and can sign in to your Microsoft account later. Once you have done with that, you will be asked to select a theme for your visual studio. You can select either Blue, dark or light theme. Also you can set your development settings from the screen. Off course you can change these settings later at any time.

11. Now click on the “Start Visual Studio” button to launch the application.

What’s New in Visual Studio 2013 RC


In this article, let’s discuss about the new and enhanced features in Visual Studio 2013 Release Candidate (RC).

The official release date for Visual Studio 2013 is November 13, 2013. In preparation, the Release Candidates of VS2013, Team Foundation Server 2013, and .NET Framework 4.5.1 are available for download now. Here is the official announcement for Visual Studio 2013 RC.

Features:

1. Visual studio 2013 comes with .NET Framework 4.5 and 4.5.1 framework with some new features, see What’s New in the .NET Framework 4.5.

2. New javascript features are added like Block scoped variables, container object etc. See What’s New in JavaScript.

3. Visual studio support windows 8.1 app development also it allows you to submit newly developed windows app to App store. See Windows 8.1 Preview: New APIs and features for developers.

4. Productivity improvements for managed apps include return values in the debugger, Edit and Continue support for 64-bit apps, and better exception handling in Windows Store apps.

5. MSBuild 12.0 is now installed as part of Visual Studio rather than as part of the .NET Framework, see What’s New in MSBuild 12.0.

6. The Visual Studio IDE has some important changes—improved icons, more contrast in the user interface, the ability to search the Options window directly, and other enhancements.

7. First time, when you start the visual studio, you can select one of the three Visual Studio themes—Black, White, or Blue.

8. The new connected IDE uses your Microsoft account to connect to your Visual Studio profile, including your Team Foundation Service (TFS) account.

9. You can use the new MVC (model-view-controller) pattern in Office and SharePoint 2013 to create apps. You can also publish apps to Windows Azure websites.

Download Visual Studio 2013 RC here.

Error: Unable to Open Database Project in Visual Studio 2012


If you upgrade SQL Server 2012 by installing Service pack 1 (SP1), you may encounter following popup when Visual studio solution with “SQL Server Database Projects” is opened:

Unable to Open Database Project in Visual Studio 2012:

This version of SQL Server Data Tools is not compatible with the database run time components installed on this computer.

To fix this problem you need to download and install SQL Server Data Tools update

Installation:

1. Once downloaded, run the file “SSDTSetup.exe”, you will see following screen.

2. Read and agree the terms and conditions and click on Install button.

3. Installation will start. It will download some files and install them.

4. It will take some time for downloading required files depends upon your internet connection.

5. Once it finishes, you need to reboot your system.

6. Click “Restart” to reboot your system.

7. Once restarted, open the project. You will see that “SQL Server Database Projects” is loaded. If not, migrate the database projects, it will solve your problem.