Skip to content

Commit

Permalink
Created FAKE build as project (instead of tool)
Browse files Browse the repository at this point in the history
  This still contains issues running in dotnet 6 but at least it has a
  workaround by disabling msbuild binlogs. see fsprojects/FAKE#2722. (I
  could have also locked msbuild versions but if I'll forget to update
  it it will be worse then disabling binlogs).
  • Loading branch information
babysnakes committed Jul 16, 2023
1 parent 577f2a8 commit f7d7ea2
Show file tree
Hide file tree
Showing 8 changed files with 702 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ PublishScripts/
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
#!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
Expand Down
13 changes: 13 additions & 0 deletions RoonTagger.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Metadata.Test", "src\Metada
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "RoonTagger.Cli.Test", "src\RoonTagger.Cli.Test\RoonTagger.Cli.Test.fsproj", "{C21A6273-1B76-4993-85AA-DC73F8E54770}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Build", "build\Build.fsproj", "{3342B827-FC6D-419D-A2CB-1D4D25D3714E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -79,6 +81,17 @@ Global
{C21A6273-1B76-4993-85AA-DC73F8E54770}.Release|x64.Build.0 = Release|Any CPU
{C21A6273-1B76-4993-85AA-DC73F8E54770}.Release|x86.ActiveCfg = Release|Any CPU
{C21A6273-1B76-4993-85AA-DC73F8E54770}.Release|x86.Build.0 = Release|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Debug|x64.ActiveCfg = Debug|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Debug|x64.Build.0 = Debug|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Debug|x86.ActiveCfg = Debug|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Debug|x86.Build.0 = Debug|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Release|Any CPU.Build.0 = Release|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Release|x64.ActiveCfg = Release|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Release|x64.Build.0 = Release|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Release|x86.ActiveCfg = Release|Any CPU
{3342B827-FC6D-419D-A2CB-1D4D25D3714E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C57CC9D3-5427-4940-9A6D-FA40901CDA62} = {7C6DD87A-C2D8-4A7F-A00F-F6C9F1ED6203}
Expand Down
6 changes: 6 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
echo Restoring dotnet tools...
dotnet tool restore
dotnet paket restore

dotnet run --project ./build/build.fsproj -- %*
Loading

0 comments on commit f7d7ea2

Please sign in to comment.