private bool CompileResourceFile(string sname, string dname) { if (!File.Exists(sname)) { Log.LogError("Resource file '{0}' not found.", sname); return(false); } if (File.GetLastWriteTime(sname) <= File.GetLastWriteTime(dname)) { Log.LogMessage(MessageImportance.Low, "Resource file '{0}' is newer than the source file '{1}', skipping.", dname, sname); return(true); } Resgen resgen = new Resgen(); resgen.BuildEngine = this.BuildEngine; resgen.UseSourcePath = true; resgen.SourceFile = sname; resgen.OutputFile = dname; return(resgen.Execute()); }
private bool CompileResourceFile(string sname, string dname) { if (!File.Exists(sname)) { Log.LogError("Resource file '{0}' not found.", sname); return(false); } Resgen resgen = new Resgen(); resgen.BuildEngine = this.BuildEngine; resgen.UseSourcePath = true; resgen.SourceFile = sname; resgen.OutputFile = dname; return(resgen.Execute()); }
private bool CompileResourceFile (string sname, string dname ) { if (!File.Exists (sname)) { Log.LogError ("Resource file '{0}' not found.", sname); return false; } if (File.GetLastWriteTime (sname) <= File.GetLastWriteTime (dname)) { Log.LogMessage (MessageImportance.Low, "Resource file '{0}' is newer than the source file '{1}', skipping.", dname, sname); return true; } Resgen resgen = new Resgen (); resgen.BuildEngine = this.BuildEngine; resgen.UseSourcePath = true; resgen.SourceFile = sname; resgen.OutputFile = dname; return resgen.Execute (); }
private bool CompileResourceFile (string sname, string dname ) { if (!File.Exists (sname)) { Log.LogError ("Resource file '{0}' not found.", sname); return false; } Resgen resgen = new Resgen (); resgen.BuildEngine = this.BuildEngine; resgen.UseSourcePath = true; resgen.SourceFile = sname; resgen.OutputFile = dname; return resgen.Execute (); }