We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9653fd commit 6424a61Copy full SHA for 6424a61
src/Fantomas.Client.Tests/EndToEndTests.fs
@@ -40,7 +40,16 @@ type EndToEndTests() =
40
41
// This sdk version must match the version used in this repository.
42
// It will be the version which the CI/CD pipeline has access to.
43
- do! dotnet "new globaljson --sdk-version 7.0.202 --roll-forward latestPatch"
+ let! dotnetVersionResult =
44
+ Cli
45
+ .Wrap("dotnet")
46
+ .WithWorkingDirectory(__SOURCE_DIRECTORY__)
47
+ .WithArguments("--version")
48
+ .ExecuteBufferedAsync()
49
+ .Task
50
+
51
+ let dotnetVersion = dotnetVersionResult.StandardOutput.Trim()
52
+ do! dotnet $"new globaljson --sdk-version %s{dotnetVersion} --roll-forward latestPatch"
53
do! dotnet "new tool-manifest"
54
55
do!
0 commit comments