diff --git a/build/pipelines/templates/build-console-public.yaml b/build/pipelines/templates/build-console-public.yaml index f9570a14..1a42f173 100644 --- a/build/pipelines/templates/build-console-public.yaml +++ b/build/pipelines/templates/build-console-public.yaml @@ -19,7 +19,18 @@ jobs: inputs: packageType: sdk version: 6.0.x - installationPath: $(Agent.ToolsDirectory)/dotnet + + - task: UseDotNet@2 + displayName: 'Use .NET 7 SDK' + inputs: + packageType: sdk + version: 7.0.x + + - task: UseDotNet@2 + displayName: 'Use .NET 8 SDK' + inputs: + packageType: sdk + version: 8.0.x # The first task is the dotnet command build, pointing to our csproj file - task: DotNetCoreCLI@2 diff --git a/build/pipelines/templates/build-extension-public.yaml b/build/pipelines/templates/build-extension-public.yaml index 18d0147c..0fd7c8b2 100644 --- a/build/pipelines/templates/build-extension-public.yaml +++ b/build/pipelines/templates/build-extension-public.yaml @@ -20,6 +20,25 @@ jobs: arguments: $(major).$(Get-Date -Format "yyMM").$(patch) pwsh: true + - task: UseDotNet@2 + displayName: 'Use .NET 6 SDK' + inputs: + packageType: sdk + version: 6.0.x + + - task: UseDotNet@2 + displayName: 'Use .NET 7 SDK' + inputs: + packageType: sdk + version: 7.0.x + + - task: UseDotNet@2 + displayName: 'Use .NET 8 SDK' + inputs: + packageType: sdk + version: 8.0.x + includePreviewVersions: true + - task: NuGetToolInstaller@1 displayName: 'Install NuGet Tools' diff --git a/src/XamlStyler.Console/XamlStyler.Console.csproj b/src/XamlStyler.Console/XamlStyler.Console.csproj index 463c7056..d15e33ac 100644 --- a/src/XamlStyler.Console/XamlStyler.Console.csproj +++ b/src/XamlStyler.Console/XamlStyler.Console.csproj @@ -13,7 +13,7 @@ https://github.com/Xavalon/XamlStyler git Exe - net6.0 + net6.0;net7.0;net8.0 Xavalon.XamlStyler.Console xstyler true diff --git a/src/global.json b/src/global.json new file mode 100644 index 00000000..230c467f --- /dev/null +++ b/src/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "allowPrerelease": true + } +}