web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

System.IO.FileNotFoundException Error on PCF Control Initialisation

(0) ShareShare
ReportReport
Posted on by 10

Hi all,

I'm just trying to follow a tutorial on creating a PCF Control. I have installed the PowerApps CLI, however when I run the command to initialise the control, I get an error.

The command I have run in my Powershell (running as administrator):

pac pcf init --namespace CanvizPCF --name PCFDemoControl --template field

This generates the following exception for me:

"[ERROR] Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
[ERROR] at bolt.cli.Session.Run(String[] args, String hostName, IEnvirons environs, IUserSettingsPersistence userSettingsPersistence, IOutputWindow outputWindow, Action errorCallback)
[ERROR] at bolt.cli.Session.Run(String[] args, String hostName, IOutputWindow outputWindow, Action errorCallback)
[ERROR] at bolt.Program.Main(String[] args)"

Checking my .NET version by running dotnet --version I get "3.1.201"

Has anyone experienced this before or have any guidance on what I need to do to resolve this?

Many thanks,

Tom.

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Tom,

    I haven't experienced anything similar but as a suggestion you can ask your question here  - powerusers.microsoft.com/.../pa_component_framework

  • Tom Davies Profile Picture
    10 on at

    Hi Andrew,

    Thank you for the reply.

    I will post this question in the forum you have suggested as well.

    Thanks very much,

    Tom.

  • Sujeev Profile Picture
    20 on at

    Hi Tom,

    I am also facing the same issue. Did you found the solution, if yes could you post it here please.

    I have installed  .Net Framework 4.6.2 in my machine

    Thanks,

    Sulo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans