Skip to content

Commit

Permalink
Target to net 7 and 8 in addition to 6 (#419)
Browse files Browse the repository at this point in the history
* Target to net 7 and 8 in addition to 6

* Allow prerelease

* Add Newtonsoft.Json package to rider

* Revert Microsoft.VisualStudio.SDK back to version 15

* Remove includePreviewVersions from build

* Remove unnecessary reference to Newtonsoft.Json

---------

Co-authored-by: Dave Grochocki <[email protected]>
  • Loading branch information
virzak and grochocki authored Jan 31, 2025
1 parent f1c3185 commit 7496c92
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
13 changes: 12 additions & 1 deletion build/pipelines/templates/build-console-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions build/pipelines/templates/build-extension-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/XamlStyler.Console/XamlStyler.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<RepositoryUrl>https://github.com/Xavalon/XamlStyler</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<RootNamespace>Xavalon.XamlStyler.Console</RootNamespace>
<AssemblyName>xstyler</AssemblyName>
<PackAsTool>true</PackAsTool>
Expand Down
5 changes: 5 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"allowPrerelease": true
}
}

0 comments on commit 7496c92

Please sign in to comment.