@@ -19,7 +19,10 @@ So if you set global.json to a 9.0.xxx SDK, you'll _always_ use the 9.x MSBuild
1919Our FAKE build project will handle creating/deleting a temporary ` global.json ` file in the ` test ` directory for you.
2020
21211 . ` dotnet run --project .\build\ -- -t Test `
22- 1 . This should chose the ` Test:net8.0 ` and ` Test:net9.0 ` targets and run against that respective runtime.
22+ 1 . This will run the following test targets against their respective runtime.
23+ * ` Test:net8.0 `
24+ * ` Test:net9.0 `
25+ * ` Test:net10.0 `
2326
2427### Manually invoking dotnet test
2528
@@ -36,8 +39,7 @@ If you want to run `dotnet test` directly, you'll need to set the `global.json`
3639 ``` json
3740 "sdk" : {
3841 "version" : " 9.0.100" ,
39- "rollForward" : " latestMinor" ,
40- "allowPrerelease" : true
42+ "rollForward" : " latestMinor"
4143 }
4244 ```
43451 . Move to the test project
@@ -48,7 +50,20 @@ If you want to run `dotnet test` directly, you'll need to set the `global.json`
48504 . Run tests with `dotnet test`
4951
5052
51-
53+ #### Against LTS (net10.0)
54+ 1 . Change global.json to use net10.0
55+ ```json
56+ "sdk" : {
57+ "version" : " 10.0.100" ,
58+ "rollForward" : " latestMinor"
59+ }
60+ ```
61+ 1 . Move to the test project
62+ 1 . `cd test/Ionide.ProjInfo.Tests`
63+ 3 . Set environment variable `BuildNet10` to `true`
64+ 1 . Bash: `export BuildNet10=true`
65+ 2 . PowerShell: `$env:BuildNet10 = "true"`
66+ 4 . Run tests with `dotnet test`
5267
5368
5469## Release
0 commit comments