Main menu:

Site search

Archives

Categories

Archive for December, 2008

Where is msbuild on Windows?

Running msbuild on a normal developer pc can be a bit confusing. The shell does not recognise the command and if you do a search you don’t find it. But if you do the search including all non-indexed locations you will it in C:\Windows\Microsoft.NET\Framework. So msbuild is not a program in the programs folder, it is a utility in the .NET folder.

If you want to use it, there is a simpler way, Microsoft Visual Studio 2008 comes with a customized console that you can find here:

Location of the Visual Studio command line tool

Location of the Visual Studio command line tool

And in that console, msbuild is recognised as a command.

Eine XML-Datei mit einer XSLT-Datei verbinden

Ganz oben im XML die folgende zweite Zeile einfügen:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="docu.xsl"?>

Powershell: First thing to do

If you get errors like:

YourScript.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.

or just if Powershell was installed on a new machine you normally have to set to Execution Policy to a reasonable grade.

For home users, just type
Set-ExecutionPolicy Unrestricted
That’s it.
Further information can be found at many places, e.g. here.


And by the way, the path to the Powershell is the following: C:\WINDOWS\system32\windowspowershell\v1.0\

Philip Pullman - Das Bernstein-Teleskop

Stillehalten, damit die Unruhe sich auflöst. Dann erkennt man jenseits des Aufruhrs die grossen Gesetze.

Wie der Berg in sich stillehält, so geht der Weise mit seinen Gedanken nicht über seine Lage hinaus.

- Philip Pullman - Das Bernstein-Teleskop S.138

True and False in the Powershell

How to assign a boolean value to a variable? Easier than you think!

$true und $false are built-in variables. (They are read-only, by the way). So you can write:$yourTrue = $true

Powershell comment

#