Skip to content

Commit

Permalink
+ razor engine trace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SubPointSupport committed Mar 16, 2017
1 parent 876f4d6 commit e13cd1e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,13 @@ string CreateGitHubReleaseNotes(
var templateContent = System.IO.File.ReadAllText(releaseTemplateFileName);

Information("Generating release notes...");
var result = RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(RazorEngine.Engine.Razor, templateContent, "templateKey", null, releaseData);

var templateConfig = new RazorEngine.Configuration.TemplateServiceConfiguration();
templateConfig.DisableTempFileLocking = true;

var razorEngine = RazorEngine.Templating.RazorEngineService.Create(templateConfig);

var result = RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(razorEngine, templateContent, "templateKey", null, releaseData);

var releaseNotes = result;
var fileName = string.Format("release-notes-{0}.md", releaseVersion);
Expand Down

0 comments on commit e13cd1e

Please sign in to comment.