Archive for the ‘Tools’ Category

Navigate to the .NET Framework source online from VS.NET IDE!

February 26, 2014

Most of you knew that Microsoft recently launched a browsable version of the .Net reference source code at http://referencesource-beta.microsoft.com.

This would help great and get us the insight over how all of the .NET code has been written. For example,
if you would want to see how String.IsNullOrEmpty() and String.IsNullOrWhiteSpace() has been implemented, here you go.

public static bool IsNullOrEmpty(String value) {
return (value == null || value.Length == 0);
}

public static bool IsNullOrWhiteSpace(String value) {
if (value == null) return true;

for(int i = 0; i < value.Length; i++) {
if(!Char.IsWhiteSpace(value[i])) return false;
}

return true;
}

Interesting, right!

Reference: Have a look @ Scott Hanselman's blog: http://goo.gl/D9jR6a

Below is the code excerpt from Scott Hanselman’s blog:
BONUS: Community Visual Studio Extension for navigating into the online .NET Framework source from VS.NET IDE.

Here’s an exciting bonus. Community member and fabulous coder Schabse Laks has created a Visual Studio extension for VS2010, 2012, and 2013! This extension sends calls to Go To Definition (or pressing F12 on a symbol) directly to the code online (when it’s .NET Framework code, not yours).

You can download this companion “Ref12” Visual Studio Extension now! Just Goto Definition on any .NET type we have source for and it’ll launch your default browser so you can explore the .NET Framework source yourself! Thanks Schabse!

Enjoy exploring!

VS.NET 2013 and ASP.NET MVC 5!

July 14, 2013

Hello friends, ASP.NET MVC 5 has been bundled with VS.NET 2013 preview release. Here are few links for your reference.

VS.NET 2013:

The below url has the fantastic list of information about ASP.NET and Web Tools for Visual Studio 2013 Preview as well as the updated ASP.NET and Web Tools. Enjoy reading!

http://www.asp.net/vnext/overview/latest/release-notes#TOC10

ASP.NET MVC 5:

Tutorial available for Getting Started with ASP.NET MVC 5.
http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started

Note:
The ASP.NET MVC Framework is an open source web application framework that implements the model–view–controller (MVC) pattern.

http://aspnet.codeplex.com/wikipage?title=MVC

As of now, the download is available for MVC 4 only.

Just a pointer to the title related information. 🙂

Delete a TFS task

April 13, 2012

Simply i was trying to create a sample task in TFS, its done successfully. Then tried to delete from there as it is a live one , and everybody would be looking into it. But, searching the options in TFS for long, i felt tired and nervousness. Finally, started googling and got few forums with no direct stuffs told. So thought of giving the stuff simple and humble 🙂

First of all, we need the exe file Witadmin.exe for deleting the tasks in TFS.

Where it resides? –  C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE  (you have to check the folder, depending upon the system type you have)

Initially, I was searching underneath C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools, and got confused.

Here is the list of available commands with Witadmin:

Possible options:

So, finally, your command would look like…

>witadmin destroywi /Collection:http://%5BServerName%5D:8080/tfs/id:%5BId%5D

Note: Text kept inside “[]” differs as its provided to you. Also provided the permission to delete 😉

Hope, this helps! 🙂

Microsoft Visual Studio 2011 Developer Preview (Web Installer) ready!

September 19, 2011

Overview (Excerpt from Microsoft.com)

Visual Studio 11 Developer Preview is an integrated development environment that seamlessly spans the entire life cycle of software creation, including architecture, user interface design, code creation, code insight and analysis, code deployment, testing, and validation. This release adds support for the most advanced Microsoft platforms, including the next version of Windows (code-named “Windows 8”) and Windows Azure, and enables you to target platforms across devices, services, and the cloud. Integration with Team Foundation Server allows the entire team, from the customer to the developer, to build scalable and high-quality applications to exacting standards and requirements.

http://www.microsoft.com/download/en/details.aspx?id=27543

The .NET Framework 4.5 Developer Preview is also installed as part of Visual Studio 11 Developer Preview.

Note: This prerelease software will expire on June 30, 2012. To continue using Visual Studio 11 after that date, you will have to install a later version of the software.


Technology / Tools update

September 11, 2011

Here are few links about Technology/Tools update:

1. Tip on how to share files between projects in the same solution in C#
Url: http://cplus.about.com/b/2011/09/10/c-tip-for-multiple-projects-in-one-solution.htm

2. Telerik’s Visual Studio Plug-in for Code Analysis (like Re-Sharper)
Url : http://www.telerik.com/products/justcode.aspx
Online Demo : http://tv.telerik.com/search?sortby=most%20recent&libraries=justcode

