Skip to content

Commit a2f147a

Browse files
committed
remove local nuget
1 parent 80d1f0d commit a2f147a

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@ jobs:
1515
runs-on: windows-latest # Or macos-latest for iOS/Mac Catalyst builds
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v4
1919

20-
- name: Setup .NET SDK
21-
uses: actions/setup-dotnet@v4
22-
with:
23-
dotnet-version: '10.0.x'
20+
- name: Setup .NET SDK
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: "10.0.x"
2424

25-
- name: Install MAUI Workloads
26-
run: dotnet workload install maui
25+
- name: Install MAUI Workloads
26+
run: dotnet workload install maui
2727

28-
- name: Cache NuGet packages
29-
uses: actions/cache@v4
30-
with:
31-
path: ~/.nuget/packages
32-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj') }}
33-
restore-keys: |
34-
${{ runner.os }}-nuget-
28+
- name: Cache NuGet packages
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.nuget/packages
32+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj') }}
33+
restore-keys: |
34+
${{ runner.os }}-nuget-
3535
36-
- name: Remove Local Source for CI
37-
run: dotnet nuget remove source LocalNuGetPackages --configfile nuget.config
36+
# - name: Remove Local Source for CI
37+
# run: dotnet nuget remove source LocalNuGetPackages --configfile nuget.config
3838

39-
- name: Restore NuGet packages
40-
run: dotnet restore LunaDraw.csproj --configfile nuget.config
39+
- name: Restore NuGet packages
40+
run: dotnet restore LunaDraw.csproj --configfile nuget.config
4141

42-
- name: Build MAUI App (Windows)
43-
run: dotnet build LunaDraw.csproj -c Release -f net10.0-windows10.0.19041.0
42+
- name: Build MAUI App (Windows)
43+
run: dotnet build LunaDraw.csproj -c Release -f net10.0-windows10.0.19041.0
4444

45-
- name: Run Unit Tests
46-
run: dotnet test tests/LunaDraw.Tests/LunaDraw.Tests.csproj
45+
- name: Run Unit Tests
46+
run: dotnet test tests/LunaDraw.Tests/LunaDraw.Tests.csproj

nuget.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<!-- Primary source: NuGet.org (used in all environments) -->
66
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
77
<!-- Local development source (optional, ignored if path doesn't exist) -->
8-
<add key="LocalNuGetPackages" value="../LocalNuGetPackages" />
8+
<!-- <add key="LocalNuGetPackages" value="../LocalNuGetPackages" /> -->
99
</packageSources>
1010
<packageSourceMapping>
1111
<!-- Map CodeSoupCafe packages to allow both sources -->
1212
<packageSource key="nuget.org">
1313
<package pattern="*" />
1414
</packageSource>
15-
<packageSource key="LocalNuGetPackages">
15+
<!-- <packageSource key="LocalNuGetPackages">
1616
<package pattern="CodeSoupCafe.*" />
17-
</packageSource>
17+
</packageSource> -->
1818
</packageSourceMapping>
1919
</configuration>

0 commit comments

Comments
 (0)