Skip to content

Instantly share code, notes, and snippets.

View KirillOsenkov's full-sized avatar

Kirill Osenkov KirillOsenkov

View GitHub Profile
using System.Collections.Concurrent;
using System.Diagnostics.Contracts;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Win32
{
/// <summary>
/// See http://msdn.microsoft.com/en-us/library/cc231196.aspx for details.
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
foreach (var item in GetSequence().Take(50))
{
using System.IO;
using System.Linq;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;
// <?xml version="1.0" encoding="utf-8"?>
// <packages>
// <package id="iTextSharp" version="5.5.9" targetFramework="net452" />
// <package id="PDFsharp" version="1.32.3057.0" targetFramework="net452" />
// </packages>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace EnumPrimes
{
public struct Rational
{
@KirillOsenkov
KirillOsenkov / copy.proj
Last active October 25, 2017 17:48
Override MSBuild Copy task
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Build">
<Copy SourceFiles="copy.proj" DestinationFiles="destination.proj" />
</Target>
<UsingTask TaskName="Copy" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
<ParameterGroup>
<SourceFiles Required="true" ParameterType="Microsoft.Build.Framework.ITaskItem[]" />
<DestinationFolder ParameterType="Microsoft.Build.Framework.ITaskItem" />