We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc19ea commit a881ca5Copy full SHA for a881ca5
1 file changed
src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs
@@ -91,9 +91,9 @@ protected async Task EnsureReady()
91
92
var nodePathValue = existingNodePath + Path.Combine(_projectPath, "node_modules");
93
#if NET451
94
- startInfo.EnvironmentVariables.Add("NODE_PATH", nodePathValue);
+ startInfo.EnvironmentVariables["NODE_PATH"] = nodePathValue;
95
#else
96
- startInfo.Environment.Add("NODE_PATH", nodePathValue);
+ startInfo.Environment["NODE_PATH"] = nodePathValue;
97
#endif
98
99
_nodeProcess = Process.Start(startInfo);
0 commit comments