From a05cb50ce1d3dee904322d2e66bd0ed012649ffc Mon Sep 17 00:00:00 2001 From: Maxime Mangel Date: Sun, 18 Feb 2024 18:14:16 +0100 Subject: [PATCH] Allow to use debugger when compiling fable-library-XX + Add Quicktest.Rust to solution file --- .vscode/launch.json | 27 ++++++------------- Fable.sln | 7 +++++ ...Quicktest.fsproj => Quicktest.Rust.fsproj} | 0 3 files changed, 15 insertions(+), 19 deletions(-) rename src/quicktest-rust/{Quicktest.fsproj => Quicktest.Rust.fsproj} (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index f252b6cb31..8ac567a0c2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -169,11 +169,9 @@ "name": "Fable.Cli - fable-library-dart", "type": "coreclr", "request": "launch", - "program": "dotnet", + "preLaunchTask": "build", + "program": "${workspaceFolder}/src/Fable.Cli/bin/Debug/net6.0/fable.dll", "args": [ - "run", - "--project", - "${workspaceRoot}/src/Fable.Cli", "--", "src/fable-library-dart", "--outDir", @@ -193,12 +191,9 @@ "name": "Fable.Cli - fable-library-ts", "type": "coreclr", "request": "launch", - "program": "dotnet", + "preLaunchTask": "build", + "program": "${workspaceFolder}/src/Fable.Cli/bin/Debug/net6.0/fable.dll", "args": [ - "run", - "--project", - "${workspaceRoot}/src/Fable.Cli", - "--", "src/fable-library-ts", "--outDir", "temp/fable-library-ts", @@ -221,12 +216,9 @@ "name": "Fable.Cli - fable-library-py", "type": "coreclr", "request": "launch", - "program": "dotnet", + "preLaunchTask": "build", + "program": "${workspaceFolder}/src/Fable.Cli/bin/Debug/net6.0/fable.dll", "args": [ - "run", - "--project", - "${workspaceRoot}/src/Fable.Cli", - "--", "src/fable-library-py/fable_library", "--outDir", "temp/fable-library-py/fable_library", @@ -245,12 +237,9 @@ "name": "Fable.Cli - fable-library-rust", "type": "coreclr", "request": "launch", - "program": "dotnet", + "preLaunchTask": "build", + "program": "${workspaceFolder}/src/Fable.Cli/bin/Debug/net6.0/fable.dll", "args": [ - "run", - "--project", - "${workspaceRoot}/src/Fable.Cli", - "--", "src/fable-library-rust/src", "--outDir", "temp/fable-library-rust/src", diff --git a/Fable.sln b/Fable.sln index 74cd66e05b..22807fb60f 100644 --- a/Fable.sln +++ b/Fable.sln @@ -70,6 +70,8 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Fable.Library.Rust", "src\f EndProject Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Fable.Library.TypeScript", "src\fable-library-ts\Fable.Library.TypeScript.fsproj", "{C0AD4BF9-638A-43D0-AD46-AAC72C508B42}" EndProject +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Quicktest.Rust", "src\quicktest-rust\Quicktest.Rust.fsproj", "{0818518D-5BAF-498E-B2E8-C3FA5EC3758D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -180,6 +182,10 @@ Global {C0AD4BF9-638A-43D0-AD46-AAC72C508B42}.Debug|Any CPU.Build.0 = Debug|Any CPU {C0AD4BF9-638A-43D0-AD46-AAC72C508B42}.Release|Any CPU.ActiveCfg = Release|Any CPU {C0AD4BF9-638A-43D0-AD46-AAC72C508B42}.Release|Any CPU.Build.0 = Release|Any CPU + {0818518D-5BAF-498E-B2E8-C3FA5EC3758D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0818518D-5BAF-498E-B2E8-C3FA5EC3758D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0818518D-5BAF-498E-B2E8-C3FA5EC3758D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0818518D-5BAF-498E-B2E8-C3FA5EC3758D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -213,6 +219,7 @@ Global {493A3959-758E-4D88-8E82-16680E70D282} = {C8CB96CF-68A8-4083-A0F8-319275CF8097} {A68CF5C2-DAB1-451F-AA36-3C171C61D4F2} = {493A3959-758E-4D88-8E82-16680E70D282} {C0AD4BF9-638A-43D0-AD46-AAC72C508B42} = {C8CB96CF-68A8-4083-A0F8-319275CF8097} + {0818518D-5BAF-498E-B2E8-C3FA5EC3758D} = {C8CB96CF-68A8-4083-A0F8-319275CF8097} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {58DF9285-8523-4EAC-B598-BE5B02A76A00} diff --git a/src/quicktest-rust/Quicktest.fsproj b/src/quicktest-rust/Quicktest.Rust.fsproj similarity index 100% rename from src/quicktest-rust/Quicktest.fsproj rename to src/quicktest-rust/Quicktest.Rust.fsproj