3. 10 Firefox Add-ons Twitter Users Can’t Live Without
Url : http://www.telerik.com/products/justcode.aspx

Glimpse, debugging server from client side!

June 28, 2011

What is Glimpse (= a glance)?

http://getglimpse.com/

At its core Glimpse allows you to debug your web site or web service right in the browser. Glimpse allows you to “Glimpse” into what’s going on in your web server. In other words what Firebug is to debugging your client side code, Glimpse is to debugging your server within the client.

“What Firebug is for the client, Glimpse does for the server… in other words, a client side Glimpse into whats going on in your server.”

Plugins available for Winforms & MVC:

WebForms MVC
  • Config – Summary of important stuff in your web.config
  • Environment – Details of the server environment
  • Request – What the server received in the request
  • Server – Web server variables available for the request
  • Session – Is using session, what is being stored
  • Trace – Trace output for the request
  • Bindings – How MVC is binding the data
  • Execution – What the execution pipeline looks like
  • MetaData – MetaData associated with your View Model
  • Routes – How routes are being evaluated
  • Views – How MVC is finding the view that is being rendered

Steps to install & use:

Sample firebug like window:

Hope, you would enjoy reading!

MVC 3 View engine Razor and comparision!

February 7, 2011

Benefits over Razor are

  1. Can be hosted outside ASP.NET
  2. Can unit test views (no need of controller or web-server)
  3. Better intellesense support on VS.NET
  4. Everything is encoded by default
  5. Executing it from a console app is possible
  6. Much cleaner
  7. There’s no need to specify the language, because it’s included in the extension
  8. No need to explicitly specify a master page
  9. No external dependencies as it has been shipped with MVC 3 (System.Web.Mvc.dll)
  10. and lot more

Below are the urls you could enjoy reading over the major 4 view engines, it’s awesome. Just including here as it would help some one over there.

  1. http://channel9.msdn.com/coding4fun/articles/Developer-Review-Four-ASPNET-MVC-View-Engines
  2. http://ironshay.com/post/The-Big-View-Engine-Comparison-e28093-Razor-vs-Spark-vs-NHaml-vs-Web-Forms-View-Engine.aspx

“.Net“ PDF generating tools

January 8, 2011

I was googling for “.Net“ PDF generating tools. Following are the list i found best as of now. I will start experimenting and comparing soon. Once i am done, will post it here. Meanwhile if you come across any other PDF tools, please let me know.

Open Source

  1. iTextSharp – Library to create/manipulate PDF documents on-the-fly
  2. PDFSharp – PDFsharp is the Open Source library that easily creates PDF documents from any .NET language
  3. Report.NET – generate PDF documents in a simple and flexible manner
  4. PDFjet for .NET – royalty-free PDF library

Paid Libraries

  1. ABCpdf – Dynamically create Adobe PDF documents on the fly
  2. HTML to PDF Converter 6.3 for .NET
  3. PDF4NET.NET library for adding PDF capabilities your .NET application
  4. DynamicPDF™ Generator for .NET – real-time creation of PDF documents based on dynamic data
  5. PDF Duo .NET – It allows create pdf without saving it on the server
  6. Aspose.NET

VS.NET Entity Visualizer to display SQL source code

January 8, 2011

Entity Framework Debugger Visualizer to display SQL source code generated by Entity Framework.

Courtesy : Codeplex.com

  1. Download the DLL from http://entityvisualizer.codeplex.com/releases/view/58464
  2. Place the DLL to either of the following locations:
    1. InstallPath\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\Visualizers
    2. My Documents\Visual Studio 2010\Visualizers
  3. In Win 7/Vista systems, Unblock the dll EntityFrameworkVisualizer.dll, if it is locked
    1. Right click -> Properties -> Unblock
  4. Restart the Visual Studio debugging session and place the break-point in one of the LINQ statementLINQ Statement
  5. Pass the LINQ statement. And at mouse over, you would see the magnifying glass icon (lens)
  6. Click the icon, you would see as below 🙂

SQLView

Hope, you would love this 🙂

Regular Expression Web/Desktop tool for newbies!

December 31, 2010

An intuitive tool for learning, writing, and testing Regular Expressions.  Helped me great in learning RegExp! 🙂

Web version:

http://www.gskinner.com/RegExr/

Key features include:
* real time results: shows results as you type

* code hinting: roll over your expression to see info on specific elements

* detailed results: roll over a match to see details & view group info below

* built in regex guide: double click entries to insert them into your expression

* online & desktop: regexr.com or download the desktop version for Mac, Windows, or Linux

* save your expressions: My Saved expressions are saved locally

* search Community expressions and add your own

Desktop version:

http://gskinner.com/RegExr/desktop/