From cccece18bf88fed9f412e4cf0cf0920733f7013b Mon Sep 17 00:00:00 2001 From: Jimmy Byrd Date: Sun, 17 Sep 2023 19:16:22 -0400 Subject: [PATCH 1/2] Format after building --- .fantomasignore | 5 +++++ Directory.Build.targets | 32 +++++++++++++++++++++++++------- Directory.Solution.targets | 8 +++----- 3 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 .fantomasignore diff --git a/.fantomasignore b/.fantomasignore new file mode 100644 index 000000000..e4821f857 --- /dev/null +++ b/.fantomasignore @@ -0,0 +1,5 @@ +test/ +build/ +benchmarks/ +utils/ +demo.fsx diff --git a/Directory.Build.targets b/Directory.Build.targets index ac86c2874..2a1809c47 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,12 +1,30 @@ - - - $(Version)-$(VersionSuffix) - $(Version) - - + + <_BuildProjBaseIntermediateOutputPath>$(MSBuildThisFileDirectory)build/obj/ + <_DotnetToolManifestFile>$(MSBuildThisFileDirectory).config/dotnet-tools.json + <_DotnetToolRestoreOutputFile>$(_BuildProjBaseIntermediateOutputPath)/dotnet-tool-restore-$(NETCoreSdkVersion) + <_DotnetFantomasOutputFile>$(BaseIntermediateOutputPath)dotnet-fantomas-msbuild + + + + $(Version)-$(VersionSuffix) + $(Version) + + + + + + + + + + + + + + diff --git a/Directory.Solution.targets b/Directory.Solution.targets index 649ad93a7..01ee9997e 100644 --- a/Directory.Solution.targets +++ b/Directory.Solution.targets @@ -1,13 +1,11 @@ - - - + - + - + From 1723ad8a564669ba5cd8524311a4ea6b52f1a854 Mon Sep 17 00:00:00 2001 From: Jimmy Byrd Date: Sun, 17 Sep 2023 19:17:48 -0400 Subject: [PATCH 2/2] Format on save --- .vscode/settings.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index bd975e647..c88acb648 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,5 +19,8 @@ "*.*proj": "msbuild", "*.props": "msbuild", "*.targets": "msbuild" + }, + "[fsharp]": { + "editor.formatOnSave": true } -} \ No newline at end of file +}