wwDotnetBridge
Unable to load CLR under VS Code running as a task
Gravatar is a globally recognized avatar based on your email address. Unable to load CLR under VS Code running as a task
  Marcel DESMET
  All
  Oct 26, 2024 @ 10:14am

Hello,

Wwdotnetbridgetest.exe is ok when it run from a desktop shortcut or from foxpro and I also run the PowerShell to unlock the DLL

But not with this command task in Visual Studio Code failed with the LOAD CLR error

        {
            "label": "Test Markdown",
            "type": "shell",
            "windows": {
                "command": "C:\\Webconnectionprojects\\WebMove\\Tools\\wwdotnetbridgetest.exe"
            },           
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }

Tks Marcel

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR under VS Code running as a task
  Marcel DESMET
  Marcel DESMET
  Oct 26, 2024 @ 09:10pm

Here are additional information

Tks Marcel

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR under VS Code running as a task
  Rick Strahl
  Marcel DESMET
  Oct 27, 2024 @ 03:58pm

What exactly is 'Not Ok'?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR under VS Code running as a task
  Marcel DESMET
  Rick Strahl
  Oct 27, 2024 @ 10:17pm

What exactly is 'Not Ok'?

I build a Html maker in fox that I use with Visual Studio to build static Html files

Just wanted to ad MarkDown using your tools without success.

I tried with with a clean exe ( wwdotnetbridgetest.exe ) also without success

There may be internal protection in VS code because the program works well under Windows with a shortcut ?

Tks Marcel

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR under VS Code running as a task
  Rick Strahl
  Marcel DESMET
  Oct 28, 2024 @ 10:02am

I'm guessing ShellExecute (which Code is using it looks like) is not finding the DLL... you have to make sure you set your startup folder to the right path in the execution options.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR under VS Code running as a task
  Marcel DESMET
  Rick Strahl
  Oct 28, 2024 @ 09:30pm

Yes, thank you it work's with the cwd option

{
    "label": "Test Markdown",
    "type": "shell",
    "windows": {
        "command": "C:\\Webconnectionprojects\\WebMove\\Tools\\wwdotnetbridgetest.exe"
    },   
    "options": {
        "cwd": "C:\\Webconnectionprojects\\WebMove\\Tools\\"
    },        
    "group": {
        "kind": "build",
        "isDefault": true
    }
}



Marcel

© 1996-2025