Skip to content

Commit cd7f403

Browse files
committed
Replace failing build.fsx with equivalent build.fsproj project
1 parent d0ec296 commit cd7f403

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

build.fsx renamed to .build/Program.fs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#!/usr/bin/env -S dotnet fsi
2-
#r "nuget: Fake.Core.Target"
3-
#r "nuget: Fake.IO.FileSystem"
4-
#r "nuget: Fake.DotNet.Cli"
5-
#r "nuget: Fake.Core.Target"
6-
#r "nuget: Fake.Core.ReleaseNotes"
7-
#r "nuget: Fake.Tools.Git"
8-
91
open Fake.Core
102
open Fake.Core.TargetOperators
113
open Fake.DotNet
@@ -27,7 +19,7 @@ let projects =
2719
++ "netstandard/**.fsproj"
2820

2921
System.Environment.GetCommandLineArgs()
30-
|> Array.skip 2 // fsi.exe; build.fsx
22+
|> Array.skip 1 // build.exe
3123
|> Array.toList
3224
|> Context.FakeExecutionContext.Create false __SOURCE_FILE__
3325
|> Context.RuntimeContext.Fake

.build/build.fsproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<WarningsAsErrors>FS0025</WarningsAsErrors>
7+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<Compile Include="Program.fs" />
11+
</ItemGroup>
12+
<ItemGroup>
13+
<PackageReference Include="Fake.Core.ReleaseNotes" Version="5.23.1" />
14+
<PackageReference Include="Fake.Core.Target" Version="5.23.1" />
15+
<PackageReference Include="Fake.DotNet.Cli" Version="5.23.1" />
16+
<PackageReference Include="Fake.IO.FileSystem" Version="5.23.1" />
17+
<PackageReference Include="Fake.Tools.Git" Version="5.23.1" />
18+
</ItemGroup>
19+
</Project>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ paket add Fable.Elmish.Browser
1616

1717
.NET Core SDK 6.
1818

19-
> `dotnet fsi build.fsx`
19+
> `dotnet run --project .\.build\build.fsproj`

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ install:
55
- ps: dotnet tool restore
66

77
build_script:
8-
- cmd: dotnet fsi build.fsx
8+
- cmd: dotnet run --project .\.build\build.fsproj
99

1010
cache:
1111
- "%LOCALAPPDATA%\\Yarn"

0 commit comments

Comments
 (0)