Skip to content

Instantly share code, notes, and snippets.

View jaredpar's full-sized avatar

Jared Parsons jaredpar

View GitHub Profile
Hello `String``1` world
Status: Failure
---------------------------------------------------------------------
1) Building C:\Users\jaredpar\code\Paket\Paket.sln failed with exitcode 1.
2) MSB4102: C:\Users\jaredpar\code\Paket\tests\Paket.Tests\Paket.Tests.fsproj(68,3): The value "" of the "Project" attribute in element <Import> is invalid. Parameter "path" cannot have zero length.
3) MSB4102: C:\Users\jaredpar\code\Paket\src\Paket\Paket.fsproj(75,3): The value "" of the "Project" attribute in element <Import> is invalid. Parameter "path" cannot have zero length.
4) MSB4102: C:\Users\jaredpar\code\Paket\integrationtests\Paket.IntegrationTests\Paket.IntegrationTests.fsproj(70,3): The value "" of the "Project" attribute in element <Import> is invalid. Parameter "path" cannot have zero length.
5) MSB4102: C:\Users\jaredpar\code\Paket\src\Paket.Core\Paket.Core.fsproj(67,3): The value "" of the "Project" attribute in element <Import> is invalid. Parameter "path" cannot have zero length.
@jaredpar
jaredpar / Conversions.cs
Created June 20, 2016 21:23
ConversionsAreHard
namespace ConversionsAreHard
{
class A
{
public static implicit operator A(int i) => null;
}
class B : A
{
public static implicit operator B(long i) => null;
public void Example(string content)
{
var path = Server.MapPath("/html");
#if CSHARP7
string contentPath(string file)
#else
Func<string, string> contentPath = file
#endif
=> $"{path}/{file}.html";
var fileName = contentPath(content);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Program
{
error MSB4018: The "CreateZipPackage" task failed unexpectedly.
error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Setup.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
error MSB4018: File name: 'Microsoft.VisualStudio.Setup.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
error MSB4018: at Microsoft.VsSDK.Build.Tasks.CreateZipPackage.Execute()
error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
error MSB4018:
error MSB4018: WRN: Assembly binding logging is turned OFF.
error MSB4018: To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
error MSB4018: Note: There is some performance penalty assoc
@jaredpar
jaredpar / virtual.cs
Created February 21, 2017 19:04
Is this method virtual?
class Program
{
static void Main(string[] args)
{
var p = new Program();
p.M();
}
public void M()
{
class Program
{
static void Main(string[] args)
{
var p = new Program();
p.M();
}
public void M()
{
# Blittable Types
* [x] Proposed
* [ ] Prototype
* [ ] Implementation
* [ ] Specification
## Summary
[summary]: #summary
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<Import Project="..\..\..\..\build\Targets\SettingsSdk.props" />
<PropertyGroup>
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
<PlatformTarget>AnyCPU</PlatformTarget>
<ProjectGuid>{E3CD2895-76A8-4D11-A316-EA67CB5EA42C}</ProjectGuid>
<OutputType>Exe</OutputType>