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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ECorona
Advocate I
Advocate I

How to create .mez file in VS code using the Power Query SDK?

Hello, I'm learning how to create Power BI custom connectors, I have been able to create the hello world and their respective .mez file using Visual Studio 2019 and their respective SDK, but looking into the documentation, seems that the new recomended way to create connectors is using Visual Studio Code and the Power Query Connector SDK extension. 

 

The thing is I cannot find a way to create the .mez file, in Visual Studio, this was prety straight forward and there were several example videos on Youtube, but that's not the case for VS code, so

How can I create the .mez file in VS code? 

3 REPLIES 3
david-nyfty
New Member

For anyone that ends up here from a Google like me you can build the mez file in VS code by going to:

 

Terminal > "Run Build Task..." > Build connector project using MakePQX

ECorona
Advocate I
Advocate I

@Greg_Deckler but you still have not have answered my question, ok, once that I have created the project with the "Create an extension project" I'm seeing a .mez file under bin\AnyCPU\Debug, if I delete this file, how can I generate it again?

Greg_Deckler
Community Champion
Community Champion

 Getting the Power Query SDK

The Power Query SDK can be downloaded from the Visual Studio Marketplace: Power Query SDK - Visual Studio Marketplace. If you instead have Visual Studio 2017 or 2019, then yo...Power Query SDK - Visual Studio Marketplace. Again, the instructions found in this book assume that ...

Clicking the Install button on the web page for the new Power Query SDK for Visual Studio Code launches Visual Studio Code and brings up the install page for the Power Query SDK. Simply click the Install button here to download and install the SDK.

With Visual Studio Code and the Power Query SDK installed, we can now create a custom connector for Power Query.

Launch Visual Studio Code if it is not running already. Access the Explorer and then create a new extension project by clicking the Create an extension project button as shown in below :

Greg_Deckler_0-1689362927345.png

@ECorona



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.