Skip to Content
Technical Articles
Author's profile photo PIERRE BROTHIER

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%20with%20B1%20item

Work with B1 item

 

Add%20item%20template

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

Assigned Tags

      12 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Reza Rehman
      Reza Rehman

      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

      Author's profile photo Beka Latsabidze
      Beka Latsabidze

      Hi,

       

      Will this work for VS 2022?

       

      Regards

      Author's profile photo Kinyanjui Kamau
      Kinyanjui Kamau

      @Beka Latsabidze B1 Studio with the latest version of SAP 10 works for VS 2022.

      Author's profile photo JULIAN CAB CANUL
      JULIAN CAB CANUL

      Cual es el proceso para que los templates funcionen en VS 2022 con SAP 10 FP2111?

      Author's profile photo Kinyanjui Kamau
      Kinyanjui Kamau

      Install VS2022 on your system first then install B1 including Studio.

       

      Open VS after installation and the templates should be there.

      Author's profile photo JULIAN CAB CANUL
      JULIAN CAB CANUL

      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.

      Author's profile photo Beka Latsabidze
      Beka Latsabidze

      Does not work for VS 22.

       

      Regards

      Author's profile photo JULIAN CAB CANUL
      JULIAN CAB CANUL

      In a forum I found that it can be done and other colleagues have already achieved it but they don't remember the process.

      Author's profile photo Beka Latsabidze
      Beka Latsabidze

      I hope it will be officially supported in next releases.

       

      Regards

      Author's profile photo JULIAN CAB CANUL
      JULIAN CAB CANUL

      Solucionado.

      VStudio 2022

      B1 Studio (SAP B1 FP2111)

      Author's profile photo Beka Latsabidze
      Beka Latsabidze

      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

      Author's profile photo Ibeth Rocio Cuzcano Quispe
      Ibeth Rocio Cuzcano Quispe

      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