Skip to content

Instantly share code, notes, and snippets.

View feO2x's full-sized avatar

Kenny Pflug feO2x

View GitHub Profile
@skarllot
skarllot / net35-cf.md
Last active April 19, 2024 11:07
Build .NET Compact Framework 3.5

Install

Force MSBuild support

  • Copy files and directories from 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5';
  • Copy files from 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\CompactFramework' directory;
  • Create 'RedistList' directory inside created 'CompactFramework' directory;
  • Create 'FrameworkList.xml' inside 'RedistList' directory and type the following:
@nikolay-pshenichny
nikolay-pshenichny / install.ps1
Created May 9, 2015 01:49
Modify "Conditional compilation symbols" from NuGet install.ps1 script
param($installPath, $toolsPath, $package, $project)
if ($project -ne $null)
{
$configuration = $project.ConfigurationManager | Where-Object {$_.ConfigurationName -eq "Debug"}
if ($configuration -ne $null)
{
$oldValue = $configuration.Properties.Item("DefineConstants").Value
@janpieterz
janpieterz / Program.cs
Created March 4, 2015 13:03
Serilog and Topshelf
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Serilog;
using Serilog.Extras.Topshelf;
using Topshelf;
using Topshelf.Logging;
namespace ConsoleApplication1
{
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"