Skip to content

Commit

Permalink
Merge pull request #7 from Azure/user/MarkZagorski-msft/v1.0.1-addmis…
Browse files Browse the repository at this point in the history
…singfile

v1.0.1 patch - Add missing file, 'DiffGenTool' from linux portion of nuget.
  • Loading branch information
MarkZagorski-msft authored Oct 12, 2022
2 parents b581e92 + f459597 commit dc4a2fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pipelines/templates/version-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variables:
- name: minor_version
value: 0
- name: patch_version
value: 0
value: 1
- name: semver_version
value: '$(major_version).$(minor_version).$(patch_version)'
- name: informational_version
Expand Down
2 changes: 1 addition & 1 deletion src/managed/DiffGen/DiffGeneration/DiffGeneration.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@

<file src="ERRORS.md" target="." />

<file src="bin\**\*.*" target="bin" />
<file src="bin\**\*" target="bin" />
</files>
</package>
16 changes: 9 additions & 7 deletions src/managed/DiffGen/DiffGeneration/WriteDiffToDisk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,26 @@ protected override void ExecuteInternal()
{
CheckForCancellation();

if (File.Exists(OutputFile))
var outputFile = Path.GetFullPath(OutputFile);

if (File.Exists(outputFile))
{
Logger.LogInformation("Deleting existing file: {0}", OutputFile);
File.Delete(OutputFile);
Logger.LogInformation("Deleting existing file: {0}", outputFile);
File.Delete(outputFile);
}

string outputDirectory = Path.GetDirectoryName(OutputFile);
string outputDirectory = Path.GetDirectoryName(outputFile);
if (!Directory.Exists(outputDirectory))
{
Directory.CreateDirectory(outputDirectory);
}

Logger.LogInformation("Writing diff to {0}", OutputFile);
Logger.LogInformation("Writing diff to {0}", outputFile);

string path = OutputFile;
string path = outputFile;
DiffSerializer.WriteDiff(Diff, path);

FileInfo diffFileInfo = new(OutputFile);
FileInfo diffFileInfo = new(outputFile);
Logger.LogInformation($"Size: {diffFileInfo.Length:#,0.####} bytes");
}
}
Expand Down

0 comments on commit dc4a2fe

Please sign in to comment.