1 write to BuildTargetPath
Microsoft.NET.Sdk.StaticWebAssets.Tests (1)
StaticWebAssets\StaticWebAssetsGeneratePackagePropsFileTest.cs (1)
29
BuildTargetPath
= file
6 references to BuildTargetPath
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
StaticWebAssetsGeneratePackagePropsFile.cs (6)
60
var fileExists = File.Exists(
BuildTargetPath
);
61
var existingFileHash = fileExists ? ComputeHash(File.ReadAllBytes(
BuildTargetPath
)) : "";
65
Log.LogMessage(MessageImportance.Low, $"Creating file '{
BuildTargetPath
}' does not exist.");
66
File.WriteAllBytes(
BuildTargetPath
, data);
70
Log.LogMessage(MessageImportance.Low, $"Updating '{
BuildTargetPath
}' file because the hash '{dataHash}' is different from existing file hash '{existingFileHash}'.");
71
File.WriteAllBytes(
BuildTargetPath
, data);