Skip to content

Commit e200fa5

Browse files
fix : add nuget.config to fix cannot get index nuget
1 parent 6e8d6d3 commit e200fa5

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/github-cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
${{ runner.os }}-nuget-
3636
- name: Install dependencies
3737
if: steps.cache-nuget.outputs.cache-hit != 'true'
38-
run: dotnet restore
38+
run: dotnet restore --locked-mode
3939
- name: Build
4040
run: dotnet build --configuration Release --no-restore
4141
- name: Test

nuget.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="NuGet Public" value="https://api.nuget.org/v3/index.json" />
6+
</packageSources>
7+
</configuration>

0 commit comments

Comments
 (0)