Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] I might be dumb, but I'm struggling to get msbuild to run the INSTALL project via CLI. What I'm curr

[DiscordArchive] I might be dumb, but I'm struggling to get msbuild to run the INSTALL project via CLI. What I'm curr

[DiscordArchive] I might be dumb, but I'm struggling to get msbuild to run the INSTALL project via CLI. What I'm curr

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-15-2025, 10:50 PM
#1
Archived author: Foe • Posted: 2025-09-15T22:50:22.859000+00:00
Original source

I might be dumb, but I'm struggling to get msbuild to run the INSTALL project via CLI. What I'm currently doing is two step:
```msbuild /m /v:m /p:Configuration=RelWithDebInfo C:/project/build/TrinityCore.sln```
This works fine, builds the project and the output looks great. Then I do some stuff, like stopping services etc to prepare for install. I then run:
```msbuild /m /v:m /p:Configuration=RelWithDebInfo C:/project/build/TrinityCore.sln /t:INSTALL```
To only target the INSTALL project, but this fails with:
```C:\project\build\ZERO_CHECK.vcxproj : error MSB4057: The target "INSTALL" does not exist in the project.```
Am I doing something obviously wrong?
rektbyfaith
09-15-2025, 10:50 PM #1

Archived author: Foe • Posted: 2025-09-15T22:50:22.859000+00:00
Original source

I might be dumb, but I'm struggling to get msbuild to run the INSTALL project via CLI. What I'm currently doing is two step:
```msbuild /m /v:m /p:Configuration=RelWithDebInfo C:/project/build/TrinityCore.sln```
This works fine, builds the project and the output looks great. Then I do some stuff, like stopping services etc to prepare for install. I then run:
```msbuild /m /v:m /p:Configuration=RelWithDebInfo C:/project/build/TrinityCore.sln /t:INSTALL```
To only target the INSTALL project, but this fails with:
```C:\project\build\ZERO_CHECK.vcxproj : error MSB4057: The target "INSTALL" does not exist in the project.```
Am I doing something obviously wrong?

rektbyfaith
Administrator
0
09-15-2025, 10:56 PM
#2
Archived author: Tea • Posted: 2025-09-15T22:56:16.475000+00:00
Original source

set https://cmake.org/cmake/help/latest/vari...BUILD.html
rektbyfaith
09-15-2025, 10:56 PM #2

Archived author: Tea • Posted: 2025-09-15T22:56:16.475000+00:00
Original source

set https://cmake.org/cmake/help/latest/vari...BUILD.html

rektbyfaith
Administrator
0
09-15-2025, 10:58 PM
#3
Archived author: Foe • Posted: 2025-09-15T22:58:12.400000+00:00
Original source

Ah okay, wouldn't that run install immediately on the normal build? Either way, I got it to work by doing:
```
msbuild /m /v:m /p:Configuration=RelWithDebInfo C:/project/build/INSTALL.vcxproj```
rektbyfaith
09-15-2025, 10:58 PM #3

Archived author: Foe • Posted: 2025-09-15T22:58:12.400000+00:00
Original source

Ah okay, wouldn't that run install immediately on the normal build? Either way, I got it to work by doing:
```
msbuild /m /v:m /p:Configuration=RelWithDebInfo C:/project/build/INSTALL.vcxproj```

rektbyfaith
Administrator
0
09-15-2025, 10:59 PM
#4
Archived author: Tea • Posted: 2025-09-15T22:59:28.175000+00:00
Original source

yes it would
rektbyfaith
09-15-2025, 10:59 PM #4

Archived author: Tea • Posted: 2025-09-15T22:59:28.175000+00:00
Original source

yes it would

rektbyfaith
Administrator
0
09-15-2025, 11:00 PM
#5
Archived author: Tea • Posted: 2025-09-15T23:00:23.083000+00:00
Original source

just keep in mind /t doesnt name projects but msbuild steps like compile/link
rektbyfaith
09-15-2025, 11:00 PM #5

Archived author: Tea • Posted: 2025-09-15T23:00:23.083000+00:00
Original source

just keep in mind /t doesnt name projects but msbuild steps like compile/link

rektbyfaith
Administrator
0
09-15-2025, 11:01 PM
#6
Archived author: Tea • Posted: 2025-09-15T23:01:17.027000+00:00
Original source

if you want cli builds its better to just use ninja
rektbyfaith
09-15-2025, 11:01 PM #6

Archived author: Tea • Posted: 2025-09-15T23:01:17.027000+00:00
Original source

if you want cli builds its better to just use ninja

rektbyfaith
Administrator
0
09-15-2025, 11:02 PM
#7
Archived author: Foe • Posted: 2025-09-15T23:02:21.795000+00:00
Original source

I'll look into it, just migrating our ci/cd so that would be step 2
rektbyfaith
09-15-2025, 11:02 PM #7

Archived author: Foe • Posted: 2025-09-15T23:02:21.795000+00:00
Original source

I'll look into it, just migrating our ci/cd so that would be step 2

rektbyfaith
Administrator
0
09-15-2025, 11:03 PM
#8
Archived author: Tea • Posted: 2025-09-15T23:03:01.953000+00:00
Original source

tc ci uses ninja on github for windows builds
rektbyfaith
09-15-2025, 11:03 PM #8

Archived author: Tea • Posted: 2025-09-15T23:03:01.953000+00:00
Original source

tc ci uses ninja on github for windows builds

rektbyfaith
Administrator
0
09-15-2025, 11:03 PM
#9
Archived author: Foe • Posted: 2025-09-15T23:03:13.131000+00:00
Original source

Cool, I can take a look at that then
rektbyfaith
09-15-2025, 11:03 PM #9

Archived author: Foe • Posted: 2025-09-15T23:03:13.131000+00:00
Original source

Cool, I can take a look at that then

rektbyfaith
Administrator
0
09-15-2025, 11:03 PM
#10
Archived author: Foe • Posted: 2025-09-15T23:03:15.786000+00:00
Original source

thanks!
rektbyfaith
09-15-2025, 11:03 PM #10

Archived author: Foe • Posted: 2025-09-15T23:03:15.786000+00:00
Original source

thanks!

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)