vscode-deploy-reloaded icon indicating copy to clipboard operation
vscode-deploy-reloaded copied to clipboard

Cannot figure out how to run dotnet commands

Open rich-ware opened this issue 6 years ago • 1 comments

Description

I'd like to know how I can run dotnet commands before deploying the files.

Actual behavior

Nothing. This is something I am not sure how to do.

Expected behavior

Be able to run dotnet build -c Release -f netcoreapp2.1 . Then run dotnet publish -c Release -f netcoreapp2.1 Then the files are copied to the directory under targets in the settings.

Steps to reproduce

Nothing. This is something I am not sure how to do.

Example config

{
   "deploy.reloaded": {
       
        "packages": [
            {
                "button": {
                    "enabled": true,
                    "text": "Deploy My Web Api!"
                },
                "name": "Version 0.0.1",
                "description": "Package version 0.0.1",
                "files": [
                  "Projects_External/branches/Development/MyWebApi/bin/Release/netcoreapp2.1/publish/**"
                ],
                "deployOnSave": false
            }
        ],
        "targets": [
            {
                "type": "local",
                "name": "My network folder",
                "description": "A shared network folder",
                "dir": "C:/Test/WebApi_Test_Deploy"
            }
         ]       
    }
}

Logs

// write log messages here, if possible

// maybe one or more log files are available
// in sub folder '.vscode-deploy-reloaded/.logs'
// inside your home directory

Screenshot

{Please write here, if possible}

Your environment

  • Operating system: Windows 10
  • Visual Studio Code version: 1.25.1
  • Extension version: 0.84.0

Additional comments

Simply trying to do the following:

  1. Build a .net core project in Release mode
  2. Publish the same .net core project
  3. Files are deployed to the directory specified in the target section.

All three steps are done by pressing the Button at the bottom of VS Code.

rich-ware avatar Jul 31 '18 20:07 rich-ware

@rich-ware

You can try to define one or more target operations.

mkloubert avatar Aug 01 '18 19:08 mkloubert