Skip to content

Commit

Permalink
v1.4.0-beta.15
Browse files Browse the repository at this point in the history
- Fixed bug when compiling c# programs (missing reference to MIG.HomeAutomation.dll)
  • Loading branch information
genemars committed Jan 14, 2023
1 parent be2c144 commit b536357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HomeGenie/Automation/Engines/CSharpAppFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static class CSharpAppFactory
"NetClientLib",
"OnvifDiscovery.Models",
"MIG",
"MIG.Interfaces.HomeAutomation.Commons",
"CM19Lib", "X10 = CM19Lib.X10",
"Innovative.Geometry",
"Innovative.SolarCalculator",
Expand Down Expand Up @@ -233,6 +234,7 @@ private HomeGenie.Automation.MethodRunResult Setup()
MetadataReference.CreateFromFile(typeof(CSharpArgumentInfo).GetTypeInfo().Assembly.Location),

MetadataReference.CreateFromFile(Path.Combine(homeGenieDir, "MIG.dll")),
MetadataReference.CreateFromFile(Path.Combine(homeGenieDir, "MIG.HomeAutomation.dll")),
MetadataReference.CreateFromFile(Path.Combine(homeGenieDir, "CM19Lib.dll")),
MetadataReference.CreateFromFile(Path.Combine(homeGenieDir, "LiteDB.dll")),
MetadataReference.CreateFromFile(Path.Combine(homeGenieDir, "NLog.dll")),
Expand Down Expand Up @@ -338,6 +340,7 @@ private HomeGenie.Automation.MethodRunResult Setup()

compilerParams.ReferencedAssemblies.Add("HomeGenie.exe");
compilerParams.ReferencedAssemblies.Add("MIG.dll");
compilerParams.ReferencedAssemblies.Add("MIG.HomeAutomation.dll");
compilerParams.ReferencedAssemblies.Add("CM19Lib.dll");
compilerParams.ReferencedAssemblies.Add("LiteDB.dll");
compilerParams.ReferencedAssemblies.Add("NLog.dll");
Expand Down

0 comments on commit b536357

Please sign in to comment.