Skip to content

Visual Studio 2026#8511

Merged
ofTheo merged 16 commits intoopenframeworks:masterfrom
danoli3:vs2026
Apr 7, 2026
Merged

Visual Studio 2026#8511
ofTheo merged 16 commits intoopenframeworks:masterfrom
danoli3:vs2026

Conversation

@danoli3
Copy link
Copy Markdown
Member

@danoli3 danoli3 commented Apr 6, 2026

Visual Studio 2026 Support

  • Brings updates to support VS 2026 v145
  • Support for arm64, arm64ec, x64
  • New core openFrameworks vs2026 project files
  • New core openFrameworks vs2026 template project file
  • apothecary libraries built with v145 latest Microsoft developments with C++latest
  • VS2022 - Project File Updates - Fixed format issues, semicolons, inconsistent warning levels, c++ version to latest
  • downloader updated to include remote download url in silent mode
  • download_libs updated to include vs2026 library paths / arch target supported
  • GitHub Workflow updates for VS2026.
  • ci install script for vs updated to support different arch and vs2026

danoli3 added 2 commits April 6, 2026 13:24
- Fixed format issues, semicolons, inconsistent warning levels, c++ version to latest
@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

image

core openFrameworks in v145

danoli3 added 6 commits April 6, 2026 14:42
- For download include remote url in downloading output in silent mode for transparency
- vs2026 downloads added
- added vs2026 changes for passed arch value for just 64 or arm64 etc
@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

Empty Example
image

@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

Empty Example:

image

danoli3 added 2 commits April 6, 2026 15:26
- ci install script for vs updated
  -- to support different arch and vs2026
@danoli3 danoli3 moved this to In Progress in openFrameworks Development Apr 6, 2026
@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

AllAddonsExample
Screenshot 2026-04-06 at 7 41 37 pm

@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

pG generating with passed in vs2026 template
image

OPTIONS="-o\"${OF_ROOT}\" -v -a\"$ADDON\" -p\"vs\" -t\"vs2026\" \"${OF_ROOT}\\${PROJECT}\""
      echo "Updating: ${PROJECT}"
      eval "${PG_OF_PATH} ${OPTIONS}"

@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

PG works without any updates with the vs2026 template folder
image

VS2026
image

VS2022
projects still work in VS2026 installed with some warnings
image
image

@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 6, 2026

@ofTheo this should solve a lot of the windows issues as VS2026 is default installer on VisualStudio now

@danoli3 danoli3 requested a review from ofTheo April 7, 2026 03:29
@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 7, 2026

@ofTheo shall I merge this it seems all good. Can you check allAddonsExamples after merge

@danoli3
Copy link
Copy Markdown
Member Author

danoli3 commented Apr 7, 2026

Updated Docs:

# Visual Studio

## Prerequisites
- Git - [Git for Windows] (https://git-scm.com/install/windows)

## Visual Studio Installation
------------

Download and install **Visual Studio 2022** or **Visual Studio 2026**.  

We recommend the free **Community** edition.

- [Visual Studio 2022 Community](https://visualstudio.microsoft.com/downloads/)  
- [Visual Studio 2026 Community](https://visualstudio.microsoft.com/downloads/)  

During installation, select the **Desktop development with C++** workload.

## Install openFrameworks
- Download openFrameworks 0.12.1 or later from the [download page](http://openframeworks.cc/download/) or from [github](https://github.com/openframeworks/openFrameworks/).
- If you got openFrameworks from git: https://github.com/openframeworks/openFrameworks
	- Run `scripts/android/download_libs.sh` to download libraries.
	- Use the Project Generator to generate Visual Studio project files for examples.

## Libraries
------------

If missing any libraries or want to update them run the script at **vs/scripts/**
- **download_libs.sh**

## Creating a new openFrameworks project
-------------------------------------

1. Open the **Project Generator** (ofxImGui interface).  
2. Enter your **Project name**.  
3. Choose your **Project path**.  
4. Under **Platforms**, select **Windows (Visual Studio)**.  
5. Under **Template**:  
   - For **Visual Studio 2022** → leave the Template field empty (default)  
   - For **Visual Studio 2026** → select **`vs2026`** from the dropdown  
6. Click **Generate**.

![Project Generator — Visual Studio 2022 (default template)](/images/vs/pg-vs2022.png)

![Project Generator — selecting the vs2026 template](/images/vs/pg-vs2026.png)

## Open and Run your project
----------------------

![Project Generator success screen](/images/vs/pg-success.png)

You can run by clicking Open in IDE in Project Generator or Open Folder to access directory.

Your project solution file is located at:  
`openFrameworks/apps/[yourFolder]/[projectName]/[projectName].sln`


Double-click the `.sln` file to open it in the matching version of Visual Studio (2022 or 2026).


![Visual Studio 2026 loading](/images/vs/vs2026.png)

Press **F5** to build and run in Debug mode.

## Debug vs Release
-------------------

- **Debug** — best while developing (full error info).  
- **Release** — smaller and faster (use when finished).  

Switch between them using the dropdown at the top of Visual Studio.

## Architectures
-------------------
- Targets are x86_64 - x64 - Default Windows
- ARM64 - for arm64 processors (native arm)
- ARM64EC - a mixture of both x64/arm64 for Windows 11

## Start coding
-------------

Hit **Esc** to close the window, then edit your code in `src/ofApp.cpp` and `src/ofApp.h`.

![Visual Studio 2026 Running](/images/vs/vs-2026-example.png)

Copy link
Copy Markdown
Member Author

@danoli3 danoli3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good for review of files. Just VS foldres and Download ci scripts. Download script fixes.

@danoli3 danoli3 moved this from In Progress to Done in openFrameworks Development Apr 7, 2026
@ofTheo ofTheo merged commit 04a7c4d into openframeworks:master Apr 7, 2026
20 checks passed
@ofTheo
Copy link
Copy Markdown
Member

ofTheo commented Apr 7, 2026

Thanks @danoli3 !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants