Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Can we manage Power Bi custom Visual in Visual studio 2019 (not visual studio code)?

Coming from a C# developer, I loved to use Visual Studio to mange my projects.  Having very little knowledge in Typescript, I am developing a power bi custom visual,  VS Code is small but lack of so many features that I am used to in Visual Studio 2019.

 

I am now editing my ts code in visual studio 2019 and open the same code in VScode to do 'pbiviz start'.

 

I wonder if I can do the editing and run 'pbiviz start' both under Visual Studio 2019?  Also is there a way that I put a breakpoints in the code and when it runs I can see my watched variable? 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous - as a substitute for opening VS Code to run pbiviz start, you should just be able to run this from the console or PowerShell from the root directory (which is basically what the console in VS code is doing)? I use this add-in for ad-hoc stuff (which spans a PowerShell window in my project's root folder), and it seems to work fine.

As to integrating more fully with VS, it's a Node.js/TypeScript project, so it should be possible to bind this kind of stuff in, but as the visual is compiled to and fully loaded inside the developer visual in the Power BI service rather than locally, you may not be able to attach breakpoints in the way that you might normally in VS.

I'd be keen to hear if anyone has any alternatives, as options are always nice 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

5 REPLIES 5
dm-p
Super User
Super User

Hi @Anonymous - as a substitute for opening VS Code to run pbiviz start, you should just be able to run this from the console or PowerShell from the root directory (which is basically what the console in VS code is doing)? I use this add-in for ad-hoc stuff (which spans a PowerShell window in my project's root folder), and it seems to work fine.

As to integrating more fully with VS, it's a Node.js/TypeScript project, so it should be possible to bind this kind of stuff in, but as the visual is compiled to and fully loaded inside the developer visual in the Power BI service rather than locally, you may not be able to attach breakpoints in the way that you might normally in VS.

I'd be keen to hear if anyone has any alternatives, as options are always nice 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

@dm-p  thank you for your help. 

A separate favor to ask, I have been learning a lot from your difinity custom-visual example, much better than any other examples we had.  Do you by any chance have any other examples that binds tables in your dataview model?  thank you again.

Thanks! Glad you're finding it useful. It's on the list to formally write it up, as there are now some big gaps for new users between the current doc and the SDK.

When you say, "binds tables", do you mean using the table dataViewMapping? If so, I'm working on a visual right now that uses it, so I might be able to find some time to document. I'm intending to do this longer-term but there's still a bit of the visual to figure out, outside of this so it's not quite ready for game time.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

Thanks. Keep me updated!

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.