Skip to content

Instantly share code, notes, and snippets.

Avatar
👺
悪い子はいねーがー

kazuhiko kikuchi kazuk

👺
悪い子はいねーがー
View GitHub Profile
@kazuk
kazuk / Directory.build.props
Created Feb 8, 2017
QUICKFIX for NuGet packaging on VS2017 RC
View Directory.build.props
<?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>
View Program.cs
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 Aug 19, 2015
Azure Service Fabric の Development Service Fabric の構成をいじる方法
View Modify Development Service Fabric Configuration.md

管理者モードの 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 Jul 26, 2013
Enumerate Project Property
View TextTemplate.tt
<#@ 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 Jun 22, 2013
プロジェクトのマニフェストリソース名を T4MVC っぽく
View ManifestResources.tt
<#@ 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 Apr 24, 2013
Code Digger が吐いたテストを単体テストに取りこむ君
View CodeDigger.TestPickuper.tt
<#@ 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 Apr 22, 2013
RazorEngineAndLinq
View Program.cs
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 Apr 17, 2013
InternalsVisibleTo 属性を吐くT4 Template
View InternalVisibleToSigned.tt
<#@ 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 Mar 5, 2013
msbuild targets file for NuGet packaging & publish to local repos
View CustomBuild.targets
<?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 Dec 22, 2012
performace test for msgpack-cli TestStringMedium
View Program.cs
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using MsgPack;
namespace PerfTest
{
class Program
You can’t perform that action at this time.