This file contains 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
var xmlns = new XmlNamespaceManager(new NameTable()); | |
xmlns.AddNamespace("vsx10", "http://schemas.microsoft.com/developer/vsx-schema/2010"); | |
xmlns.AddNamespace("vsx11", "http://schemas.microsoft.com/developer/vsx-schema/2011"); | |
var vsix = from file in Directory.EnumerateFiles(@"C:\Program Files (x86)\Microsoft Visual Studio 14.0", "extension.vsixmanifest", SearchOption.AllDirectories) | |
where File.ReadAllLines(file)[0].StartsWith("<") | |
select file; | |
var mef = vsix | |
.Select(x => XDocument.Load(x)) |
This file contains 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
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.JavaScript.Common.targets | |
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.targets | |
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\JavaScript\Microsoft.VisualStudio.WJProject.targets | |
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\JavaScript\Microsoft.CodeSharing.JavaScript.targets | |
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.DesignTime.targets | |
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.targets | |
AllTargetOutputGroups => C:\Program Files (x86)\MSBuild\1 |
This file contains 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
<VSDIR>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7@%(Dev.Identity).0)</VSDIR> | |
<VSDIR Condition="'$(VSDIR)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7@%(Dev.Identity).0)</VSDIR> |
This file contains 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
/* | |
url: github.com/*/*/blob/** | |
stylebot does not support comments, so, set the | |
url of the style (in Options) and remove this | |
whole comment | |
*/ | |
.repository-with-sidebar .repository-content { | |
width: calc(100% - 50px); |
This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#InstallKeybdHook | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
; NoTrayIcon | |
; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key. | |
; If you want the buttons to function as they are, add a semicolon (;) to the beginning of each line below. | |
Home::PgUp | |
End::PgDn | |
PgUp::Home |
This file contains 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 static class ObservableExtensions | |
{ | |
static readonly Action<Exception> rethrow = e => ExceptionDispatchInfo.Capture(e).Throw(); | |
static readonly Action nop = () => { }; | |
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext) | |
=> Subscribe(source, onNext, rethrow, nop); | |
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError) | |
=> Subscribe(source, onNext, onError, nop); |
This file contains 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
# Add to your profile so you can run `Cleanup-VS` from any PS prompt | |
Function Cleanup-VS | |
{ | |
$script = (Split-Path -parent $PSCommandPath) + "\vscleanup.ps1" | |
&$script | |
} |
This file contains 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
Feature: AutoFix | |
Applies code fixes during build | |
Scenario: Can apply StyleCop code fix automatically | |
Given Foo.csproj = | |
""" | |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<LangVersion>Latest</LangVersion> | |
<TargetFramework>netstandard2.0</TargetFramework> |
This file contains 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
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$statusUrl = '$(GitHub.StatusUrl)' | |
$token = '$(GitHub.Token)' | |
if ($env:FIXEDSOURCEVERSION -eq $true) { return; } | |
# When the commit that triggered the build/release is a PR merge commit, | |
# this task will adjust the Build.SourceVersion to the original commit, not the | |
# merge commit |
This file contains 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 abstract class FormsTests | |
{ | |
static FormsTests() | |
{ | |
// Force loading of XAML assembly. | |
Debug.WriteLine(typeof(XamlCompilationAttribute).FullName); | |
var mock = new Mock<IPlatformServices> { DefaultValue = DefaultValue.Mock }; | |
mock.Setup(x => x.BeginInvokeOnMainThread(It.IsAny<Action>())) | |
.Callback<Action>(action => action()); |