Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
Search
Archives
Archives
January 2013
(2)
November 2012
(2)
October 2012
(1)
September 2012
(1)
July 2012
(1)
May 2012
(4)
April 2012
(1)
March 2012
(3)
February 2012
(1)
January 2012
(2)
December 2011
(1)
October 2011
(1)
August 2011
(1)
July 2011
(2)
May 2011
(1)
April 2011
(1)
March 2011
(1)
February 2011
(1)
October 2010
(4)
September 2010
(1)
August 2010
(1)
July 2010
(2)
June 2010
(6)
May 2010
(5)
April 2010
(5)
March 2010
(5)
February 2010
(2)
December 2009
(1)
November 2009
(3)
October 2009
(5)
September 2009
(8)
August 2009
(4)
July 2009
(8)
June 2009
(5)
May 2009
(4)
April 2009
(3)
March 2009
(5)
February 2009
(4)
January 2009
(3)
December 2008
(6)
November 2008
(4)
October 2008
(3)
September 2008
(3)
August 2008
(2)
July 2008
(2)
June 2008
(2)
May 2008
(4)
April 2008
(3)
March 2008
(2)
February 2008
(2)
January 2008
(2)
Tags
.NET
Algorithm
C# 4.0
Coding
DevCenter
KnowledgeBase
Links
LiveGeometry
Roslyn
Silverlight
StructuredEditor
VS 2010
WPF
Common Tasks
Blog Home
Email Blog Author
About
RSS for posts
RSS for comments
Tagged Content List
Blog Post:
DateTime.UtcNow is generally preferable to DateTime.Now
Kirill Osenkov - MSFT
This seems to be commonly known and accepted best practice to use DateTime.UtcNow for non-user facing scenarios such as time interval and timeout measurement. I’ve just done an audit of the Roslyn codebase and replaced most DateTime.Now calls with DateTime.UtcNow. I thought it’d be useful to post my...
on
10 Jan 2012
Blog Post:
How to get DTE from Visual Studio process ID?
Kirill Osenkov - MSFT
DTE is an automation framework that is used to programmatically control Visual Studio, often from another process. It internally uses COM remoting to execute commands from another process on the VS UI thread. A while back I have written about How to start Visual Studio programmatically and get the...
on
10 Aug 2011
Blog Post:
' is in XML, in HTML use '
Kirill Osenkov - MSFT
I just got hit by a very confusing "by design" behavior and it took me a while to figure out what's going on. Here is the line of code: text = System.Security. SecurityElement . Escape (text); This method replaces invalid XML characters in a string with their valid XML equivalent. ...
on
19 Mar 2010
Blog Post:
Unable to cast COM object … to IVsGlobalUndoCapableUndoManager
Kirill Osenkov - MSFT
Hi all, sorry for the absense – we're all really busy fixing Visual Studio 2010 performance, memory consumption, improving stability and fixing last minute bugs. Good news: if you're seeing this: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Editor.Implementation...
on
7 Dec 2009
Blog Post:
Saving images (.bmp, .png, etc) in WPF/Silverlight
Kirill Osenkov - MSFT
I’ve recently added a new feature to Live Geometry that allows users to save the current drawing as a bitmap or a .png file. Just push the save button and pick the desired image format in the Save dialog: Fortunately, both WPF and Silverlight support saving full visual contents of any visual into a file...
on
12 Oct 2009
Blog Post:
Dump Environment Folder Paths
Kirill Osenkov - MSFT
This is just a quick snippet to dump the value of Environment.GetFolderPath for all special folders on a machine (so I don’t have to write it again next time): public static string DumpEnvironmentPaths() { var paths = Enum .GetValues( typeof ( Environment . SpecialFolder )) .Cast< Environment...
on
28 Sep 2009
Blog Post:
Tip: Don’t enter your CodePlex credentials every time
Kirill Osenkov - MSFT
I just ran across an awesome tip at Scott’s blog that is going to save me a whole lot of time: Save Your Codeplex Repository Credentials I was entering my username and password everytime I connected to a CodePlex TFS server. Now I don’t have to! P.S. To make this work on XP, go to Control Panel –>...
on
27 Sep 2009
Blog Post:
Visual Studio disappears when creating a Silverlight 3 Application
Kirill Osenkov - MSFT
I have Visual Studio 2008 SP1 and Silverlight 3 tools on the laptop I’m writing this post on. Ten minutes ago I was trying to create a new Silverlight 3 application through the New Project Dialog and after creating the project Visual Studio just disappeared on me. Usually when VS disappears instantly...
on
10 Aug 2009
Blog Post:
Visual Studio 2010 Beta1 + TFS + HTTPS (TF31001): The ServicePointManager does not support proxies with the https scheme.
Kirill Osenkov - MSFT
This is just a little note to myself and others who might run into this. I was using Visual Studio 2010 and Team Foundation Client to access a CodePlex project over HTTPS (port 443), and got this error message: --------------------------- Microsoft Visual Studio --------------------------- Microsoft...
on
22 Jun 2009
Blog Post:
Remote Desktop: /span across multiple monitors
Kirill Osenkov - MSFT
I spent some time searching the web about Remote Desktop, fullscreen and multiple monitors, so I decided to write down my findings to avoid having to search for them again. /span for multiple monitors If you pass /span to mstsc.exe, the target session’s desktop will become a huge rectangle that equals...
on
10 Apr 2009
Blog Post:
A common globalization bug
Kirill Osenkov - MSFT
I’ve just found and fixed a globalization bug in our test infrastructure where a feature of our testcase management system (resetting a testcase to re-run on a lab machine) just wouldn’t work on a Russian OS. Fortunately, the call stack was easy to investigate: (sorry it’s in Russian - globalization...
on
11 Mar 2009
Blog Post:
Making the XAML editor fast
Kirill Osenkov - MSFT
If you use WPF/Silverlight and prefer working with XAML only (i.e. no visual designer), you can significantly, I repeat, significantly speed-up the XAML editor. Check out this tip from Fabrice Marguerie : Life changer XAML tip for Visual Studio
on
23 Feb 2009
Blog Post:
How to disable optimizations during debugging
Kirill Osenkov - MSFT
Sooner or later you may run into a situation where you need to evaluate a local variable under debugger and all you get is this: "Cannot obtain value of local or argument 'whatever' as it is not available at this instruction pointer, possibly because it has been optimized away'. Well, it turns out...
on
27 Jan 2009
Blog Post:
Kirill's Visual Studio Tips
Kirill Osenkov - MSFT
I decided to compile a small list of Visual Studio features that I use a lot. Code Editor Code Snippets for ‘prop’, ‘foreach’, ‘if’, ‘class’, ‘interface’, Tab-Tab completion Surround with (snippets) - try, if Ctrl+K,D – FormatDocument Ctrl+Left/Right arrows in code editor – jump between...
on
21 Oct 2008
Blog Post:
How to determine the .NET installation directory and CLR version
Kirill Osenkov - MSFT
I recently discovered the System.Runtime.InteropServices. RuntimeEnvironment class, especially RuntimeEnvironment.GetRuntimeDirectory(). Also, RuntimeEnvironment.GetSystemVersion() gets the version of the CLR that is running the current process.
on
7 May 2008
Blog Post:
Coding productivity: macros, shortcuts and snippets
Kirill Osenkov - MSFT
Visual Studio macros are a fantastic productivity booster, which is often under-estimated. It's so easy to record a macro for your repetitive action and then just play it back. Even better, map a macro to a keyboard shortcut. I'll share a couple of examples. InsertCurlies If you open up Visual Studio...
on
4 Apr 2008
Page 1 of 1 (16 items)