-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
142 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "0.1.0", | ||
"command": "dotnet", | ||
"isShellCommand": true, | ||
"tasks": [ | ||
{ | ||
"taskName": "publish", | ||
"args": [ | ||
"${workspaceRoot}/tests/MSBuildTestDriver" | ||
], | ||
"isBuildCommand": true, | ||
"showOutput": "silent", | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kill $(ps aux | grep "/Users/troydai/Code/omnisharp-roslyn/src/OmniSharp/bin/Debug/netcoreapp1.0/osx.10.11-x64/publish/OmniSharp" | grep -v "grep" | cut -d " " -f10) | ||
../../.dotnet/dotnet publish -f netcoreapp1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.Extensions.Logging; | ||
using OmniSharp.Models; | ||
using OmniSharp.MSBuild.ProjectFile; | ||
using OmniSharp.Options; | ||
using TestCommon; | ||
|
||
namespace MSBuildTestDriver | ||
{ | ||
public class MSBuildTestProgram | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
var loggerFactory = new LoggerFactory(); | ||
loggerFactory.AddConsole(); | ||
var logger = loggerFactory.CreateLogger("MSBuild Test Driver"); | ||
|
||
var testProject = TestsContext.Default.GetTestSample("CsProjectSample01"); | ||
var option = new MSBuildOptions(); | ||
var diagnstics = new List<MSBuildDiagnosticsMessage>(); | ||
var project = ProjectFileInfo.Create( | ||
option, | ||
logger, | ||
testProject, | ||
System.IO.Path.Combine(testProject, "ConsoleApplication1", "ConsoleApplication1.csproj"), | ||
diagnstics); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"emitEntryPoint": true | ||
}, | ||
"dependencies": { | ||
"Microsoft.CodeAnalysis.CSharp.Workspaces": "1.3.0-beta1-20160525-03", | ||
"TestCommon": "1.0.0", | ||
"TestUtility": "1.0.0", | ||
"OmniSharp.MSBuild": "1.0.0", | ||
"Microsoft.Build": "0.1.0-*", | ||
"Microsoft.Build.Framework": "0.1.0-*", | ||
"Microsoft.Build.Targets": "0.1.0-*", | ||
"Microsoft.Build.Tasks.Core": "0.1.0-*", | ||
"Microsoft.Build.Utilities.Core": "0.1.0-*", | ||
"Microsoft.Net.Compilers": "1.3.0-beta1-20160525-03", | ||
"Microsoft.NETCore.App": "1.0.0-rc3-004338" | ||
}, | ||
"frameworks": { | ||
"netcoreapp1.0": { | ||
"imports": [ | ||
"netstandardapp1.5", | ||
"dnxcore50", | ||
"portable-net45+win8" | ||
] | ||
} | ||
}, | ||
"runtimes": { | ||
"osx.10.11-x64": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Xunit; | ||
using TestCommon; | ||
using OmniSharp.MSBuild.ProjectFile; | ||
using OmniSharp.Options; | ||
using System.IO; | ||
using Microsoft.Extensions.Logging; | ||
using System.Collections.Generic; | ||
using OmniSharp.Models; | ||
|
||
namespace OmniSharp.MSBuild.Tests | ||
{ | ||
public class ProjectSystemFacts | ||
{ | ||
// [Fact] | ||
public void OpenSimpleConsoleApp() | ||
{ | ||
var testProject = TestsContext.Default.GetTestSample("CsProjectSample01"); | ||
var option = new MSBuildOptions(); | ||
var loggerFactory = new LoggerFactory(); | ||
loggerFactory.AddConsole(); | ||
var logger = loggerFactory.CreateLogger("OpenSimpleConsoleApp.Test"); | ||
var diagnstics = new List<MSBuildDiagnosticsMessage>(); | ||
var project = ProjectFileInfo.Create( | ||
option, | ||
logger, | ||
testProject, | ||
Path.Combine(testProject, "ConsoleApplication1", "ConsoleApplication1.csproj"), | ||
diagnstics); | ||
|
||
// var projectSystem = new MSBuildProjectSystem(); | ||
Assert.NotNull(project); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"csharp.omnisharp": "/Users/troydai/Code/omnisharp-roslyn/src/OmniSharp/bin/Debug/netcoreapp1.0/osx.10.11-x64/publish/OmniSharp" | ||
} |