Fix projectmodel-server regression
1. Address the null reference exception when a project dependency is broken. 2. Address the duplicate key issues after the logic of redirecting System pacage to reference assembly was added Update projectmodel-server and tests 1. Fix test timeout caused by undisconnected socket; 2. Update project model server
This commit is contained in:
parent
c4b3925e46
commit
b9f2d8fe3d
12 changed files with 81 additions and 48 deletions
|
@ -5,13 +5,14 @@ using System;
|
|||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
using Microsoft.DotNet.ProjectModel.Server;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Microsoft.DotNet.ProjectModel.Server.Tests
|
||||
{
|
||||
public class DthTestServer : IDisposable
|
||||
{
|
||||
private readonly Program _program;
|
||||
private readonly ProjectModelServerCommand _program;
|
||||
private readonly Thread _thread;
|
||||
|
||||
public DthTestServer(ILoggerFactory loggerFactory)
|
||||
|
@ -21,9 +22,9 @@ namespace Microsoft.DotNet.ProjectModel.Server.Tests
|
|||
Port = FindFreePort();
|
||||
HostId = Guid.NewGuid().ToString();
|
||||
|
||||
_program = new Program(Port, HostId, LoggerFactory);
|
||||
_program = new ProjectModelServerCommand(Port, HostId, LoggerFactory);
|
||||
|
||||
_thread = new Thread(() => { _program.OpenChannel(); });
|
||||
_thread = new Thread(() => { _program.OpenChannel(); }) { IsBackground = true };
|
||||
_thread.Start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue