Skip to content

Commit

Permalink
Update to .NET 7 (#206)
Browse files Browse the repository at this point in the history
* Update to .NET 7

* Fix branch name

* Update version

* Update pool/agent version

* Update .NET SDK version

* Fix pool

* Update compiler in codeql yaml

* Fix version
  • Loading branch information
luiscantero authored Dec 21, 2022
1 parent 10c5232 commit 0533318
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '35 11 * * 6'

Expand Down Expand Up @@ -40,11 +40,11 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

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

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand Down
3 changes: 2 additions & 1 deletion opcplc.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 16.0.28803.156
VisualStudioVersion = 17.4.33205.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{99F0F8B6-79F2-45FB-A5B7-5A3CD731A43D}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -35,6 +35,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{
tools\templates\acrbuild.yml = tools\templates\acrbuild.yml
tools\templates\azuredeploy.opcplc.aci.json = tools\templates\azuredeploy.opcplc.aci.json
tools\templates\ci.yml = tools\templates\ci.yml
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "opc-plc-tests", "tests\opc-plc-tests.csproj", "{978DA9FC-4211-46CE-8548-D16E3DC3550F}"
Expand Down
2 changes: 1 addition & 1 deletion src/opc-plc.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>opcplc</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>OpcPlc</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion tests/opc-plc-tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>OpcPlc.Tests</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions tools/scripts/docker-source.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,23 @@ ENV PATH="${PATH}:/root/vsdbg/vsdbg"
$platforms = @{
"linux/arm/v7" = @{
runtimeId = "linux-arm"
image = "mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim"
image = "mcr.microsoft.com/dotnet/runtime-deps:7.0-bullseye-slim"
platformTag = "linux-arm32v7"
runtimeOnly = "RUN chmod +x $($assemblyName)"
debugger = $installLinuxDebugger
entryPoint = "[`"./$($assemblyName)`"]"
}
"linux/arm64" = @{
runtimeId = "linux-arm64"
image = "mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim"
image = "mcr.microsoft.com/dotnet/runtime-deps:7.0-bullseye-slim"
platformTag = "linux-arm64v8"
runtimeOnly = "RUN chmod +x $($assemblyName)"
debugger = $null
entryPoint = "[`"./$($assemblyName)`"]"
}
"linux/amd64" = @{
runtimeId = "linux-x64"
image = "mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim"
image = "mcr.microsoft.com/dotnet/runtime-deps:7.0-bullseye-slim"
platformTag = "linux-amd64"
runtimeOnly = "RUN chmod +x $($assemblyName)"
debugger = $installLinuxDebugger
Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/get-matrix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ if (![string]::IsNullOrEmpty($JobPrefix)) {
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#software
$agents = @{
windows = "windows-2022"
linux = "ubuntu-20.04"
mac = "macOS-11"
linux = "ubuntu-22.04"
mac = "macOS-12"
}

$jobMatrix = @{}
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/acrbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
displayName: 'Install .NET Core SDK'
inputs:
packageType: sdk
version: 6.0.x
version: 7.0.x
includePreviewVersions: false
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: AzureCLI@1
Expand Down
4 changes: 2 additions & 2 deletions tools/templates/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
displayName: 'Install .NET Core SDK'
inputs:
packageType: sdk
version: 6.0.x
version: 7.0.x
includePreviewVersions: false
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: PowerShell@2
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
displayName: 'Install .NET Core SDK'
inputs:
packageType: sdk
version: 6.0.x
version: 7.0.x
includePreviewVersions: false
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: PowerShell@2
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "2.5.8",
"version": "2.6.0",
"versionHeightOffset": -1,
"publicReleaseRefSpec": [
"^refs/heads/main$",
Expand Down

0 comments on commit 0533318

Please sign in to comment.