- System.Net
- System.Net.Http
- System.Net.Sockets
- System.Net.Cache
- System.Net.WebSockets
- System.Net.HttpListener
- System.Runtime.Serialization.CodeGeneration
- System.Security.Cryptography.Xml.SignedXml
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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Security.Policy; | |
namespace MsBuild.AssemblyFu | |
{ | |
internal interface IAssemblyAttributeGetter |
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
<!--?xml version="1.0" encoding="utf-8"?--> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask | |
TaskName="LogItems" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" > | |
<ParameterGroup> | |
<Items Required="true" ParameterType="Microsoft.Build.Framework.ITaskItem[]" /> | |
<Metadata ParameterType="Microsoft.Build.Framework.ITaskItem[]" /> | |
<Importance /> |
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
function Add-GitIgnoreForVS ([switch]$DisableNugetRestore,[switch]$PassThru) { | |
$cmdArgs = @{ | |
Name="VisualStudio" | |
PassThru=$PassThru | |
Uncomment=( & {if($DisableNugetRestore) { @() } else { @("packages/") } }) | |
} | |
Add-GitIgnore @cmdArgs | |
} | |
function Add-GitIgnore ([string]$Name, [switch]$PassThru, [string]$UserRepo="github/gitignore", [string]$Branch="master", [string[]]$Uncomment) { |
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
# Load some types initially so the cmdlets work | |
Add-TFSApiAssembly | |
# Create a TFS TeamProjectCollection and extend it with some common service properties for easy access | |
$tfs = Get-Tfs -Uri https://tfs.somedomain.com/tfs/ProjectCollection -Services BS, VCS, TM -Verbose | |
# You can write cmdlets or you can use the built in API and add your own extensions | |
$buildDefinitions = Get-TfsBuildDefinition -Tfs $tfs -TeamProject MyProject | |
# $buildDefinitions = $tfs.BS.QueryBuildDefinitions('MyProject') |
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
public class MyHttpWebRequest : HttpWebRequest | |
{ | |
private static readonly IFormatterConverter Converter = new FormatterConverter(); | |
private static readonly StreamingContext Context = new StreamingContext(StreamingContextStates.Clone); | |
public MyHttpWebRequest(string url) | |
: this(new Uri(url)) | |
{ | |
} | |
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
<UsingTask | |
TaskName="JoinItems" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" > | |
<ParameterGroup> | |
<OuterItems ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="true" /> | |
<OuterProperty Required="false" ParameterType="System.String" /> | |
<InnerItems ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="true" /> | |
<InnerProperty Required="false" ParameterType="System.String" /> | |
<IgnoreCase Required="false" ParameterType="System.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
function Add-ServerFarm { | |
[CmdletBinding(SupportsShouldProcess=$true)] | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$Name, | |
[Parameter(Mandatory=$true)] | |
[string[]]$Servers, |
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
#region Copyright | |
//The MIT License (MIT) | |
// | |
//Copyright (c) 2013 Adam Tybor ([email protected]) | |
// | |
//Permission is hereby granted, free of charge, to any person obtaining a copy | |
//of this software and associated documentation files (the "Software"), to deal | |
//in the Software without restriction, including without limitation the rights | |
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
//copies of the Software, and to permit persons to whom the Software is |
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
<# | |
The MIT License (MIT) | |
Copyright (c) 2014 Adam Tybor | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |