Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Xbox 360) Using newer versions of Visual Studio for building xex's | VS2… (Tutorial)
1
Using newer versions of Visual Studio for building xex's | VS2022+

System: Xbox 360

Description

Some people probably already know how to do this, but I haven't really seen any tutorials anywhere. This will work with VS2022, VS2022 Preview, and VS2026 (Insiders Preview). There are probably better ways, but this is fairly simple.

Notes:
* You still need to have the full sdk install with a compatible version of Visual Studio (2010/2012 Professional or higher)
* Enables the ability to use a modern IDE as well as Copilot integration
* This isn't a solution that works for all future projects. It has to be done for each one

This is just a simple batch script that invokes the old compiler from vs2010 or whichever you have installed for the SDK. Code: @echo off setlocal :: === CONFIGURATION === set "PROJECT_PATH=C:\FULL\PATH\TO\YOUR\PROJECT\PROJECT.vcxproj" :: full path to your .vcxproj file set "CONFIG=Release_LTCG" :: project configuration set "PLATFORM=Xbox 360" :: === VS2010 ENVIRONMENT === call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 :: change this if your VS version is different. This is for 2010 if errorlevel 1 ( echo ❌ Failed to initialize VS2010 environment. goto :end ) :: === BUILD === echo Building project... msbuild "%PROJECT_PATH%" /p:Configuration=%CONFIG% /p:Platform="%PLATFORM%" /m if errorlevel 1 ( echo ❌ Build failed. ) else ( echo ✅ Build succeeded. ) :end echo. echo Press any key to exit... pause >nul endlocal

* Change PROJECT_PATH to the full path of your .vcxproj project file.
* If you're not using VS2010, you'll have to change the path under the "VS2010 Environment" section
* Save it as .bat file
* Open Visual Studio 2022 or 2026 and navigate to "Tools" on the top menu bar
* Open "External Tools"

* You will get this dialog
* Click 'Add'

* Give it a Title you will recognize
* The Command is just the full path to where the .bat file is saved
* Select 'Use Output Window' if you want to see the build progress in the vs output window
* Click 'Ok' when finished

Now you will see the title you gave it in the 'Tools' tab. Just click it to build and make sure to save each time before you build.

Build output

* Mods, feel free to move this if it is not the right section
Reply

Users browsing this thread:
1 Guest(s)

Messages In This Thread
(Xbox 360) Using newer versions of Visual Studio for building xex's | VS2… (Tutorial) - by xSicKxBot - 02-23-2026, 11:31 PM


Forum Jump: