Skip to content

Instantly share code, notes, and snippets.

@stofte
Last active May 4, 2016 15:34
Show Gist options
  • Save stofte/c1cfe1ea128fb2058c4db652886da1c2 to your computer and use it in GitHub Desktop.
Save stofte/c1cfe1ea128fb2058c4db652886da1c2 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Reflection;
using System.Runtime.Loader;
using Microsoft.DotNet.ProjectModel.Workspaces;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
var assemblyName = "test";
var jsonPath = @"C:\dd";
var sln = new ProjectJsonWorkspace(jsonPath);
Console.WriteLine("Hello World!");
}
}
}
{
"version": "1.0.0-*",
"buildOptions": {
"preserveCompilationContext": true,
"emitEntryPoint": true
},
"dependencies": {
"NETStandard.Library": "1.5.0-*",
"System.Runtime.Loader": "4.0.0-*",
"Microsoft.DotNet.ProjectModel.Workspaces": "1.0.0-*",
"Microsoft.CodeAnalysis": "1.3.0-beta1-20160429-01",
"Microsoft.EntityFrameworkCore": "1.0.0-*",
"Microsoft.NETCore.App": {
"version": "1.0.0-*",
"type": "platform"
}
},
"frameworks": {
"netcoreapp1.0": {
"imports": [ "portable-net45+win8+wp8+wpa81", "portable-net45+win8+wp8" ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment