Поиск результатов сборки в Visual Studio 6 (Visual Basic) - PullRequest
4 голосов
/ 02 декабря 2011

Я понимаю, что это будет экзотический вопрос, но я просто не могу найти ответ.

Я пытаюсь исправить и улучшить старое приложение на основе Visual Basic.

Моя проблема: где находится выходной каталог со скомпилированными двоичными файлами?

Спасибо.

Если требуется пояснение, спросите.

Ответы [ 3 ]

10 голосов
/ 02 декабря 2011

В .VBP, если есть строка с указанием пути, подобного этому

Path32="C:\"

, тогда полученный EXE будет построен в этом месте.В противном случае он будет построен в том же каталоге, что и файл .VBP.Путь также может быть реляционным и не может быть полностью определенным путем.

4 голосов
/ 03 декабря 2011

Я думаю, вам нужен переключатель /outdir.Это переопределяет настройку Path32 в файле проекта.

VB6[.EXE]  [[{/run | /r}] | [/runexit] | [{/make | /m}] projectname]
           [/out filename] [/outdir path] [/d const=value{[:constN=valueN]}]
           [/mdi | /sdi] [{/cmd argument | /c argument}]

Options:

/run or /r projectname  Tells Visual Basic to compile projectname and run it,
                        using the arguments stored in the Command Line
                        Arguments field of the Make tab of the Project
                        Properties dialog box.

/runexit projectname    Tells Visual Basic to compile projectname and run it.
                        Visual Basic will exit when the project returns to
                        design mode.

/make or /m projectname Tells Visual Basic to compile projectname and make an
                        executable file from it, using the existing settings
                        stored in the project file.

/out filename           Specifies a file to receive errors when you build using
                        /m or /runexit. If you do not use /out, command line
                        bild errors are displayed in a message box.

/outdir path            Specifies a directory path to place all output files in
                        when using /make.  This path must already exist.

/d or /D const=value... Tells Visual Basic which values to use for conditional
                        compilation constants when making an .EXE or ActiveX
                        component with the /make switch.  Separate multiple
                        constants with colons.

/cmd or /c argument     Specifies a command string to be passed to the Command$
                        function. When used, it must be the last switch on the
                        command line.

/mdi or /sdi            Changes the Visual Basic environment to either Single
                        Document Interface (SDI) or Multiple Document Interface
                        (MDI) mode.  Visual Basic remains in this mode until
                        you change it.

/?                      Displays a list of valid command line switches.

You may use a group name in place of projectname in any of the above switches.

Работает нормально здесь.

0 голосов
/ 02 декабря 2011

Нет эквивалентного выходного каталога bin / lib для VB6. Когда вы компилируете проект VB6, по умолчанию компилируется в ту же папку, что и проект (файл vbp). Также возможно выполнить компиляцию в любую другую папку, доступную пользователю.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...