Skip to content

Instantly share code, notes, and snippets.

View kazuk's full-sized avatar
👺
悪い子はいねーがー

kazuhiko kikuchi kazuk

👺
悪い子はいねーがー
View GitHub Profile
@kazuk
kazuk / Directory.build.props
Created February 8, 2017 06:31
QUICKFIX for NuGet packaging on VS2017 RC
<?xml version="1.0" encoding="utf-8" ?>
<Project>
<!--
PATCH for nuget package warning Microsoft.DiaSymReader.Native.x86.dll and Microsoft.DiaSymReader.Native.amd64.dll
-->
<ItemGroup Condition="!Exists('project.json') AND !Exists('$(MSBuildProjectName).project.json')">
<Content Include="$(NuGetPackageRoot)microsoft.diasymreader.native\1.4.0\runtimes\win\native\Microsoft.DiaSymReader.Native.x86.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
@kazuk
kazuk / Modify Development Service Fabric Configuration.md
Created August 19, 2015 07:53
Azure Service Fabric の Development Service Fabric の構成をいじる方法

管理者モードの Powershell で

PS C:\Windows\system32> Stop-Service FabricHostSvc -WarningAction SilentlyContinue

PS C:\Windows\system32> Remove-Item C:\SfDevCluster\Data -Force -Recurse

PS C:\Windows\system32> notepad C:\SfDevCluster\Manifests\<your machine name>-Server-ScaleMin.xml
@kazuk
kazuk / TextTemplate.tt
Created July 26, 2013 01:50
Enumerate Project Property
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="EnvDTE" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.ComponentModel" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".txt" #>
<#
@kazuk
kazuk / ManifestResources.tt
Created June 22, 2013 05:22
プロジェクトのマニフェストリソース名を T4MVC っぽく
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="$(TargetPath)" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="EnvDTE" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".cs" #>
@kazuk
kazuk / CodeDigger.TestPickuper.tt
Created April 24, 2013 05:13
Code Digger が吐いたテストを単体テストに取りこむ君
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="$(SolutionDir)\CodeDiggerTestPickuper\bin\Debug\CodeDiggerTestPickuper.dll"#>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Xml.linq" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Xml.Linq" #>
@kazuk
kazuk / Program.cs
Created April 22, 2013 07:23
RazorEngineAndLinq
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using RazorEngine;
using RazorEngine.Compilation;
using RazorEngine.Compilation.Inspectors;
using RazorEngine.Templating;
@kazuk
kazuk / InternalVisibleToSigned.tt
Created April 17, 2013 08:22
InternalsVisibleTo 属性を吐くT4 Template
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Reflection" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".cs" #>
using System.Runtime.CompilerServices;
@kazuk
kazuk / CustomBuild.targets
Created March 5, 2013 09:33
msbuild targets file for NuGet packaging & publish to local repos
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup >
<AvailableItemName Include="NuGetSpec">
<Visible>false</Visible>
</AvailableItemName>
</ItemGroup>
<PropertyGroup>
<NuGetRepository Condition="'$(NuGetRepository)' == ''">\\nugetrepos.local\NuGetRepos</NuGetRepository>
@kazuk
kazuk / Program.cs
Created December 22, 2012 05:44
performace test for msgpack-cli TestStringMedium
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using MsgPack;
namespace PerfTest
{
class Program