diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 3684a135..005d849a 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -24,7 +24,7 @@ on:
jobs:
analyze:
name: Analyze
- runs-on: windows-2019
+ runs-on: windows-latest
permissions:
actions: read
contents: read
@@ -58,8 +58,11 @@ jobs:
# 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)
- - name: Autobuild
- uses: github/codeql-action/autobuild@v2
+ # - name: Autobuild
+ # uses: github/codeql-action/autobuild@v2
+
+ - name: build
+ run: dotnet build src\Microsoft.OpenApi.OData.Reader\Microsoft.OpenAPI.OData.Reader.csproj -c Release
# âšī¸ Command-line programs to run using the OS shell.
# đ https://git.io/JvXDl
diff --git a/tool/versioning.props b/tool/versioning.props
index b3489a4f..b6bd275b 100644
--- a/tool/versioning.props
+++ b/tool/versioning.props
@@ -32,7 +32,7 @@
2020
- $([System.Convert]::ToInt16('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))
+ $([System.Convert]::ToInt32('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))
$([System.Convert]::ToString($(VersionDateCode)))