feat(build): Use global.json and nuget.config

This commit is contained in:
Valters Melnalksnis
2022-08-29 22:27:03 +03:00
parent 9c51c178c3
commit e5c03de7b3
6 changed files with 27 additions and 16 deletions
+1 -3
View File
@@ -27,9 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/setup-dotnet@v2.1.0
- name: Restore dependencies
run: dotnet restore
- run: dotnet restore
- name: Check vulnerable packages
id: packages
+1 -5
View File
@@ -23,11 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- name: Setup .NET
uses: actions/setup-dotnet@v2.1.0
with:
dotnet-version: 6.0.x
- uses: actions/setup-dotnet@v2.1.0
- name: Publish project
id: publish
+2 -8
View File
@@ -25,14 +25,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- name: Setup .NET
uses: actions/setup-dotnet@v2.1.0
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- uses: actions/setup-dotnet@v2.1.0
- run: dotnet restore
- name: Build
run: >
+2
View File
@@ -10,6 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
version = version
CONTRIBUTING.md = CONTRIBUTING.md
global.json = global.json
nuget.config = nuget.config
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VMelnalksnis.NordigenDotNet", "source\VMelnalksnis.NordigenDotNet\VMelnalksnis.NordigenDotNet.csproj", "{C70F5B40-0A36-45CB-921B-09EA1F9A63AD}"
+7
View File
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "6.0.400",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>