Skip to content

Commit

Permalink
Cache VS
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Jul 18, 2024
1 parent ec23119 commit 77ca2c9
Show file tree
Hide file tree
Showing 5 changed files with 3,078 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/vs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/[email protected]

- uses: actions/cache@v4
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}

- name: Restore
shell: pwsh
if: steps.cache.outputs.cache-hit != 'true'
run: |
dotnet restore PowerShellTools.sln
nuget restore PowerShellTools.sln
Expand Down
4 changes: 3 additions & 1 deletion PowerShellTools.2022/PowerShellTools.2022.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\Build\ProjectBefore.settings" />
<PropertyGroup>
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<PropertyGroup>
<DelaySign>false</DelaySign>
Expand Down
Loading

0 comments on commit 77ca2c9

Please sign in to comment.