82
82
<Reference Include =" System.Text.Encodings.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL" >
83
83
<HintPath >..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath >
84
84
</Reference >
85
- <Reference Include =" System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL" >
86
- <HintPath >..\packages\System.Text.Json.8.0.4\lib\net462\System.Text.Json.dll</HintPath >
85
+ <Reference Include =" System.Text.Json, Version=8.0.0.5, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" >
86
+ <HintPath >..\packages\System.Text.Json.8.0.5\lib\net462\System.Text.Json.dll</HintPath >
87
+ <Private >True</Private >
87
88
</Reference >
88
89
<Reference Include =" System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL" >
89
90
<HintPath >..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath >
230
231
<EmbeddedResource Include =" Resources\UnityVersionCache.json" />
231
232
</ItemGroup >
232
233
<Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
233
- <!-- PowerShell command to feed current timestamp into version.cs (it is displayed in the app -->
234
+ <!-- PowerShell command to feed current timestamp into version.cs (it is displayed in the app -->
234
235
<Target Name =" PreBuild" BeforeTargets =" PreBuildEvent" >
235
236
<Exec Command =" powershell -NoProfile -ExecutionPolicy Bypass -Command " $pattern = 'public static string Stamp = \" .*?\" ;'; $date = Get-Date -Format 'dd-MM-yyyy HH:mm:ss'; $replacement = 'public static string Stamp = \" ' + $date + '\" ;'; $path = '$(ProjectDir)Version.cs'; $content = Get-Content $path -Raw; $newContent = $content -replace $pattern, $replacement; [System.IO.File]::WriteAllText($path, $newContent, [System.Text.Encoding]::UTF8)" " />
236
237
</Target >
237
- <!-- PowerShell command to restore the Stamp string to its initial state -->
238
+ <!-- PowerShell command to restore the Stamp string to its initial state -->
238
239
<Target Name =" PostBuild" AfterTargets =" PostBuildEvent" >
239
240
<Exec Command =" powershell -NoProfile -ExecutionPolicy Bypass -Command " $pattern = 'public static string Stamp = \" .*?\" ;'; $replacement = 'public static string Stamp = \" \" ;'; $path = '$(ProjectDir)Version.cs'; $content = Get-Content $path -Raw; $newContent = $content -replace $pattern, $replacement; [System.IO.File]::WriteAllText($path, $newContent, [System.Text.Encoding]::UTF8)" " />
240
- </Target >
241
-
241
+ </Target >
242
242
</Project >
0 commit comments