cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dexx3336
Helper II
Helper II

Unable to create package in Visual Studio 2019

Hello Guys,

 

I am using VS 2019. when I use command "pac pcf init --namespace XrmformControl --name FileControl --template field" .
getting below error : "The specified CLI version latest is not installed on this machine.". 

 

Create package issue.png

 

 

 

 

 

I also tried to install latest package but facing issues : 

 

Create package issue.png

 

 


Can anyone know which version of CLI is compatible with VS 2019? and from where i can get it ? 

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
kyleyuan
New Member

Looks like you don't have public nuget feed configurated. Run below command to add nuget.org to the source:

 

nuget source add -Name nuget.org -Source https://api.nuget.org/v3/index.json

 

then run "pac install latest". You should be able to find the latest CLI package.

View solution in original post

2 REPLIES 2
kyleyuan
New Member

Looks like you don't have public nuget feed configurated. Run below command to add nuget.org to the source:

 

nuget source add -Name nuget.org -Source https://api.nuget.org/v3/index.json

 

then run "pac install latest". You should be able to find the latest CLI package.

Thanks @kyleyuan for your steps.

Now am able to create the PCF package in VS 2019

 

Smiley Happy

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,147)