I have a freestyle project set up. Right before I invoke msbuild in a batch file, I issue “dir” to verify the solution file is present. When I invoke msbuild using this .sln file as the project/solution to build, it errors with “Project file does not exist.” That doesn’t make sense. Previously I used an actual “Build a Visual Studio Project…” step and got the same error. Whether from a batch file or ran directly, the result is the same.
I’m stumped. Anyone have an idea for a solution? Here’s the relevant output from the console window.
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>dir
Volume in drive C has no label.
Volume Serial Number is 8C2E-DEBB
Directory of C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit
12/20/2022 10:43 AM [DIR] [this]
12/20/2022 10:43 AM [DIR] [parent]
12/20/2022 10:43 AM 579 BuildAll.bat
12/20/2022 10:43 AM [DIR] GameServerKit
12/20/2022 10:43 AM 230,082 GameServerKit.sln
12/16/2022 04:39 PM 519 preBuildScriptForSolution.bat
12/19/2022 02:44 PM 293 versioner.bat
4 File(s) 231,473 bytes
3 Dir(s) 25,485,660,160 bytes free
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>BuildAll.bat
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>REM This should exist and be running from the GameServer\GameServerKit folder
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>REM Purge unique files built last
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>del …\GWService\GWService\bin\Release\GWService.*
The system cannot find the path specified.
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>copy GameServerKit\GameServerKit-Release.isproj GameServerKit\GameServerKit.isproj /y
1 file(s) copied.
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\GameServer\GameServerKit>msbuild.exe -p:Configuration=Release GameServerKit.sln
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: GameServerKit.sln