Browse Source

Merge pull request #6776 from AvaloniaUI/fixes/microcom-uptodate-hack

Hack to stop VS building everything every time.
release/0.10.9
Steven Kirk 5 years ago
committed by Dan Walmsley
parent
commit
0f8b4d4cde
  1. 8
      src/tools/MicroComGenerator/Program.cs

8
src/tools/MicroComGenerator/Program.cs

@ -35,8 +35,16 @@ namespace MicroComGenerator
if (opts.CppOutput != null)
File.WriteAllText(opts.CppOutput, CppGen.GenerateCpp(ast));
if (opts.CSharpOutput != null)
{
File.WriteAllText(opts.CSharpOutput, new CSharpGen(ast).Generate());
// HACK: Can't work out how to get the VS project system's fast up-to-date checks
// to ignore the generated code, so as a workaround set the write time to that of
// the input.
File.SetLastWriteTime(opts.CSharpOutput, File.GetLastWriteTime(opts.Input));
}
return 0;
}

Loading…
Cancel
Save