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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,370)