Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98994

opying a file when executing the building task

$
0
0

I would like to copy a .dll into the folder where the project is compiled when I run the building task. I want to put the whole thing in the task.json of the visual studio code but unfortunately I'm quite a beginner and don't know exactly which "shell" command to use and if I can attach it to the building task.

Maybe one of you can help me - thank you! Here is the .json code

"version": "2.0.0",
"tasks": [
    {
        "type": "shell",
        "label": "c++.exe build active file",
        "command": "C:\\MinGW\\bin\\g++.exe",
        "args": [
            "-g",
            "${file}",
            "-o",
            "${fileDirname}\\${fileBasenameNoExtension}.exe",
            "-static-libgcc",
            "-static-libstdc++"
        ],
        "options": {
            "cwd": "C:\\MinGW\\bin"
        },
        "problemMatcher": [
            "$gcc"
        ],
        "group": "build"
    },
]

}


Viewing all articles
Browse latest Browse all 98994

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>