Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/codeQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,18 @@ jobs:
with:
dotnet-version: '3.1.x'

- name: Set up .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Restore dependencies
run: dotnet restore $solution
shell: pwsh
run: dotnet restore "$env:GITHUB_WORKSPACE\$env:solution" --configfile "$env:GITHUB_WORKSPACE\NuGet.config"

- name: Build
run: dotnet build $solution #--configuration $config #--no-restore -p:FileVersionRevision=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=true
shell: pwsh
run: dotnet build "$env:GITHUB_WORKSPACE\$env:solution" --configuration "$env:config" --no-restore -p:FileVersionRevision="$env:GITHUB_RUN_NUMBER" -p:ContinuousIntegrationBuild=true

# Run CodeQL analysis
- name: Perform CodeQL Analysis
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ $RECYCLE.BIN/
# The build keeps auto-generating this file. We do not want this.
/.nuget/NuGet.Config
NuGet.Config
!/NuGet.config


## Python specifics
Expand Down
12 changes: 12 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="CFS" value="https://pkgs.dev.azure.com/azfunc/public/_packaging/upstream-public/nuget/v3/index.json" protocolVersion="3" />
</packageSources>
<packageSourceMapping>
<packageSource key="CFS">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>
5 changes: 5 additions & 0 deletions azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ steps:
version: '7.0.x'

# Start by restoring all the dependencies.
- task: NuGetAuthenticate@1
displayName: 'Authenticate to CFS'

- task: DotNetCoreCLI@2
displayName: 'Restore nuget dependencies'
inputs:
command: restore
feedsToUse: config
nugetConfigPath: 'NuGet.config'
verbosityRestore: Minimal
projects: 'src/dirs.proj'

Expand Down
5 changes: 5 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ variables:
steps:
- task: NuGetToolInstaller@1

- task: NuGetAuthenticate@1
displayName: 'Authenticate to CFS'

- task: NuGetCommand@2
inputs:
feedsToUse: config
nugetConfigPath: 'NuGet.config'
restoreSolution: '$(solution)'

- task: UseDotNet@2
Expand Down
5 changes: 5 additions & 0 deletions eng/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ jobs:
version: '7.0.x'

# Start by restoring all the dependencies.
- task: NuGetAuthenticate@1
displayName: 'Authenticate to CFS'

- task: DotNetCoreCLI@2
displayName: 'Restore nuget dependencies'
inputs:
command: restore
feedsToUse: config
nugetConfigPath: 'NuGet.config'
verbosityRestore: Minimal
projects: 'src/dirs.proj'

Expand Down
Loading