.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Featured posts

Announcing .NET 9
Nov 12, 2024
29
40

Announcing .NET 9

.NET Team
.NET Team

Announcing the release of .NET 9, the most productive, modern, secure, intelligent, and performant release of .NET yet. With updates across ASP.NET Core, C#, .N...

.NETASP.NET CoreC#

Latest posts

How to get Razor syntax support in Visual Studio 2010
Jan 12, 2011
0
0

How to get Razor syntax support in Visual Studio 2010

Web Development Tools Microsoft
Web Development Tools Microsoft

What’s Razor?Razor is a simple-syntax view engine that is released as part of ASP.NET Model View Controller (MVC) 3. Read more about the syntax on ScottGu’s blog or on ASP.NET How can I get Razor syntax support in Visual Studio 2010?It’s simple. Install the MVC3 RTM bits via Web Platform Installer or download the installer directly to run it yourself. Both the options run AspNetMVC3Setup.exe and it installs Visual Studio 2010 support for Razor syntax in addition to other components bundled in the exe.What does ASPnetMVC3Setup.exe install for Visual Studio to support the syntax?The ASP....

Video on Web Deployment using Visual Studio 2010 and MSDeploy
Jan 8, 2011
0
0

Video on Web Deployment using Visual Studio 2010 and MSDeploy

Web Development Tools Microsoft
Web Development Tools Microsoft

Back in November I participated in Virtual Tech Days which is an online conference presented by Microsoft. In the session I discussed the enhancements to web deployment using Visual Studio 2010 and MSDeploy. Some of the topics which I covered includ: You can download the video & all of my sample files at http://virtualtechdays.com/pastevents_2010november.aspx. In the samples you will find all of the scripts that I used and a bunch of others which I didn’t have time to cover. Enjoy!Note: Cross posted to http://sedodream.com/2011/01/08/VideoOnWebDeploymentUsingVisualStud...

How to Bin Deploy SQL Compact Edition 4.0 and Razor web projects
Jan 6, 2011
0
0

How to Bin Deploy SQL Compact Edition 4.0 and Razor web projects

Web Development Tools Microsoft
Web Development Tools Microsoft

With the release of VS2010 SP1 Beta1, Web Matrix,  and Razor QFE, we can build web projects containing SQL Compact Edition 4.0 sdf file and ASP.NET Web Pages with Razor syntax. However, this might be a problem when you are ready to deploy your project on a server that doesn’t have the assemblies required to run SQL CE 4.0 and Razor pages. To solve this issue, we can make the project “Bin Deployable”, similar to the way we do bin deploy an MVC project. If the hosting machine has ASP.NET 3.5 or later installed, then we just need to include the required assemblies in the bin folder when deploying the project....

How to solve Visual Studio hang problem when working in win7 with Norton antivirus
Dec 16, 2010
0
0

How to solve Visual Studio hang problem when working in win7 with Norton antivirus

Web Development Tools Microsoft
Web Development Tools Microsoft

A recent support email between customer and our developer shows that Norton/Symantec antivirus may affect Visual Studio’s performance in win7 due to the win7 jumplists.  Here’s a workaround for it: First, to determine if this is the problem, you may want to disable the antivirus temporarily and see if these hangs still repro.If it’s indeed the case, please create/set the following registry value and restart VS2010.[HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio10.0General]"ShowRecentFilesInJumplist"=dword:00000001 With the value set, Visual Studio will not try to remove anymore th...

Visual Studio 2010 SP1 Beta IIS Express Integration
Dec 11, 2010
0
0

Visual Studio 2010 SP1 Beta IIS Express Integration

Web Development Tools Microsoft
Web Development Tools Microsoft

A few days ago Jason Zander blogged about the availability of Visual Studio SP1 Beta (all links below in resources section). I am happy to let you guys know that with SP1 Beta we have enabled integration of IIS Express into Visual Studio. After you have installed SP1 Beta you have to download IIS Express separately for the option to “light up”. After you’ve downloaded and installed IIS Express you can now create Web projects and Websites which use IIS Express instead of Cassini (the default web server used in Visual Studio). For more information regarding the difference between IIS Express and IIS/Cassini please ...

XDT (web.config) Transforms in non-web projects
Nov 17, 2010
0
0

XDT (web.config) Transforms in non-web projects

Web Development Tools Microsoft
Web Development Tools Microsoft

One of the really cool features that we shipped for Visual Studio 2010 was web.config (XDT) transformations. Because the transformations are so simple and straightforward one of the first questions that someone asks after using it is “how can I use this in my other projects?” Unfortunately this feature is only built into the Web Application Projects (WAP). But it is very easy to reuse this because we just rely on an MSBuild task to do the heavy lifting for us. I received an email from that basically went like this “Hi, I would like to use XDT transformations on my WPF project for both the app.config file as ...

Finalization Uncovered
Nov 15, 2010
0
0

Finalization Uncovered

maoni
maoni

I’ve talked about finalization before but based on seeing questions related to it it appears that it deserves some clarification.   First of all, finalization is a mechanism we provide in the CLR wheras Dispose is a programming pattern. See Clearing up some confusion over finalization and other areas in GC for an explanation why we provide finalization. Inside of the GC, it’s completely not aware of Dispose. People often call GC.SuppressFinalize in their Dispose implementation but that’s just a choice they make when they write code. I will explain exactly what GC.SuppressFinalize does in a ...

ASP.NET Web Application: Publish/Package Tokenizing Parameters
Nov 10, 2010
0
0

ASP.NET Web Application: Publish/Package Tokenizing Parameters

Web Development Tools Microsoft
Web Development Tools Microsoft

  Today I just saw a question posted on stackoverflow.com asking Why are some Web.config transforms tokenised into SetParameters.xml and others are not? Let me give some background on this topic for those who are not aware of what the question is. With Visual Studio 2010 when you package your application using the Build Deployment Package context menu option, see image below. When build the package by default the package will be created in obj{Configuration}Package{ProjectName}.zip where {Configuration} is the current build configuration, and {ProjectName} is the name of the project. So in this case I since...

How to solve JavaScript IntelliSense problems in VS2010
Nov 8, 2010
0
0

How to solve JavaScript IntelliSense problems in VS2010

Web Development Tools Microsoft
Web Development Tools Microsoft

VS2010 should support all of the VS2008 JavaScript functionalities as shown in Scott Guthrie’s VS2008 JavaScript IntelliSense blog.  It includes: 1. Basic type inference 2. IntelliSense from referenced external JavaScript libraries 3. IntelliSense from XML comments for functions, parameters and return types 4. Calling web services using ASP.NET AJAX   Additionally, VS2010 RTM had some improvement, including: 1. IntelliSense when manipulating browser objects 2. Dynamic generated variable IntelliSense 3. Default JavaScript snippets within IntelliSense to help you code faster Scott Guthrie has a ...