Skip to content

Commit 96d3a3f

Browse files
authored
Merge pull request #182 from techiedesu/road_to_net_9
.NET 9
2 parents e8b12bb + 2f7c1b9 commit 96d3a3f

30 files changed

+106
-606
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "7.1.5",
6+
"version": "9.0.2",
77
"commands": [
88
"paket"
99
]

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [windows-latest, macos-latest, ubuntu-latest]
12-
dotnet: ['6.0.x']
12+
dotnet: ['9.0.x']
1313
runs-on: ${{ matrix.os }}
1414

1515
steps:

.paket/Paket.Restore.targets

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,26 @@
235235
<Splits>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',').Length)</Splits>
236236
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName>
237237
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion>
238+
<Reference>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[2])</Reference>
238239
<AllPrivateAssets>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4])</AllPrivateAssets>
239240
<CopyLocal Condition="%(PaketReferencesFileLinesInfo.Splits) &gt;= 6">$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[5])</CopyLocal>
240241
<OmitContent Condition="%(PaketReferencesFileLinesInfo.Splits) &gt;= 7">$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[6])</OmitContent>
241242
<ImportTargets Condition="%(PaketReferencesFileLinesInfo.Splits) &gt;= 8">$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[7])</ImportTargets>
243+
<Aliases Condition="%(PaketReferencesFileLinesInfo.Splits) &gt;= 9">$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[8])</Aliases>
242244
</PaketReferencesFileLinesInfo>
243-
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)">
244-
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
245+
<PackageReference Condition=" '$(ManagePackageVersionsCentrally)' != 'true' Or '%(PaketReferencesFileLinesInfo.Reference)' == 'Direct' " Include="%(PaketReferencesFileLinesInfo.PackageName)">
246+
<Version Condition=" '$(ManagePackageVersionsCentrally)' != 'true' ">%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
245247
<PrivateAssets Condition=" ('%(PaketReferencesFileLinesInfo.AllPrivateAssets)' == 'true') Or ('$(PackAsTool)' == 'true') ">All</PrivateAssets>
246248
<ExcludeAssets Condition=" %(PaketReferencesFileLinesInfo.CopyLocal) == 'false' or %(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'exclude'">runtime</ExcludeAssets>
247249
<ExcludeAssets Condition=" %(PaketReferencesFileLinesInfo.OmitContent) == 'true'">$(ExcludeAssets);contentFiles</ExcludeAssets>
248250
<ExcludeAssets Condition=" %(PaketReferencesFileLinesInfo.ImportTargets) == 'false'">$(ExcludeAssets);build;buildMultitargeting;buildTransitive</ExcludeAssets>
251+
<Aliases Condition=" %(PaketReferencesFileLinesInfo.Aliases) != ''">%(PaketReferencesFileLinesInfo.Aliases)</Aliases>
249252
<Publish Condition=" '$(PackAsTool)' == 'true' ">true</Publish>
250253
<AllowExplicitVersion>true</AllowExplicitVersion>
251254
</PackageReference>
255+
<PackageVersion Include="%(PaketReferencesFileLinesInfo.PackageName)">
256+
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
257+
</PackageVersion>
252258
</ItemGroup>
253259

254260
<PropertyGroup>

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"preLaunchTask": "build",
1818
"program": "${workspaceFolder}/src/myriad/bin/Debug/netcoreapp3.0/myriad.dll",
1919
"args": [
20-
"--plugin", "${workspaceFolder}/src/Myriad.Plugins/bin/Debug/net6.0/Myriad.Plugins.dll",
20+
"--plugin", "${workspaceFolder}/src/Myriad.Plugins/bin/Debug/net9.0/Myriad.Plugins.dll",
2121
"--inputfile", "${workspaceFolder}/samples/Example/Library.fs",
2222
"--outputfile", "${workspaceFolder}/samples/Example/Verify.fs",
2323
"--namespace", "Test"

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8-
8+
## Changed
9+
- Upgraded to net9.0
10+
- Updated Nuget packages
11+
Fantomas.Core to 7.0.0
12+
- FSharp.Core 9.0.101
13+
- Argu 6.2.5
14+
- FSharp.Compiler.Service 43.9.101
15+
- Tomlyn 0.18.0
16+
- Expecto 10.2.1
17+
- Aether 8.3.1
18+
- McMaster.NETCore.Plugins 2.0.0
919
## [0.8.3]
1020
## Fixed
1121
Nuget package now has correct link to changelog

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">0.8.3</VersionPrefix>
99
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)$(VersionSuffix)</Version>
1010
<!-- pack stuff -->
11-
<TargetFrameworks>net6.0;netstandard2.1</TargetFrameworks>
11+
<TargetFrameworks>net9.0</TargetFrameworks>
1212
<Authors>7sharp9</Authors>
1313
<PackageProjectUrl>$(GitUrl)</PackageProjectUrl>
1414
<PackageTags>fsharp;codegen;generation;metaprogramming</PackageTags>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The full fsproj is detail below:
145145
```xml
146146
<Project Sdk="Microsoft.NET.Sdk">
147147
<PropertyGroup>
148-
<TargetFramework>net6.0</TargetFramework>
148+
<TargetFramework>net9.0</TargetFramework>
149149
</PropertyGroup>
150150
<ItemGroup>
151151
<Compile Include="Library.fs" />

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<Target Name="Test">
1818
<Exec Command='dotnet build src/Myriad/Myriad.fsproj -c $(Configuration)' />
19-
<Exec Command='dotnet run --framework net6.0 --fail-on-focused-tests --summary --project ./test/Myriad.IntegrationPluginTests/Myriad.IntegrationPluginTests.fsproj -c $(Configuration)' IgnoreStandardErrorWarningFormat="true" />
19+
<Exec Command='dotnet run --framework net9.0 --fail-on-focused-tests --summary --project ./test/Myriad.IntegrationPluginTests/Myriad.IntegrationPluginTests.fsproj -c $(Configuration)' IgnoreStandardErrorWarningFormat="true" />
2020
</Target>
2121

2222
<Target Name="Pack" DependsOnTargets="Clean;Restore;Test">

docs/content/docs/Tutorials/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Myriad uses a configuration file called `myriad.toml` which uses the [toml forma
1414
<?xml version="1.0" encoding="utf-8"?>
1515
<Project Sdk="Microsoft.NET.Sdk">
1616
<PropertyGroup>
17-
<TargetFramework>net6.0</TargetFramework>
17+
<TargetFramework>net9.0</TargetFramework>
1818
<OutputType>Exe</OutputType>
1919
<MyriadConfigFile>myConfig.toml</MyriadConfigFile>
2020
</PropertyGroup>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.202",
3+
"version": "9.0.101",
44
"rollForward": "latestFeature"
55
}
66
}

0 commit comments

Comments
 (0)