Skip to content

Commit

Permalink
allow pre-release in template
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorium committed Sep 23, 2024
1 parent 6f0ef1b commit b8864c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/template/fake-template/Content/build.buildtask.fsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//#if (dependencies == "inline")
#r "paket:
nuget Fake.DotNet.Cli
nuget Fake.IO.FileSystem
nuget Fake.Core.Target
nuget Fake.DotNet.Cli prerelease
nuget Fake.IO.FileSystem prerelease
nuget Fake.Core.Target prerelease
nuget BlackFox.Fake.BuildTask //"
//#endif
#load ".fake/(build.fsx)/intellisense.fsx"
Expand Down
6 changes: 3 additions & 3 deletions src/template/fake-template/Content/build.fake.fsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//#if (dependencies == "inline")
#r "paket:
nuget Fake.DotNet.Cli
nuget Fake.IO.FileSystem
nuget Fake.Core.Target //"
nuget Fake.DotNet.Cli prerelease
nuget Fake.IO.FileSystem prerelease
nuget Fake.Core.Target prerelease //"
//#endif
#load ".fake/(build.fsx)/intellisense.fsx"

Expand Down
6 changes: 3 additions & 3 deletions src/test/Fake.Core.UnitTests/Fake.DotNet.Cli.fs
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ let tests =

Expect.equal cli expected "New --install args generated correctly."

testCase "Test that the dotnet new uninstall command works as expected"
testCase "Test that the dotnet new --uninstall command works as expected"
<| fun _ ->
let param = DotNet.TemplateUninstallOptions.Create("my-awesome-template")
let cli = param |> DotNet.buildTemplateUninstallArgs |> Args.toWindowsCommandLine

let expected = "uninstall my-awesome-template"
let expected = "--uninstall my-awesome-template"

Expect.equal cli expected "New uninstall args generated correctly."
Expect.equal cli expected "New --uninstall args generated correctly."

testCase "Test buildAfterArgs with no after args"
<| fun _ ->
Expand Down

0 comments on commit b8864c5

Please sign in to comment.