diff --git a/.gitignore b/.gitignore
index a4e4903f1..9cba68135 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,5 +11,6 @@ publish/
*.dil
*.dmeta
*.dpdb
+/.vs/
/.vscode/
/out/
diff --git a/HotReloadUtils.slnx b/HotReloadUtils.slnx
new file mode 100644
index 000000000..a4a0e4d10
--- /dev/null
+++ b/HotReloadUtils.slnx
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.HotReload.Utils.Generator/DeltaProject.cs b/src/Microsoft.DotNet.HotReload.Utils.Generator/DeltaProject.cs
index 980e6f8ce..305d08259 100644
--- a/src/Microsoft.DotNet.HotReload.Utils.Generator/DeltaProject.cs
+++ b/src/Microsoft.DotNet.HotReload.Utils.Generator/DeltaProject.cs
@@ -94,18 +94,21 @@ public async Task BuildDelta (Delta delta, bool ignoreUnchanged =
var updates2 = await _changeMakerService.EmitSolutionUpdateAsync (updatedSolution, ct);
- if (updates2.CompilationDiagnostics.Any()) {
+ if (updates2.CompilationDiagnostics.Any(d => d.Severity == DiagnosticSeverity.Error)) {
var sb = new StringBuilder();
foreach (var diag in updates2.CompilationDiagnostics) {
sb.AppendLine (diag.ToString ());
}
throw new DiffyException ($"Failed to emit delta for {oldDocument.Name}: {sb}", exitStatus: 8);
}
+
foreach (var fancyChange in updates2.ProjectUpdates)
{
Console.WriteLine("change service made {0}", fancyChange.ModuleId);
}
+ _changeMakerService.CommitUpdate();
+
await using (var output = makeOutputs != null ? makeOutputs(dinfo) : DefaultMakeFileOutputs(dinfo)) {
if (updates2.ProjectUpdates.Length != 1) {
throw new DiffyException($"Expected only one module in the delta, got {updates2.ProjectUpdates.Length}", exitStatus: 10);
diff --git a/src/Microsoft.DotNet.HotReload.Utils.Generator/EnC/ChangeMakerService.cs b/src/Microsoft.DotNet.HotReload.Utils.Generator/EnC/ChangeMakerService.cs
index 72c31c1c2..47c0acafe 100644
--- a/src/Microsoft.DotNet.HotReload.Utils.Generator/EnC/ChangeMakerService.cs
+++ b/src/Microsoft.DotNet.HotReload.Utils.Generator/EnC/ChangeMakerService.cs
@@ -169,6 +169,16 @@ public void EndSession ()
mi.Invoke(_watchHotReloadService, Array.Empty