Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

A demo of C# Resource Acquisition Is Initialization ZZ

AddThis Social Bookmark Button
At http://geekswithblogs.net/codeWithoutFear/archive/2012/06/28/raii-in-csharp.aspx, there is an interesting article on an excellent way of handling the disposal of unmanaged code items such as database connections, where the use of a using is not appropriate.

One of the items that is rarely considered from the outset of dot Net development is running FXCOP to check check that there are no issues detectable by static code analysis. FXCOP is a free tool that available as part of the platform SDK. It is also available integrated into the Visual Studio ultimate edition.

Dot net applications should be checked with FXCOP to
check that all unmanaged code items are correctly disposed of as such problems rarely manifest during testing unless the test is of a prolonged duration.  The Resource Acquisition Is Initialization is another tool in dealing with these issues.
...(Read whole news on source site)

Windows 8 Metro Apps: The 8 Must-Know Tricks! Day 2

AddThis Social Bookmark Button
Tweet
href="http://www.silverlightshow.net/items/Windows-8-Metro-Apps-The-8-Must-Know-Tricks-Day-2.aspx"> This is Day # 2 in the Windows 8 development article series on common tips & tricks towards developing real-world Metro apps.  Over the next several weeks, you’ll see 8 articles talk about some must-do things for Windows 8 Metro app developers. Simple & to the point, with some code examples on...(Read whole news on source site)

Building Single Page Apps with Knockout, jQuery, and Web API - The Story Begins

AddThis Social Bookmark Button
I’m currently recording a course for Pluralsight with a working title of “Building Single Page Apps (SPA) with ASP.NET Web API, Knockout and jQuery” targeting to be out by August 31. This is an end to end course that hits hundreds (ok, not quite) of technologies that work together to create a SPA that works across multiple devices and screen sizes. As I’m recording the videos, I thought it might be fun to occasionally blog about the experience as there were many good tips (and trips) I hit along the way. I really wanted to share an end to end
demo that doesn’t cover every feature of every technology, but rather how they all work together in symbiosis. So the first module starts out by talking about what is a SPA, why you should be interested even if you aren’t building a SPA, and what the story is for the end to end demo. Basically, it’s the lead in to the entire course. And thus, that’s where this post starts. One of the coolest parts of this course is the tremendous number of people who influenced it. The developer community we work in is amazing and I try not take you all...(Read whole news on source site)

How to Create Windows 8 Bootable USB Device from ISO Image using WinUSB Maker

AddThis Social Bookmark Button
Want to install the Windows 8 on multiple systems but don't want to burn on a DVD? Here's how you can create a bootable USB drive containing the Windows 8 Operating System. An USB drive is always faster than DVDs and the chances of failed or corrupt installation are very low as compared to other optical medias. So lets see how you can create the bootable USB of Windows 8 in the easiest way possible.   WinUSB Maker is a tool to make any USB, External HDD as bootable with Windows Setup. In this post we will learn
how to create a Windows 8 bootable USB device from ISO image. Though we will create the Windows 8 Release Preview installer, but it is applicable for OS.   WinUSB Maker is a tool to make any Removable Device as bootable with Windows Setup. It also features full faster drive backup / restore including the MBR and all stored files with fastest file copy and maximum process priority level. User can work with Setup DVD / Setup Folder / Setup ISO Image and make a......(Read whole news on source site)

Create Windows 8 Bootable USB Device from ISO Image using WinUSB Maker

AddThis Social Bookmark Button
Want to install the Windows 8 on multiple systems but don't want to burn on a DVD? Here's how you can create a bootable USB drive containing the Windows 8 Operating System. An USB drive is always faster than DVDs and the chances of failed or corrupt installation are very low as compared to other optical medias. So lets see how you can create the bootable USB of Windows 8 in the easiest way possible.   WinUSB Maker is a tool to make any USB, External HDD as bootable with Windows Setup. In this post we will learn
how to create a Windows 8 bootable USB device from ISO image. Though we will create the Windows 8 Release Preview installer, but it is applicable for OS.   WinUSB Maker is a tool to make any Removable Device as bootable with Windows Setup. It also features full faster drive backup / restore including the MBR and all stored files with fastest file copy and maximum process priority level. User can work with Setup DVD / Setup Folder / Setup ISO Image and make a......(Read whole news on source site)

Should I unit- or integration test my ASP.NET Web API services?

AddThis Social Bookmark Button
Over the last two weeks, preparing for a talk, I have been doing some research on ASP.NET Web API. After working my way through the API, and the implementation of certain features, I looked at testing.

Similar to ASP.NET MVC, Web API allows you to create relatively small building blocks, which can replace parts of, or be added to an existing default global setup. This makes it possible for us to test each component in isolation: controllers, dependency resolvers, filters, serialization, type formatters, messagehandlers and routing.

Testing in isolation helps a great deal
to keep the magnitude of things to stuff in your head limited, and when you break something, you are able to quickly pinpoint the origin of the error. What unit testing fails to prove however, is the correctness of your code when all the little pieces are put together and configured. And let it be that this is extremely important when you're exposing an API.

Looking at Web API, I would probably test most infrastructure in isolation - filters, type formatters, messagehandlers and serialization, because these tests will help pinpoint errors in components which will affect a large amount...(Read whole news on source site)

Auto Incrementing Version Number for a C# Project in Visual Studio

AddThis Social Bookmark Button
The version number for a .NET Application (c#) will generally contains the following Major version Minor version Build number Revision This is generally specified in the “AssemblyInfo.cs” file in your project via the attribute "["assembly: AssemblyVersion("1.0.0.0")]" For the correct version number, you would specify all the values. The other option is to default the last [...]

Using SqlDataReader’s new async methods in .Net 4.5 Beta, Part 2: Examples

AddThis Social Bookmark Button
In the previous post about the new column-level asynchronous methods added to SqlDataReader (and DbDataReader) we covered two new SqlDataReader methods (IsDBNullAsync and GetFieldValueAsync), how data is read from the network by the data reader and guidance on how to when to use, and not use, asynchronous methods. To follow up from that post, we will be going through a couple of examples to demonstrate what needs to be considered when implementing a solution with asynchronous ADO.NET. AdventureWorks For this example, we will be using the “Adventure Works for SQL Server 2012” database running on SQL
Server 2012 (if you are running Visual Studio 2012, then you should already have SQL Server 2012 Express LocalDB installed). The full example is attached, including a basic command line “harness” to run the data access layer. The queries in the example focus around getting the details, reviews and photos for a product from the database which could, for instance, be used by a website for the product’s page:
GetProductByIdCommand = "SELECT [Name], [Color], [ListPrice], [DiscontinuedDate] FROM [Production].[Product] WHERE [ProductID]=@productid";   GetProductPhotoByIdCommand = "SELECT [pp].[LargePhotoFileName], [pp].[LargePhoto] FROM [Production].[ProductPhoto] AS [pp] INNER JOIN [Production].[ProductProductPhoto] AS [ppp] ON [pp].[ProductPhotoID]=[ppp].[ProductPhotoID] WHERE [ppp].[Primary]=1 AND...(Read whole news on source site)

Home