Skip to content

Commit 6d0831f

Browse files
committed
Work CI-CD
- Add property to restore packages with lock file on pipeline only. ***NO_CI***
1 parent 9924bf1 commit 6d0831f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nanoFirmwareFlasher.Library/nanoFirmwareFlasher.Library.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<PropertyGroup>
3030
<GenerateDocumentationFile>True</GenerateDocumentationFile>
3131
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
32+
<RestoreLockedMode Condition="'$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'">true</RestoreLockedMode>
3233
</PropertyGroup>
3334

3435
<Target Name="CopyToolsContent" AfterTargets="Build">

nanoFirmwareFlasher.Tool/nanoFirmwareFlasher.Tool.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<RuntimeIdentifiers>any</RuntimeIdentifiers>
2626
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2727
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
28+
<RestoreLockedMode Condition="'$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'">true</RestoreLockedMode>
2829
</PropertyGroup>
2930

3031
<PropertyGroup Condition="$(VSCodeExtensionBuild) == '' or $(VSCodeExtensionBuild) == 'False'">

0 commit comments

Comments
 (0)