You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_debugAction?.Invoke($"Starting server (tid:{Environment.CurrentManagedThreadId})");
325
330
326
331
// As Android projects are "library", we cannot filter on "Application" projects.
327
332
// Instead, we persist the port only in the current startup projects ... and we make sure to re-write it when the startup project changes (cf. OnStartupProjectChangedAsync).
// Determine if the port configuration is incorrect:
339
-
// - Either no ports or multiple ports are persisted (`persistedPorts is { Length: 0 or > 1 }`).
340
-
// - Or the currently used port (`port`) does not match the persisted port (`persistedPort`).
341
-
varportMisConfigured=persistedPortsis{Length:0 or >1}||port!=persistedPort;
345
+
varport=_devServer?.port??persistedPort;
346
+
// Determine if the port configuration is incorrect:
347
+
// - Either no ports or multiple ports are persisted (`persistedPorts is { Length: 0 or > 1 }`).
348
+
// - Or the currently used port (`port`) does not match the persisted port (`persistedPort`).
349
+
varportMisConfigured=persistedPortsis{Length:0 or >1}||port!=persistedPort;
342
350
343
-
if(_devServeris{process.HasExited:false})
344
-
{
345
-
if(portMisConfigured)
351
+
if(_devServeris{process.HasExited:false})
346
352
{
347
-
_debugAction?.Invoke($"Server already running on port {_devServer?.port}, but port is not configured properly on all projects. Updating it ...");
353
+
if(portMisConfigured)
354
+
{
355
+
_debugAction?.Invoke($"Server already running on port {_devServer?.port}, but port is not configured properly on all projects. Updating it ...");
348
356
349
-
// The dev-server is already running, but at least one project is not configured properly
350
-
// (This can happen when a project is being added to the solution while opened - Reminder: This EnsureServerAsync is invoked each time a project is built)
351
-
// We make sure to set the current port for **all** projects.
_debugAction?.Invoke($"Server already running on port {_devServer?.port}");
357
-
}
357
+
// The dev-server is already running, but at least one project is not configured properly
358
+
// (This can happen when a project is being added to the solution while opened - Reminder: This EnsureServerAsync is invoked each time a project is built)
359
+
// We make sure to set the current port for **all** projects.
0 commit comments