Where to Find MSBuild.exe

No Comments »

MSBuild is the build tool for Microsoft Visual Studio.  Developers use MSBuild to build a Visual Studio project or solution file from a command line, batch file, build tool, or automated script. 

A new version of MSBuild.exe is included with each version of the .NET Framework stored in “%WinDir%Microsoft.NETFramework” on your Windows PC.  The MSBuild.exe path depends on the .NET Framework version used to build your project.  Typically you will want to call the most recent version of MSBuild.exe installed on your computer:

.NET v2.0:
%WinDir%Microsoft.NETFrameworkv2.0.50727MSBuild.exe

.NET v3.5:
%WinDir%Microsoft.NETFrameworkv3.5MSBuild.exe

.NET v4.0:
%WinDir%Microsoft.NETFrameworkv4.0.30319MSBuild.exe

MSBuild Command Line Reference

C# TextBox Scroll to Cursor

No Comments »

To scroll a C# TextBox to the cursor/caret, it’s important that the TextBox is both visible and focused, then call the ScrollToCaret method:

textBox.Focus();
textBox.ScrollToCaret();

To scroll to the bottom/end of a TextBox, set the SelectionLength to 0 to remove any selection, then set SelectionStart to the end of the text in the TextBox:

textBox.SelectionLength = 0;
textBox.SelectionStart = textBox.Text.Length;
textBox.Focus();
textBox.ScrollToCaret();

Mono 2.8 Released with C# 4.0 Support

No Comments »

Mono.  Trademark by Novell.

Mono is an open source implementation of Microsoft’s .NET Framework based on the ECMA standards for C# and the Common Language Runtime.  Mono enables developers to build Linux and cross-platform applications with improved productivity.

Sponsored by Novell, Mono has released version 2.8, which includes full support for C# v4.0, improvements to the optional LLVM-based Mono backend, and more efficient garbage collection.

Download Mono 2.8

 

Get More .NET News

Are you interested in .NET development news like this without having to wade through pages of code and crap?  Then check out Dot-Net-News.com for the latest news and information about the Microsoft .NET Framework and development ecosystem, including C#, Visual Basic and Visual Studio.  No fluff, no spam, just the facts, man.

« go back