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

Support for VS 2022 (and x64) #194

Closed
ruilvo opened this issue Jul 21, 2021 · 11 comments
Closed

Support for VS 2022 (and x64) #194

ruilvo opened this issue Jul 21, 2021 · 11 comments

Comments

@ruilvo
Copy link

ruilvo commented Jul 21, 2021

Hey!

Visual Studio 2022 introduced x64 builds for the first time. This broke all extensions.
There is a migration guide.

For extensions written in C# it's basically just an x64 rebuild.

It would be interesting to have this working now during the beta phases and have it release-ready.

Thanks

@memsharded
Copy link
Member

Thanks for reporting. I guess there are also other things to do in Conan first, like adding support in settings.yml for this compiler. Creating an issue for it.

@SSE4
Copy link

SSE4 commented Aug 3, 2021

see also conan-io/conan#9362
it should be a first step

@nminkov
Copy link

nminkov commented Jan 3, 2022

Now that VisualStudio 2022 was officially out for sometime, was there some progress on the extension?

@memsharded
Copy link
Member

Nop, I am afraid at the moment this extension is on "stand-by". Until we release Conan 2.0 GA (we are in alpha now, it will take a few months, beta, etc), we will most likely not have time to resume working on this extension to update it.

@nminkov
Copy link

nminkov commented Jan 3, 2022

Thanks for the update @memsharded. It's too bad, it's an essential extension for us for transparent integration of Conan with VS. It means we can't migrate to VS 2022. Good luck

@ruilvo
Copy link
Author

ruilvo commented Jan 3, 2022

You could try building the extension from source. I'm not sure how much of it will work, if at all, but it's certainly something you can try.

@nminkov
Copy link

nminkov commented Jan 3, 2022

Sure I will try, thanks for the suggestion

@RobLinux
Copy link

https://github.com/RobLinux/conan-vs-extension managed to upgrade and build it for 2022. but it won't work for vs2019 so just install it for 2022 :) here is the vsix :
Conan.VisualStudio.zip

@playgithub
Copy link

playgithub commented Apr 12, 2022

https://github.com/RobLinux/conan-vs-extension managed to upgrade and build it for 2022. but it won't work for vs2019 so just install it for 2022 :) here is the vsix : Conan.VisualStudio.zip

UPDATE 2

It works, but buggy, it's likely the the latest version for VS2019 also has the same problems.
After changing recipe, and install again by conan-vs-extension, it doesn't take effect immediately.
I haven't digged it for the reasons, I just remove the relevant libs and reinstall it, and it works.
The extension doesn't support conan profile,does it?

BTW, If install the recipe manually by command conan with a conan profile, and add ".props" in Property Manager in Visual Studio, it works well.


UPDATE 1

After installing Microsoft.VSSDK.BuildTools (version 17.0.5234 works, latest version (17.1.4054) not work),
everything builds successfully.


Can not build the extension in VS2022

dev/HEAD
commit id: 85138cc (Added: visual studio 2022 compatibility)

log

\path\to\conan-vs-extension\Conan.VisualStudio\Conan.VisualStudio.csproj(240,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.VSSDK.BuildTools.17.0.5234\build\Microsoft.VSSDK.BuildTools.targets.

@AbrilRBS
Copy link
Member

Closing as we've just released a new vs2022, which will be the version we'll be supporting in the future, feel free to check it out in https://marketplace.visualstudio.com/items?itemName=conan-io.conan-vs-extension&ssr=false#overview, we welcome any feedback :)

@nminkov
Copy link

nminkov commented Mar 18, 2024

Thanks!

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

7 participants