USe MSBuild properties in windows batch command line?

TOMMY WANG

defined some msbuild properties, is it possible to 'promote' it to be used in the windows batch file? i.e. in my .bat file write something 'echo %CustomProperty%' where the CustomProperty is defined in the msbuild script

MHOOS

Accessing MSbuild properties within a batch file doesn't seem to be the correct release approach and does not seem necessary. The same facility is easily available within Msbuild itself. In your example case you can use something like the following:

<Message Text="Copying $(ZipFile) to $(PublicFolderToDropZip)" Importance="high" />

to achieve what you were looking. You can even run batch files in the following manner:

   <Target Name="Default">
    <Exec Command="CALL mybatch.cmd" />
  </Target>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Batch conversion for images from command line on Windows

From Dev

use variable in command line batch file

From Dev

Batch file: Use Loop for in command line

From Dev

How to convert Windows path to file: URL, in a batch file, suitable for SVN command line use

From Dev

SSDT Publish does not use connection string from MSBuild command line

From Dev

command line msbuild with multiple DefineConstants

From Dev

TeamCity vs MSBuild command line

From Dev

command line msbuild with multiple DefineConstants

From Dev

MSBuild SonarQube runner in command line

From Dev

TeamCity vs MSBuild command line

From Dev

Windows batch files: how to compare command line argument to an integer

From Dev

Passing command-line arguments to a windows batch script

From Dev

How to convert a windows batch file into a signle line "cmd /c" command?

From Dev

Executing parameterized .exe files via batch script (Windows command line)

From Dev

Change Display Arrangement via Batch/Command Line on Windows 7

From Dev

How to use ImageMagick command line on Windows?

From Dev

How to make a batch file to use Flex command line debugger?

From Dev

use echo and another command in the same line in batch file

From Dev

Open Windows Schedule Task Gui Properties with command line

From Dev

Windows7 Batch file: Net Use command

From Dev

Multithreaded Windows FOR batch command

From Dev

MSBuild solution command line output to individual folders

From Dev

Import .targets file from command line in msbuild

From Dev

Database msbuild publish not working from command line

From Dev

Visual Studio 2013 and MSBuild command line switches

From Dev

MSbuild command line - Publish artifacts on specfic location

From Dev

Windows Command Line: 'not recognized as an internal or external command, operable program or batch file.'

From Dev

Is it possible to write a small (5 line - or more) batch file in the Windows Command Line?

From Dev

Batch script vs command line

Related Related

  1. 1

    Batch conversion for images from command line on Windows

  2. 2

    use variable in command line batch file

  3. 3

    Batch file: Use Loop for in command line

  4. 4

    How to convert Windows path to file: URL, in a batch file, suitable for SVN command line use

  5. 5

    SSDT Publish does not use connection string from MSBuild command line

  6. 6

    command line msbuild with multiple DefineConstants

  7. 7

    TeamCity vs MSBuild command line

  8. 8

    command line msbuild with multiple DefineConstants

  9. 9

    MSBuild SonarQube runner in command line

  10. 10

    TeamCity vs MSBuild command line

  11. 11

    Windows batch files: how to compare command line argument to an integer

  12. 12

    Passing command-line arguments to a windows batch script

  13. 13

    How to convert a windows batch file into a signle line "cmd /c" command?

  14. 14

    Executing parameterized .exe files via batch script (Windows command line)

  15. 15

    Change Display Arrangement via Batch/Command Line on Windows 7

  16. 16

    How to use ImageMagick command line on Windows?

  17. 17

    How to make a batch file to use Flex command line debugger?

  18. 18

    use echo and another command in the same line in batch file

  19. 19

    Open Windows Schedule Task Gui Properties with command line

  20. 20

    Windows7 Batch file: Net Use command

  21. 21

    Multithreaded Windows FOR batch command

  22. 22

    MSBuild solution command line output to individual folders

  23. 23

    Import .targets file from command line in msbuild

  24. 24

    Database msbuild publish not working from command line

  25. 25

    Visual Studio 2013 and MSBuild command line switches

  26. 26

    MSbuild command line - Publish artifacts on specfic location

  27. 27

    Windows Command Line: 'not recognized as an internal or external command, operable program or batch file.'

  28. 28

    Is it possible to write a small (5 line - or more) batch file in the Windows Command Line?

  29. 29

    Batch script vs command line

HotTag

Archive