Technical Articles
Working with B1 studio in Visual Studio 2017
Introduction
I have been coding with SAP Business One SDK since 2006. Working with Visual Studio and integrated fonction from B1 Studio is really great.
But when I have upgraded Visual Studio to 2017 version, I found out that it wasn’t supported with B1 Studio (see https://launchpad.support.sap.com/#/notes/2108204 ).
But with the following tips, I could develop as smooth as before.
First step : Modify register keys
- Open regedit,
- navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio
- Rename keys from 15.0 o 10.0
- Install B1 Studio
- Rename keys from 10.0 to 15.0
If you have also VS 2010, you’ll have to change key too.
Second Step : Dealing with templates
There’s two kind of template :
- item
- Project
In Vs2010, the paths are like :
- C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp
- C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp
In Vs 2017, we have to move into the following directory
- C:\Users\<username>\Documents\Visual Studio 2017\Templates\ItemTemplates\Visual C#
- C:\Users\<username>\\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#
You’ll just have to start Visual Studio to create Add-on solution and work with designer.
Work with B1 item
Add item template
I guess this solution should be working with 2019 version of Visual Studio, but I haven’t tried yet.
As of release 10.0 FP 2008, SAP Business One Studio Suite supports Microsoft Visual Studio 2017 and 2019 (https://launchpad.support.sap.com/#/notes/2936980)
Share and Connect
Enjoyed the blog? Post a comment, share on social media, and/or give a like. Thanks!
Thanks & regards,
Pierre
Hello Pierre,
I am running Visual Studio 2019 Community Edition, with B1 FP 2012. According to the note, VS 2019 should be supported, so i didn't do the registry change as mentioned in your blog.
When I create an new project in VB, but I get an error "The Template specified cannot be found". I have moved the folders as you mentioned. Could you please help out?
Thanks
Reza
Hi,
Will this work for VS 2022?
Regards
@Beka Latsabidze B1 Studio with the latest version of SAP 10 works for VS 2022.
Cual es el proceso para que los templates funcionen en VS 2022 con SAP 10 FP2111?
Install VS2022 on your system first then install B1 including Studio.
Open VS after installation and the templates should be there.
Se tiene que seguir el proceso de arriba que muestran, o simplemente instalarlo?
Sucede que si solo lo instalo, me dice que no existe alguna instalacion de VS actualmente, cuando si la hay.
Does not work for VS 22.
Regards
In a forum I found that it can be done and other colleagues have already achieved it but they don't remember the process.
I hope it will be officially supported in next releases.
Regards
Solucionado.
VStudio 2022
B1 Studio (SAP B1 FP2111)
It just works out of box or you did some modifications?
Because I tired to install that specific version but 2022 studio did not show up.
Regards
Hola,
Soy nueva en la comunidad, puedes indicarnos como lo lograste, estoy empezando con desarrollos pequeños y estoy buscando por todos lados como integrar las plantillas de SAP en el visual.
Saludos
No te compliques, puedes usar el VS2015 y todo fluye correctamente. Si tienes mas dudas contactame
I have both VS 2019 and VS 2022 installed.
We are on 10.00.200, and when I run the setup wizard, it seems to install support and templates for the 2019 edition of VS