Only trigger live reloading from VS when enabled in MSBuild
This commit is contained in:
parent
6f7c188a76
commit
de4d78f454
|
|
@ -94,10 +94,12 @@ namespace Microsoft.VisualStudio.BlazorExtension
|
||||||
var project = await access.GetProjectAsync(configuredProject);
|
var project = await access.GetProjectAsync(configuredProject);
|
||||||
|
|
||||||
// Now we can evaluate MSBuild properties
|
// Now we can evaluate MSBuild properties
|
||||||
|
var useLiveReloading = project.GetPropertyValue("UseBlazorLiveReloading");
|
||||||
var projectDir = project.GetPropertyValue("ProjectDir");
|
var projectDir = project.GetPropertyValue("ProjectDir");
|
||||||
var outputPath = project.GetPropertyValue("OutputPath");
|
var outputPath = project.GetPropertyValue("OutputPath");
|
||||||
var signalFilePath = project.GetPropertyValue("BlazorBuildCompletedSignalPath");
|
var signalFilePath = project.GetPropertyValue("BlazorBuildCompletedSignalPath");
|
||||||
if (!string.IsNullOrEmpty(projectDir)
|
if (string.Equals(useLiveReloading, "true", StringComparison.Ordinal)
|
||||||
|
&& !string.IsNullOrEmpty(projectDir)
|
||||||
&& !string.IsNullOrEmpty(outputPath)
|
&& !string.IsNullOrEmpty(outputPath)
|
||||||
&& !string.IsNullOrEmpty(signalFilePath))
|
&& !string.IsNullOrEmpty(signalFilePath))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue