Skip to content

Instantly share code, notes, and snippets.

@tmori3y2
tmori3y2 / TestXDocWriteTo.linq
Last active May 25, 2017 00:14
TestXDocWriteTo linqpad script
<Query Kind="Program">
<Output>DataGrids</Output>
<Reference>&lt;RuntimeDirectory&gt;\System.Xml.Serialization.dll</Reference>
<Namespace>System.Globalization</Namespace>
<Namespace>System.IO</Namespace>
<Namespace>System.Linq</Namespace>
<Namespace>System.Text</Namespace>
<Namespace>System.Xml</Namespace>
<Namespace>System.Xml.Linq</Namespace>
<Namespace>System.Xml.Schema</Namespace>
using System;
using System.Runtime.InteropServices;
public static class Program
{
public static void Main()
{
"# Zero".Dump();
(0.0f).ToBinaryStringDump("Zero");
(-0.0f).ToBinaryStringDump("-Zero");
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
public static class Program
{
public static void Main()
{
var text = "Hello World";
using System;
using System.Collections.Generic;
using System.Linq;
public static class Program
{
public static void Main()
{
var text = "Hello World";
text.Dump(1);
@tmori3y2
tmori3y2 / NuGet.config
Last active October 31, 2016 12:38
NuGet.config placed the ancestor path of solutions
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value=".\packages" />
</config>
<packageSources>
<add key="LocalPackageSource" value=".\NuGetPackageSource" />
</packageSources>
</configuration>
<script src="http://gist-it.appspot.com/github/tmori3y2/BlogSamples/blob/Article_20160223/MySampleControls/MyCollectionControls/MyCollectionControls/ViewModels/MyCollectionViewModel.cs?slice=132:147"></script>
@tmori3y2
tmori3y2 / spec.nuspec
Created May 3, 2016 08:39
.nuspec template
<?xml version="1.0"?>
<package>
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
@tmori3y2
tmori3y2 / project.nuspec
Last active April 7, 2016 10:54
.nuspec template
<?xml version="1.0"?>
<package>
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
@tmori3y2
tmori3y2 / MSBuildTasks.ImportedTask.props
Last active April 3, 2016 02:33
MSBuild project property sheet file which is imported by MSBuildTasks.ImportTasks.props.
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
** Packs the project assembly. **
<PropertyGroup>
<CreatesNuGetPackage>true</CreatesNuGetPackage>
<NuGetPacksProject>true</NuGetPacksProject>
<NuGetPacksForTool>false</NuGetPacksForTool>
</PropertyGroup>
-->
@tmori3y2
tmori3y2 / MSBuildTasks.ImportTasksPack.targets
Created March 26, 2016 05:29
MSBuild target file which is imported in the project manually.
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Edit your project and insert MSBuildTasks.ImportTasksPack.targets below Microsoft.CSharp.props
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="build\MSBuildTasks.ImportTasksPack.targets" Condition="Exists('build\MSBuildTasks.ImportTasksPack.targets')" />
-->
<Target Name="Build"
Condition=" '$(Configuration)' == 'Release' ">
<Exec WorkingDirectory="$(ProjectDir)"
Command="&quot;$(NuGetExe)&quot; pack $(ProjectName).nuspec -Tool -Prop Configuration=Release -OutputDirectory &quot;$(NuGetDeploy)&quot;" />