cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PavanKumar
Responsive Resident
Responsive Resident

msbuild issue

HI All,

 

I am facing following error when am trying to do MSbuild. (it was okay until yesterday). Any help is appreciated.

 

npm run build -- --noColor --buildMode development --outDir "C:\PavanWork\PCF\RR\out\controls" --buildSource MSBuild
Access is denied.
C:\Users\pk\.nuget\packages\microsoft.powerapps.msbuild.pcf\0.4.3\build\Microsoft.PowerApps.MSBuild.Pcf.targets(49,5): error MSB3073: The command "npm run build -- --noColor --buildMode development --outDir "C:\PavanWork\PCF\
\out\controls" --buildSource MSBuild" exited with code 1. [C:\PavanWork\PCF\\CardViewGrid.pcfproj]
Done Building Project "C:\PavanWork\PCF\\CardViewGrid.pcfproj" (default targets) -- FAILED.

Done Building Project "C:\PavanWork\PCF\\output\output.cdsproj" (default targets) -- FAILED.

6 REPLIES 6
cchannon
Super User
Super User

"Access is denied." seems a pretty straightforward error.

 

Did you lock the folder somehow? Does the output dir not exist? Have you tried simply running msbuild from cmd as admin?

PavanKumar
Responsive Resident
Responsive Resident

yes output folder exists, not locked anything. just running msbuild gives same error.

You get an Access is denied error even when running as admin?

PavanKumar
Responsive Resident
Responsive Resident

corrrect also running developer command prompt in Admin mode

cchannon
Super User
Super User

hmmmm... Looks like there is something weird going on with your outdir:

npm run build -- --noColor --buildMode development --outDir "C:\PavanWork\PCF\RR\out\controls" --buildSource MSBuild
Access is denied.
C:\Users\pk\.nuget\packages\microsoft.powerapps.msbuild.pcf\0.4.3\build\Microsoft.PowerApps.MSBuild.Pcf.targets(49,5): error MSB3073: The command "npm run build -- --noColor --buildMode development --outDir "C:\PavanWork\PCF\
\out\controls" --buildSource MSBuild" exited with code 1. [C:\PavanWork\PCF\\CardViewGrid.pcfproj]
Done Building Project "C:\PavanWork\PCF\\CardViewGrid.pcfproj" (default targets) -- FAILED.

Done Building Project "C:\PavanWork\PCF\\output\output.cdsproj" (default targets) -- FAILED.

PavanKumar
Responsive Resident
Responsive Resident

yeah looks like but not sure what to change?

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (7,477)