This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Checks whether the IP address of the given server has changed since the last time this script was called | |
#> | |
Function Resolve-ServerAddress | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true, Position=0)] | |
[string] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: You must reference the assemblies Microsoft.Build.dll and Microsoft.Build.Framework.dll | |
// Both can be tipically found in C:\Program Files (x86)\MSBuild\<VS version>\bin | |
using System; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Logging; | |
namespace ColorAwareMSBuildLogger | |
{ | |
public class Logger : ConsoleLogger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using System.Windows.Forms; | |
namespace SampleForms | |
{ | |
public partial class SampleForm : Form | |
{ | |
public SampleForm() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Based on code from http://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line | |
Function Set-NetConnectionSharing | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$InternetConnection, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: Microsoft.TeamFoundation | |
// Reference: Microsoft.TeamFoudnation.Client | |
// Reference: Microsoft.TeamFoundation.Common | |
// Reference: Microsoft.TeamFoundation.Framework.Server | |
// Reference: Microsoft.TeamFoundation.Server | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Client | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Server.Dataaccesslayer | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Server.DataServices | |
// Copy resulting DLL to %PROGRAMFILES%\Microsoft Team Foundation Server 2010\Application Tier\Web Services\Bin\Plugins |
NewerOlder