Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2019 Support #9

Open
stungeye opened this issue Dec 21, 2019 · 11 comments
Open

Visual Studio 2019 Support #9

stungeye opened this issue Dec 21, 2019 · 11 comments

Comments

@stungeye
Copy link

stungeye commented Dec 21, 2019

Does this plugin support VS2019? I see that the marketplace version is only available for VS2017.

Currently if I wish to use oF in VS2019 I have to first create the project in VS2017 as described here.

What I've tried:

I cloned this repo and tried opening and running the solution in VS2019. Visual Studio had me install the "Visual Studio extension development" toolset. It also warned about the version of .NET used by the extension (v4.5.2) being different than my installed .NET v4.7.2.

I tried running the project but got a lot of compile errors. I also tried retargetting it to .NET v4.7.2, but no luck. Some of the compilation warnings reference the different .NET versions. The compilation errors referenced a potentially password protected key file that couldn't be imported named keyStore_visualStudioWizard2017.pfx .

I've attached the list of errors and warnings: compilation.txt

Help Offered:

I'm not a C# programmer with VS extension development experience, so I don't think I'd be much help on the coding side. But I'd be happy to help out with any testing and documentation that might be needed for a VS2019 version of this plugin. I could also create a new Visual Studio setup guide for the official oF site for VS2019.

Alternatives:

Should I be looking into /openframeworks/projectGenerator instead of this project to generate new projects for VS2019?

@stungeye
Copy link
Author

A follow-up on "Alternatives": Projects built using the projectGenerator work nicely in VS2019. Retarget platform on first load and then build/run as usual.

@NicTanghe
Copy link

Hello it's now 2020 is there anny info from people working on this?
I don't want to learn processing instead of openframeworks.

@stungeye
Copy link
Author

Hi @NicTanghe. I've been using openframeworks successfully with VS2019 for the past few months. I generate new project using the included projectGenerator app. When opening the project for the first time Visual Studio 2019 will prompt you to retarget the platform. After that all is good.

@NicTanghe
Copy link

@ stugeye

does this mean the only thing i need to install is the project generator?

ps. if this works with vscode 2 is unclear to me.

@stungeye
Copy link
Author

stungeye commented Feb 25, 2020

@NicTanghe The project generator comes with the oF zip for Visual Studio, currently here. You will need to extract this zip to a known location on your hard drive. You can then run the project generator found in the projectGenerator-vs folder. Be sure to generate your new projects inside of the apps\myApps folder that comes with the oF zip. When you open the project for the first time retarget and then be sure to select "x64" for your "Solutions Platform" beside the "Local Windows Debugger" play button.

These instructions are only for Visual Studio 2019 and will not work with VS Code.

@NicTanghe
Copy link

thank you this was unclear to me.
i was downloading the project generator from github and using the mysys version.
The project generator then only alowed me to pick OSX as platform and no templates.

Maybe removing the 2017 from the name whould be usefull.

@NicTanghe
Copy link

i also get the error that it uses an earlyer versiion of the Visual C++ platform toolset.
do i upgrade the platform toolset?
do i upgrade the windows SDK version IDK

@NicTanghe
Copy link

NicTanghe commented Feb 25, 2020

Building does not work terminal throws.

2>Done building project "mySketch.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

error list lists.
image

@NicTanghe
Copy link

NicTanghe commented Feb 25, 2020

do i need to install visual studio 2017 build tools?

after installing" MSVC v141 –vs 2017 C++ x64/x86 build tools "
i simply get new errors and the build stil doesn't complete.

i retarget the Windows 10 sdk version.

i stil get errors but much less.

the errors i get now are.
image

@NicTanghe
Copy link

I try to make a new project.
this time i select.
upgrade to 1.42 in the first popup.
it seems to work now.

@stungeye
Copy link
Author

@NicTanghe Nice. Glad to hear it's working. For the record in VS2019 I had to install "Desktop development with C++" and "Universal Windows Platform Development" Workloads via "Tools -> Get Tools and Features".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants