From fe84588baf6a9e626f5034c6cbd6fc567ece9864 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Sun, 31 Mar 2024 12:54:44 -0500 Subject: [PATCH 1/2] build FSAC standalone binaries for each OS/Arch --- .gitignore | 3 ++- Directory.Build.props | 1 + global.json | 5 ++--- src/FsAutoComplete/FsAutoComplete.fsproj | 19 ++++++++++++++++++- 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index b34fbd3ac..04d00da67 100644 --- a/.gitignore +++ b/.gitignore @@ -46,4 +46,5 @@ test/FsAutoComplete.Tests.Lsp/TestResults/ .tool-versions BenchmarkDotNet.Artifacts/ -*.sarif \ No newline at end of file +*.sarif +artifacts diff --git a/Directory.Build.props b/Directory.Build.props index ed5de172f..5786e74db 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,6 +3,7 @@ FsAutoComplete FsAutoComplete + $(MSBuildThisFileDirectory)artifacts Apache-2.0 $(NoWarn);3186,0042 diff --git a/global.json b/global.json index 5c6dc58bc..cf2164e4e 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,6 @@ { "sdk": { - "version": "7.0.400", - "rollForward": "major", - "allowPrerelease": true + "version": "8.0.100", + "rollForward": "major" } } \ No newline at end of file diff --git a/src/FsAutoComplete/FsAutoComplete.fsproj b/src/FsAutoComplete/FsAutoComplete.fsproj index 0caf50835..6766eff2b 100644 --- a/src/FsAutoComplete/FsAutoComplete.fsproj +++ b/src/FsAutoComplete/FsAutoComplete.fsproj @@ -2,9 +2,11 @@ Exe - net6.0 + net6.0;net7.0;net8.0 net6.0;net7.0 net6.0;net7.0;net8.0 + + win-x64;linux-x64;linux-arm64;osx-x64;osx-arm64;linux-musl-x64;linux-musl-arm64 fsautocomplete true true @@ -79,6 +81,21 @@ + + + <_RIDS Include="$(RuntimeIdentifiers)" /> + <_RIDSpecificFSACBuild + Include="$(MSBuildThisFile)" + AdditionalProperties="RuntimeIdentifier=%(_RIDS.Identity)" /> + + + + From 798b5f46bcd50ca66b6bb4bbabb8b17e81183a76 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Sun, 31 Mar 2024 16:38:31 -0500 Subject: [PATCH 2/2] slightly better build outputs --- src/FsAutoComplete/FsAutoComplete.fsproj | 30 +++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/FsAutoComplete/FsAutoComplete.fsproj b/src/FsAutoComplete/FsAutoComplete.fsproj index 6766eff2b..5bda9247e 100644 --- a/src/FsAutoComplete/FsAutoComplete.fsproj +++ b/src/FsAutoComplete/FsAutoComplete.fsproj @@ -19,6 +19,10 @@ en true true + true + true + embedded + true + + + + + + <_RIDS Include="$(RuntimeIdentifiers)" /> + + <_TFMS + Include="$(TargetFrameworks)" + RID="%(_RIDS.Identity)" /> + <_RIDSpecificFSACBuild Include="$(MSBuildThisFile)" - AdditionalProperties="RuntimeIdentifier=%(_RIDS.Identity)" /> + AdditionalProperties="RuntimeIdentifier=%(_TFMS.RID);TargetFramework=%(_TFMS.Identity)" /> +