diff --git a/TestAssets/ProjectModelServer/DthTestProjects/global.json b/TestAssets/ProjectModelServer/DthTestProjects/global.json
deleted file mode 100644
index 364730368..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/global.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "projects": ["src"]
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/BrokenProjectPathSample/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/BrokenProjectPathSample/project.json
deleted file mode 100644
index 6390ad290..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/BrokenProjectPathSample/project.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "dependencies": {
- "Microsoft.NETCore.App": "1.0.0",
- "EmptyLibrary": "1.0.0-*"
- },
- "frameworks": {
- "netcoreapp1.0": {}
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyConsoleApp/Program.cs b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyConsoleApp/Program.cs
deleted file mode 100644
index 6c7859b64..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyConsoleApp/Program.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace Misc.DthTestProjects.EmptyConsoleApp
-{
- public class Program
- {
- public int Main(string[] args)
- {
- Console.WriteLine("Hello, world.");
- return 0;
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyConsoleApp/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyConsoleApp/project.json
deleted file mode 100644
index a1827ad70..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyConsoleApp/project.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "dependencies": {},
- "frameworks": {
- "netcoreapp1.0": {
- "dependencies": {
- "Microsoft.NETCore.App": "1.0.0"
- }
- },
- "dnx451": {}
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/Class.cs b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/Class.cs
deleted file mode 100644
index 3fe898a95..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/Class.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System;
-
-namespace Misc.DthTestProjects.EmptyLibrary
-{
- public class Class
- {
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/project-update.json b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/project-update.json
deleted file mode 100644
index ebe3e29af..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/project-update.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "dependencies": { },
- "frameworks": {
- "dnxcore50": {
- "dependencies":{
- "NETStandard.Library": "1.0.0-rc2-23811",
- "System.Console": "4.0.0-beta-*"
- }
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/project.json
deleted file mode 100644
index 3ab07f47c..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyLibrary/project.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "version": "1.0.0-*",
- "dependencies": {},
- "frameworks": {
- "netstandard1.3": {
- "imports": "dnxcore50",
- "dependencies": {
- "NETStandard.Library": "1.6.0"
- }
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyNetCoreApp/Program.cs b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyNetCoreApp/Program.cs
deleted file mode 100644
index 9e6dde0c3..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyNetCoreApp/Program.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace Misc.DthTestProjects.SimpleConsoleApp
-{
- public class Program
- {
- public int Main(string[] args)
- {
- Console.WriteLine("Hello, world.");
- return 0;
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyNetCoreApp/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyNetCoreApp/project.json
deleted file mode 100644
index b20601e54..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/EmptyNetCoreApp/project.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "dependencies": {},
- "frameworks": {
- "netcoreapp1.0": {
- "imports": "dnxcore50",
- "dependencies": {
- "Microsoft.NETCore.App": {
- "type": "platform",
- "version": "1.0.0"
- },
- "Newtonsoft.Json": "8.0.3"
- }
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/FailReleaseProject/Program.cs b/TestAssets/ProjectModelServer/DthTestProjects/src/FailReleaseProject/Program.cs
deleted file mode 100644
index e2e4aa3a1..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/FailReleaseProject/Program.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace FailReleaseProject
-{
- public class Program
- {
- public int Main(string[] args)
- {
-#if RELEASE
- // fail the compilation under Release configuration
- i
-#endif
- return 0;
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/FailReleaseProject/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/FailReleaseProject/project.json
deleted file mode 100644
index 6bddf49a1..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/FailReleaseProject/project.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "frameworks": {
- "netcoreapp1.0": {
- "imports": "dnxcore50",
- "dependencies": {
- "Microsoft.NETCore.App": "1.0.0"
- }
- }
- },
- "dependencies": {}
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/IncompatiblePackageSample/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/IncompatiblePackageSample/project.json
deleted file mode 100644
index 6a03cc355..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/IncompatiblePackageSample/project.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "dependencies": {
- "Microsoft.NETCore.App": "1.0.0",
- "Microsoft.Web.Administration": "7.0.0"
- },
- "frameworks": {
- "netcoreapp1.0": {}
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/UnresolvedPackageSample/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/UnresolvedPackageSample/project.json
deleted file mode 100644
index e9ba88773..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/UnresolvedPackageSample/project.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "dependencies": {
- "NoSuchPackage": "1.0.0"
- },
- "frameworks": {
- "dnx451": { }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthTestProjects/src/UnresolvedProjectSample/project.json b/TestAssets/ProjectModelServer/DthTestProjects/src/UnresolvedProjectSample/project.json
deleted file mode 100644
index 330ce6436..000000000
--- a/TestAssets/ProjectModelServer/DthTestProjects/src/UnresolvedProjectSample/project.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "dependencies": {
- "EmptyLibrary": "1.0.0-*"
- },
- "frameworks": {
- "dnx451": { }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/ext/Newtonsoft.Json/project.json b/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/ext/Newtonsoft.Json/project.json
deleted file mode 100644
index 49f740598..000000000
--- a/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/ext/Newtonsoft.Json/project.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "version": "9.0.1",
- "dependencies": {
- },
- "frameworks": {
- "netstandard1.5": { }
- }
-}
diff --git a/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/home/global.json b/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/home/global.json
deleted file mode 100644
index c6bd139a9..000000000
--- a/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/home/global.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "projects": [
- "src",
- "../ext"
- ]
-}
diff --git a/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/home/src/MainProject/project.json b/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/home/src/MainProject/project.json
deleted file mode 100644
index aa50018cd..000000000
--- a/TestAssets/ProjectModelServer/DthUpdateSearchPathSample/home/src/MainProject/project.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "dependencies": {
- "Newtonsoft.Json": "9.0.1"
- },
- "frameworks": {
- "netstandard1.5": {}
- }
-}
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/IncorrectGlobalJson/global.json b/TestAssets/ProjectModelServer/IncorrectGlobalJson/global.json
deleted file mode 100644
index 6663ba432..000000000
--- a/TestAssets/ProjectModelServer/IncorrectGlobalJson/global.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "projects": ["src"]]
-}
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/NuGet.Config b/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/NuGet.Config
deleted file mode 100755
index e80222c1f..000000000
--- a/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/NuGet.Config
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/Program.cs b/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/Program.cs
deleted file mode 100755
index 51233cffa..000000000
--- a/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/Program.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-
-namespace ConsoleApplication
-{
- public class Program
- {
- public static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/project.json b/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/project.json
deleted file mode 100755
index 71152b304..000000000
--- a/TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/project.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "version": "1.0.0-*",
- "buildOptions": {
- "emitEntryPoint": true
- },
- "dependencies": {
- "Microsoft.NETCore.App": "1.0.0"
- },
- "frameworks": {
- "netcoreapp1.0": {}
- }
-}
diff --git a/TestAssets/ProjectModelServer/IncorrectProjectJson/project.json b/TestAssets/ProjectModelServer/IncorrectProjectJson/project.json
deleted file mode 100644
index 891039f78..000000000
--- a/TestAssets/ProjectModelServer/IncorrectProjectJson/project.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "version": "1.0.0-*",
- "dependencies": {
- "
- },
- "frameworks": {
- []
- }
-}
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/.gitignore b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/.gitignore
deleted file mode 100644
index 497f0e325..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# Negates the lock file
-# MSBuiild references' project model server tests requires these lock files, since they can't be created without VS tooling.
-!project.lock.json
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/Class1.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/Class1.cs
deleted file mode 100644
index 08281c64a..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace ClassLibrary1
-{
- public class Class1
- {
- }
-}
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/ClassLibrary1.csproj b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/ClassLibrary1.csproj
deleted file mode 100644
index 7364cb64d..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/ClassLibrary1.csproj
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {FD073258-550B-4E57-86AE-DC4874015EB1}
- Library
- Properties
- ClassLibrary1
- ClassLibrary1
- v4.5.2
- 512
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- ..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll
- True
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/Properties/AssemblyInfo.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/Properties/AssemblyInfo.cs
deleted file mode 100644
index 6437643a7..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("ClassLibrary1")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("ClassLibrary1")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("fd073258-550b-4e57-86ae-dc4874015eb1")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/packages.config b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/packages.config
deleted file mode 100644
index 1975352b1..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary1/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/Class1.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/Class1.cs
deleted file mode 100644
index ad2fff55e..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace ClassLibrary2
-{
- public class Class1
- {
- }
-}
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/ClassLibrary2.csproj b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/ClassLibrary2.csproj
deleted file mode 100644
index fb17ee317..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/ClassLibrary2.csproj
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- 0f2d2a48-e867-496c-85a7-e97b64cfeda4
- Library
- Properties
- ClassLibrary2
- ClassLibrary2
- v4.6
- 512
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/Properties/AssemblyInfo.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/Properties/AssemblyInfo.cs
deleted file mode 100644
index b40cfab4c..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary2/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("ClassLibrary2")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("ClassLibrary2")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("0f2d2a48-e867-496c-85a7-e97b64cfeda4")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/Class1.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/Class1.cs
deleted file mode 100644
index 21384c5b2..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace ClassLibrary3
-{
- public class Class1
- {
- }
-}
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/ClassLibrary3.csproj b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/ClassLibrary3.csproj
deleted file mode 100644
index 0bcde3dfe..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/ClassLibrary3.csproj
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- 428e95cb-8435-414b-a313-9d734c633b3e
- Library
- Properties
- ClassLibrary3
- ClassLibrary3
- v4.6
- 512
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/Properties/AssemblyInfo.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/Properties/AssemblyInfo.cs
deleted file mode 100644
index 0eadf724e..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ClassLibrary3/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("ClassLibrary3")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("ClassLibrary3")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("428e95cb-8435-414b-a313-9d734c633b3e")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ConsoleApp13.sln b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ConsoleApp13.sln
deleted file mode 100644
index 1ac8ff099..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/ConsoleApp13.sln
+++ /dev/null
@@ -1,53 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25029.0
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1443ACE0-3065-4C20-AD59-D561798AE0A5}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0AE82780-22C8-4DC8-8F1E-86977FDD092F}"
- ProjectSection(SolutionItems) = preProject
- global.json = global.json
- EndProjectSection
-EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ConsoleApp13", "src\ConsoleApp13\ConsoleApp13.xproj", "{767D3038-AC3A-4722-B21F-F85F2CBC3AA3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{FD073258-550B-4E57-86AE-DC4874015EB1}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary2", "ClassLibrary2\ClassLibrary2.csproj", "{0F2D2A48-E867-496C-85A7-E97B64CFEDA4}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary3", "ClassLibrary3\ClassLibrary3.csproj", "{428E95CB-8435-414B-A313-9D734C633B3E}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {767D3038-AC3A-4722-B21F-F85F2CBC3AA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {767D3038-AC3A-4722-B21F-F85F2CBC3AA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {767D3038-AC3A-4722-B21F-F85F2CBC3AA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {767D3038-AC3A-4722-B21F-F85F2CBC3AA3}.Release|Any CPU.Build.0 = Release|Any CPU
- {FD073258-550B-4E57-86AE-DC4874015EB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FD073258-550B-4E57-86AE-DC4874015EB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FD073258-550B-4E57-86AE-DC4874015EB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FD073258-550B-4E57-86AE-DC4874015EB1}.Release|Any CPU.Build.0 = Release|Any CPU
- {0F2D2A48-E867-496C-85A7-E97B64CFEDA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0F2D2A48-E867-496C-85A7-E97B64CFEDA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0F2D2A48-E867-496C-85A7-E97B64CFEDA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0F2D2A48-E867-496C-85A7-E97B64CFEDA4}.Release|Any CPU.Build.0 = Release|Any CPU
- {428E95CB-8435-414B-A313-9D734C633B3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {428E95CB-8435-414B-A313-9D734C633B3E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {428E95CB-8435-414B-A313-9D734C633B3E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {428E95CB-8435-414B-A313-9D734C633B3E}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {767D3038-AC3A-4722-B21F-F85F2CBC3AA3} = {1443ACE0-3065-4C20-AD59-D561798AE0A5}
- {FD073258-550B-4E57-86AE-DC4874015EB1} = {1443ACE0-3065-4C20-AD59-D561798AE0A5}
- {0F2D2A48-E867-496C-85A7-E97B64CFEDA4} = {1443ACE0-3065-4C20-AD59-D561798AE0A5}
- {428E95CB-8435-414B-A313-9D734C633B3E} = {1443ACE0-3065-4C20-AD59-D561798AE0A5}
- EndGlobalSection
-EndGlobal
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/global.json b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/global.json
deleted file mode 100644
index 5e6422e6d..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/global.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "projects": [ "src", "test" ]
-}
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/MainApp.xproj b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/MainApp.xproj
deleted file mode 100644
index ec559dc46..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/MainApp.xproj
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- 767d3038-ac3a-4722-b21f-f85f2cbc3aa3
- ConsoleApp13
- ..\..\artifacts\obj\$(MSBuildProjectName)
- ..\..\artifacts\
- v4.6
-
-
- 2.0
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/Program.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/Program.cs
deleted file mode 100644
index 6723332b1..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/Program.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace ConsoleApp13
-{
- public class Program
- {
- public static void Main(string[] args)
- {
- var q = new ClassLibrary1.Class1();
- }
- }
-}
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/Properties/AssemblyInfo.cs b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/Properties/AssemblyInfo.cs
deleted file mode 100644
index 83e8803f8..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("ConsoleApp13")]
-[assembly: AssemblyTrademark("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("767d3038-ac3a-4722-b21f-f85f2cbc3aa3")]
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.fragment.lock.json b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.fragment.lock.json
deleted file mode 100644
index 1efff4670..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.fragment.lock.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "version": 2,
- "exports": {
- "ClassLibrary1/1.0.0": {
- "type": "project",
- "framework": ".NETFramework,Version=v4.5.2",
- "compile": {
- "bin/Debug/ClassLibrary1.dll": {}
- },
- "runtime": {
- "../packages/Newtonsoft.Json.8.0.3/lib/net45/Newtonsoft.Json.dll": {},
- "bin/Debug/ClassLibrary1.dll": {}
- }
- },
- "ClassLibrary2/1.0.0": {
- "type": "project",
- "framework": ".NETFramework,Version=v4.6",
- "compile": {
- "bin/Debug/ClassLibrary2.dll": {}
- },
- "runtime": {
- "bin/Debug/ClassLibrary2.dll": {}
- }
- },
- "ClassLibrary3/1.0.0": {
- "type": "project",
- "framework": ".NETFramework,Version=v4.6",
- "compile": {
- "bin/Debug/ClassLibrary3.dll": {}
- },
- "runtime": {
- "bin/Debug/ClassLibrary3.dll": {}
- }
- }
- }
-}
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.json b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.json
deleted file mode 100644
index 34284fa19..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "version": "1.0.0-*",
- "buildOptions": {
- "emitEntryPoint": true
- },
- "frameworks": {
- "net46": {
- "dependencies": {
- "ClassLibrary1": {
- "target": "project"
- },
- "ClassLibrary2": {
- "target": "project"
- },
- "ClassLibrary3": {
- "target": "project"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.lock.json b/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.lock.json
deleted file mode 100644
index 244c3771b..000000000
--- a/TestAssets/ProjectModelServer/MSBuildReferencesProjects/ValidCase01/src/MainApp/project.lock.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "locked": false,
- "version": 2,
- "targets": {
- ".NETFramework,Version=v4.6": {
- "ClassLibrary1/1.0.0": {
- "type": "project"
- },
- "ClassLibrary2/1.0.0": {
- "type": "project"
- },
- "ClassLibrary3/1.0.0": {
- "type": "project"
- }
- },
- ".NETFramework,Version=v4.6/win7-x64": {
- "ClassLibrary1/1.0.0": {
- "type": "project"
- },
- "ClassLibrary2/1.0.0": {
- "type": "project"
- },
- "ClassLibrary3/1.0.0": {
- "type": "project"
- }
- },
- ".NETFramework,Version=v4.6/win7-x86": {
- "ClassLibrary1/1.0.0": {
- "type": "project"
- },
- "ClassLibrary2/1.0.0": {
- "type": "project"
- },
- "ClassLibrary3/1.0.0": {
- "type": "project"
- }
- }
- },
- "libraries": {
- "ClassLibrary1/1.0.0": {
- "type": "project",
- "msbuildProject": "../../ClassLibrary1/ClassLibrary1.csproj"
- },
- "ClassLibrary2/1.0.0": {
- "type": "project",
- "msbuildProject": "../../ClassLibrary2/ClassLibrary2.csproj"
- },
- "ClassLibrary3/1.0.0": {
- "type": "project",
- "msbuildProject": "../../ClassLibrary3/ClassLibrary3.csproj"
- }
- },
- "projectFileDependencyGroups": {
- "": [],
- ".NETFramework,Version=v4.6": [
- "ClassLibrary1",
- "ClassLibrary2",
- "ClassLibrary3"
- ]
- }
-}
\ No newline at end of file
diff --git a/TestAssets/ProjectModelServer/MscorlibLibraryDuplication/project.json b/TestAssets/ProjectModelServer/MscorlibLibraryDuplication/project.json
deleted file mode 100644
index a446526e2..000000000
--- a/TestAssets/ProjectModelServer/MscorlibLibraryDuplication/project.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "dependencies": {
- },
- "frameworks": {
- "net45": {
- "frameworkAssemblies": {
- "mscorlib": ""
- }
- }
- }
-}
\ No newline at end of file
diff --git a/build_projects/dotnet-cli-build/TestTargets.cs b/build_projects/dotnet-cli-build/TestTargets.cs
index db692a7ee..b18bee36f 100644
--- a/build_projects/dotnet-cli-build/TestTargets.cs
+++ b/build_projects/dotnet-cli-build/TestTargets.cs
@@ -30,8 +30,6 @@ namespace Microsoft.DotNet.Cli.Build
// "dotnet-compile-fsc.Tests",
"dotnet-new.Tests",
"dotnet-pack.Tests",
- // TODO: https://github.com/dotnet/cli/issues/3734
- //"dotnet-projectmodel-server.Tests",
"dotnet-publish.Tests",
"dotnet-resgen.Tests",
"dotnet-run.Tests",
@@ -137,19 +135,6 @@ namespace Microsoft.DotNet.Cli.Build
.Execute()
.EnsureSuccessful();
- // The 'ProjectModelServer' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output
- dotnet.Restore(
- "--verbosity", "verbose",
- "--infer-runtimes")
- .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectModelServer", "DthTestProjects"))
- .Execute();
-
- dotnet.Restore(
- "--verbosity", "verbose",
- "--infer-runtimes")
- .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectModelServer", "DthUpdateSearchPathSample"))
- .Execute();
-
return c.Success();
}
diff --git a/src/dotnet/Program.cs b/src/dotnet/Program.cs
index 9cabbcffc..a9508a01b 100644
--- a/src/dotnet/Program.cs
+++ b/src/dotnet/Program.cs
@@ -10,7 +10,6 @@ using System.Text;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.Configurer;
using Microsoft.DotNet.InternalAbstractions;
-using Microsoft.DotNet.ProjectModel.Server;
using Microsoft.DotNet.Tools.Build;
using Microsoft.DotNet.Tools.Compiler;
using Microsoft.DotNet.Tools.Compiler.Csc;
@@ -33,7 +32,6 @@ namespace Microsoft.DotNet.Cli
["help"] = HelpCommand.Run,
["new"] = NewCommand.Run,
["pack"] = PackCommand.Run,
- ["projectmodel-server"] = ProjectModelServerCommand.Run,
["publish"] = PublishCommand.Run,
["restore"] = RestoreCommand.Run,
["run"] = RunCommand.Run,
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/ConnectionContext.cs b/src/dotnet/commands/dotnet-projectmodel-server/ConnectionContext.cs
deleted file mode 100644
index 235db0530..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/ConnectionContext.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using System.Collections.Generic;
-using System.Net.Sockets;
-using Microsoft.DotNet.ProjectModel.Server.Models;
-
-namespace Microsoft.DotNet.ProjectModel.Server
-{
- internal class ConnectionContext
- {
- private readonly string _hostName;
- private readonly ProcessingQueue _queue;
- private readonly IDictionary _projects;
-
- public ConnectionContext(Socket acceptedSocket,
- string hostName,
- ProtocolManager protocolManager,
- DesignTimeWorkspace workspaceContext,
- IDictionary projects)
- {
- _hostName = hostName;
- _projects = projects;
-
- _queue = new ProcessingQueue(new NetworkStream(acceptedSocket));
- _queue.OnReceive += message =>
- {
- if (protocolManager.IsProtocolNegotiation(message))
- {
- message.Sender = this;
- protocolManager.Negotiate(message);
- }
- else
- {
- message.Sender = this;
- ProjectManager projectManager;
- if (!_projects.TryGetValue(message.ContextId, out projectManager))
- {
- projectManager = new ProjectManager(message.ContextId,
- workspaceContext,
- protocolManager);
-
- _projects[message.ContextId] = projectManager;
- }
-
- projectManager.OnReceive(message);
- }
- };
- }
-
- public void QueueStart()
- {
- _queue.Start();
- }
-
- public bool Transmit(Message message)
- {
- message.HostId = _hostName;
- return _queue.Send(message);
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/DependencyTypeChangeFinder.cs b/src/dotnet/commands/dotnet-projectmodel-server/Helpers/DependencyTypeChangeFinder.cs
deleted file mode 100644
index 7865c3126..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/DependencyTypeChangeFinder.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using Microsoft.DotNet.ProjectModel.Graph;
-
-namespace Microsoft.DotNet.ProjectModel.Server.Helpers
-{
- internal class DependencyTypeChangeFinder
- {
- public static IEnumerable Diagnose(
- ProjectContext context,
- IEnumerable previousSearchPaths)
- {
- var result = new List();
- var project = context.ProjectFile;
- var libraries = context.LibraryManager.GetLibraries();
-
- var updatedSearchPath = GetUpdatedSearchPaths(previousSearchPaths, project.ResolveSearchPaths());
- var projectCandiates = GetProjectCandidates(updatedSearchPath);
- var rootDependencies = libraries.FirstOrDefault(library => string.Equals(library.Identity.Name, project.Name))
- ?.Dependencies
- ?.ToDictionary(libraryRange => libraryRange.Name);
-
- foreach (var library in libraries)
- {
- var diagnostic = Validate(library, projectCandiates, rootDependencies);
- if (diagnostic != null)
- {
- result.Add(diagnostic);
- }
- }
-
- return result;
- }
-
- private static DiagnosticMessage Validate(LibraryDescription library,
- HashSet projectCandidates,
- Dictionary rootDependencies)
- {
- if (!library.Resolved || projectCandidates == null)
- {
- return null;
- }
-
- var foundCandidate = projectCandidates.Contains(library.Identity.Name);
-
- if ((library.Identity.Type == LibraryType.Project && !foundCandidate) ||
- (library.Identity.Type == LibraryType.Package && foundCandidate))
- {
- library.Resolved = false;
-
- var libraryRange = rootDependencies[library.Identity.Name];
-
- return new DiagnosticMessage(
- ErrorCodes.NU1010,
- $"The type of dependency {library.Identity.Name} was changed.",
- libraryRange.SourceFilePath,
- DiagnosticMessageSeverity.Error,
- libraryRange.SourceLine,
- libraryRange.SourceColumn,
- library);
- }
-
- return null;
- }
-
- private static HashSet GetProjectCandidates(IEnumerable searchPaths)
- {
- if (searchPaths == null)
- {
- return null;
- }
-
- return new HashSet(searchPaths.Where(path => Directory.Exists(path))
- .SelectMany(path => Directory.GetDirectories(path))
- .Where(path => File.Exists(Path.Combine(path, Project.FileName)))
- .Select(path => Path.GetFileName(path)));
- }
-
- ///
- /// Returns the search paths if they're updated. Otherwise returns null.
- ///
- private static IEnumerable GetUpdatedSearchPaths(IEnumerable oldSearchPaths,
- IEnumerable newSearchPaths)
- {
- // The oldSearchPaths is null when the current project is not initialized. It is not necessary to
- // validate the dependency in this case.
- if (oldSearchPaths == null)
- {
- return null;
- }
-
- if (Enumerable.SequenceEqual(oldSearchPaths, newSearchPaths))
- {
- return null;
- }
-
- return newSearchPaths;
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/JTokenExtensions.cs b/src/dotnet/commands/dotnet-projectmodel-server/Helpers/JTokenExtensions.cs
deleted file mode 100644
index 9edd1d8bf..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/JTokenExtensions.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using Newtonsoft.Json.Linq;
-
-namespace Microsoft.DotNet.ProjectModel.Server.Helpers
-{
- public static class JTokenExtensions
- {
- public static string GetValue(this JToken token, string name)
- {
- return GetValue(token, name);
- }
-
- public static TVal GetValue(this JToken token, string name)
- {
- var value = token?[name];
- if (value != null)
- {
- return value.Value();
- }
-
- return default(TVal);
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/LibraryExtensions.cs b/src/dotnet/commands/dotnet-projectmodel-server/Helpers/LibraryExtensions.cs
deleted file mode 100644
index 2c86daade..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/LibraryExtensions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using Microsoft.DotNet.ProjectModel.Graph;
-
-namespace Microsoft.DotNet.ProjectModel.Server.Helpers
-{
- public static class LibraryExtensions
- {
- public static string GetUniqueName(this LibraryDescription library)
- {
- var identity = library.Identity;
- return identity.Type != LibraryType.ReferenceAssembly ? identity.Name : $"fx/{identity.Name}";
- }
-
- public static string GetUniqueName(this LibraryRange range)
- {
- return range.Target != LibraryType.ReferenceAssembly ? range.Name : $"fx/{range.Name}";
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/NuGetFrameworkExtensions.cs b/src/dotnet/commands/dotnet-projectmodel-server/Helpers/NuGetFrameworkExtensions.cs
deleted file mode 100644
index 5bc8c1d53..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/NuGetFrameworkExtensions.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using Microsoft.DotNet.ProjectModel.Resolution;
-using NuGet.Frameworks;
-
-namespace Microsoft.DotNet.ProjectModel.Server.Models
-{
- public static class NuGetFrameworkExtensions
- {
- public static FrameworkData ToPayload(this NuGetFramework framework)
- {
- return new FrameworkData
- {
- ShortName = framework.GetShortFolderName(),
- FrameworkName = framework.DotNetFrameworkName,
- FriendlyName = FrameworkReferenceResolver.Default.GetFriendlyFrameworkName(framework),
- RedistListPath = FrameworkReferenceResolver.Default.GetFrameworkRedistListPath(framework)
- };
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/ProjectExtensions.cs b/src/dotnet/commands/dotnet-projectmodel-server/Helpers/ProjectExtensions.cs
deleted file mode 100644
index ef28bbc23..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/Helpers/ProjectExtensions.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-namespace Microsoft.DotNet.ProjectModel.Server.Helpers
-{
- public static class ProjectExtensions
- {
- public static IEnumerable ResolveSearchPaths(this Project project)
- {
- GlobalSettings settings;
- return project.ResolveSearchPaths(out settings);
- }
-
- public static IEnumerable ResolveSearchPaths(this Project project, out GlobalSettings globalSettings)
- {
- if (project == null)
- {
- throw new ArgumentNullException(nameof(project));
- }
-
- var searchPaths = new HashSet { Directory.GetParent(project.ProjectDirectory).FullName };
-
- globalSettings = project.ResolveGlobalSettings();
- if (globalSettings != null)
- {
- foreach (var searchPath in globalSettings.ProjectSearchPaths)
- {
- var path = Path.Combine(globalSettings.DirectoryPath, searchPath);
- searchPaths.Add(Path.GetFullPath(path));
- }
- }
-
- return searchPaths;
- }
-
- public static GlobalSettings ResolveGlobalSettings(this Project project)
- {
- if (project == null)
- {
- throw new ArgumentNullException(nameof(project));
- }
-
- GlobalSettings settings;
- var root = ProjectRootResolver.ResolveRootDirectory(project.ProjectDirectory);
- if (GlobalSettings.TryGetGlobalSettings(root, out settings))
- {
- return settings;
- }
- else
- {
- return null;
- }
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/InternalModels/ProjectContextSnapshot.cs b/src/dotnet/commands/dotnet-projectmodel-server/InternalModels/ProjectContextSnapshot.cs
deleted file mode 100644
index 1307714d0..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/InternalModels/ProjectContextSnapshot.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using Microsoft.DotNet.Cli.Compiler.Common;
-using Microsoft.DotNet.ProjectModel.Files;
-using Microsoft.DotNet.ProjectModel.Graph;
-using Microsoft.DotNet.ProjectModel.Server.Helpers;
-using Microsoft.DotNet.ProjectModel.Server.Models;
-using NuGet.Frameworks;
-
-namespace Microsoft.DotNet.ProjectModel.Server
-{
- internal class ProjectContextSnapshot
- {
- public string RootDependency { get; set; }
- public NuGetFramework TargetFramework { get; set; }
- public IReadOnlyList SourceFiles { get; set; }
- public CommonCompilerOptions CompilerOptions { get; set; }
- public IReadOnlyList ProjectReferences { get; set; }
- public IReadOnlyList FileReferences { get; set; }
- public IReadOnlyList DependencyDiagnostics { get; set; }
- public IDictionary Dependencies { get; set; }
-
- public static ProjectContextSnapshot Create(ProjectContext context, string configuration, IEnumerable previousSearchPaths)
- {
- var snapshot = new ProjectContextSnapshot();
-
- var allDependencyDiagnostics = new List();
- allDependencyDiagnostics.AddRange(context.LibraryManager.GetAllDiagnostics());
- allDependencyDiagnostics.AddRange(DependencyTypeChangeFinder.Diagnose(context, previousSearchPaths));
-
- var diagnosticsLookup = allDependencyDiagnostics.ToLookup(d => d.Source);
-
- var allExports = context.CreateExporter(configuration)
- .GetAllExports()
- .ToDictionary(export => export.Library.Identity.Name);
-
- var allSourceFiles = new List(GetSourceFiles(context, configuration));
- var allFileReferences = new List();
- var allProjectReferences = new List();
- var allDependencies = new Dictionary();
-
- // All exports are returned. When the same library name have a ReferenceAssembly type export and a Package type export
- // both will be listed as dependencies. Prefix "fx/" will be added to ReferenceAssembly type dependency.
- foreach (var export in allExports.Values)
- {
- allSourceFiles.AddRange(export.SourceReferences.Select(f => f.ResolvedPath));
- var diagnostics = diagnosticsLookup[export.Library].ToList();
- var description = DependencyDescription.Create(export.Library, diagnostics, allExports);
- allDependencies[description.Name] = description;
-
- var projectReferene = ProjectReferenceDescription.Create(export.Library);
- if (projectReferene != null && export.Library.Identity.Name != context.ProjectFile.Name)
- {
- allProjectReferences.Add(projectReferene);
- }
-
- if (export.Library.Identity.Type != LibraryType.Project)
- {
- allFileReferences.AddRange(export.CompilationAssemblies.Select(asset => asset.ResolvedPath));
- }
- }
-
- snapshot.RootDependency = context.ProjectFile.Name;
- snapshot.TargetFramework = context.TargetFramework;
- snapshot.SourceFiles = allSourceFiles.Distinct(StringComparer.OrdinalIgnoreCase).OrderBy(path => path).ToList();
- snapshot.CompilerOptions = context.GetLanguageSpecificCompilerOptions(context.TargetFramework, configuration);
- snapshot.ProjectReferences = allProjectReferences.OrderBy(reference => reference.Name).ToList();
- snapshot.FileReferences = allFileReferences.Distinct(StringComparer.OrdinalIgnoreCase).OrderBy(path => path).ToList();
- snapshot.DependencyDiagnostics = allDependencyDiagnostics;
- snapshot.Dependencies = allDependencies;
-
- return snapshot;
- }
-
- private static IEnumerable GetSourceFiles(ProjectContext context, string configuration)
- {
- var compilerOptions = context.ProjectFile.GetCompilerOptions(context.TargetFramework, configuration);
-
- if (compilerOptions.CompileInclude == null)
- {
- return context.ProjectFile.Files.SourceFiles;
- }
-
- var includeFiles = IncludeFilesResolver.GetIncludeFiles(compilerOptions.CompileInclude, "/", diagnostics: null);
-
- return includeFiles.Select(f => f.SourcePath);
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/InternalModels/ProjectSnapshot.cs b/src/dotnet/commands/dotnet-projectmodel-server/InternalModels/ProjectSnapshot.cs
deleted file mode 100644
index 0b28210bf..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/InternalModels/ProjectSnapshot.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using Microsoft.DotNet.ProjectModel.Server.Helpers;
-using Microsoft.DotNet.ProjectModel.Server.Models;
-using NuGet.Frameworks;
-
-namespace Microsoft.DotNet.ProjectModel.Server
-{
- internal class ProjectSnapshot
- {
- public Project Project { get; set; }
- public string GlobalJsonPath { get; set; }
- public IReadOnlyList ProjectSearchPaths { get; set; }
- public IReadOnlyList ProjectDiagnostics { get; set; }
- public ErrorMessage GlobalErrorMessage { get; set; }
- public Dictionary ProjectContexts { get; } = new Dictionary();
-
- public static ProjectSnapshot Create(string projectDirectory,
- string configuration,
- DesignTimeWorkspace workspaceContext,
- IReadOnlyList previousSearchPaths,
- bool clearWorkspaceContextCache)
- {
- var projectContextsCollection = workspaceContext.GetProjectContextCollection(projectDirectory, clearWorkspaceContextCache);
- if (!projectContextsCollection.ProjectContexts.Any())
- {
- throw new InvalidOperationException($"Unable to find project.json in '{projectDirectory}'");
- }
- GlobalSettings globalSettings;
- var currentSearchPaths = projectContextsCollection.Project.ResolveSearchPaths(out globalSettings);
-
- var snapshot = new ProjectSnapshot();
- snapshot.Project = projectContextsCollection.Project;
- snapshot.ProjectDiagnostics = new List(projectContextsCollection.ProjectDiagnostics);
- snapshot.ProjectSearchPaths = currentSearchPaths.ToList();
- snapshot.GlobalJsonPath = globalSettings?.FilePath;
-
- foreach (var projectContext in projectContextsCollection.FrameworkOnlyContexts)
- {
- snapshot.ProjectContexts[projectContext.TargetFramework] =
- ProjectContextSnapshot.Create(projectContext, configuration, previousSearchPaths);
- }
-
- return snapshot;
- }
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/MessageTypes.cs b/src/dotnet/commands/dotnet-projectmodel-server/MessageTypes.cs
deleted file mode 100644
index df9419502..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/MessageTypes.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-namespace Microsoft.DotNet.ProjectModel.Server
-{
- public class MessageTypes
- {
- // Incoming
- public const string Initialize = nameof(Initialize);
- public const string ChangeConfiguration = nameof(ChangeConfiguration);
- public const string RefreshDependencies = nameof(RefreshDependencies);
- public const string RestoreComplete = nameof(RestoreComplete);
- public const string FilesChanged = nameof(FilesChanged);
- public const string GetDiagnostics = nameof(GetDiagnostics);
- public const string ProtocolVersion = nameof(ProtocolVersion);
-
- // Outgoing
- public const string Error = nameof(Error);
- public const string ProjectInformation = nameof(ProjectInformation);
- public const string Diagnostics = nameof(Diagnostics);
- public const string DependencyDiagnostics = nameof(DependencyDiagnostics);
- public const string Dependencies = nameof(Dependencies);
- public const string CompilerOptions = nameof(CompilerOptions);
- public const string References = nameof(References);
- public const string Sources = nameof(Sources);
- }
-}
diff --git a/src/dotnet/commands/dotnet-projectmodel-server/Messengers/CompilerOptionsMessenger.cs b/src/dotnet/commands/dotnet-projectmodel-server/Messengers/CompilerOptionsMessenger.cs
deleted file mode 100644
index 57c46426b..000000000
--- a/src/dotnet/commands/dotnet-projectmodel-server/Messengers/CompilerOptionsMessenger.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-using System;
-using Microsoft.DotNet.ProjectModel.Server.Models;
-
-namespace Microsoft.DotNet.ProjectModel.Server.Messengers
-{
- internal class CompilerOptionsMessenger : Messenger
- {
- public CompilerOptionsMessenger(Action transmit)
- : base(MessageTypes.CompilerOptions, transmit)
- { }
-
- protected override bool CheckDifference(ProjectContextSnapshot local, ProjectContextSnapshot remote)
- {
- return remote.CompilerOptions != null &&
- Equals(local.CompilerOptions, remote.CompilerOptions);
- }
-
- protected override void SendPayload(ProjectContextSnapshot local, Action