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.

View solution in original post

Thanks @kyleyuan for your steps.

Now am able to create the PCF package in VS 2019

 

Smiley Happy

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,368)