[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
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?
Archived author: Tea • Posted: 2025-09-15T22:56:16.475000+00:00
Original source
set https://cmake.org/cmake/help/latest/vari...BUILD.html
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```
Archived author: Tea • Posted: 2025-09-15T22:59:28.175000+00:00
Original source
yes it would
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
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
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
Archived author: Tea • Posted: 2025-09-15T23:03:01.953000+00:00
Original source
tc ci uses ninja on github for windows builds
Archived author: Foe • Posted: 2025-09-15T23:03:13.131000+00:00
Original source
Cool, I can take a look at that then
Archived author: Foe • Posted: 2025-09-15T23:03:15.786000+00:00
Original source
thanks!