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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Msbuild fails to gener...
Power Apps
Answered

Msbuild fails to generate solution files when spaces in the path

(0) ShareShare
ReportReport
Posted on by 75

Hello everyone,

I was trying to take a look at the Component Framework and trying out the samples provided. Delelopment is complete, however, while generating solution files to be imported in CRM the msbuild task fails.

 

The initial impression looks like a problem with space in my global package path. My username is "Piyush Paliwal" in the system. Take a look at the screenshot below

 

5wZ1NyRGwp.png

 

Has anyone faced this issue before? If yes, how did you manage to work around this situation.

Regards,

Piyush

I have the same question (0)
  • Verified answer
    devendramsft Profile Picture
    Microsoft Employee on at

    Here is a workaround for you in the mean time. 

    1. Create a folder (with no spaces) to store packages (For Ex: C:\mypackages)

    2. Redirect nuget restore to this folder

        a) On Pcf project folder, run this

               msbuild -t:restore -p:RestorePackagesPath="C:\mypackages"

       b) On Cds Solution project folder

              msbuild -t:restore -p:RestorePackagesPath="C:\mypackages"

    3. Step 2 ensures your packages are being downloaded to your custom location & read from it.

    For more details, please see

    https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets

     

    4. Run msbuild on the folder where you want to build the project. 

     

    We are investigating this issue currently for a cleaner fix.

     

  • Piyush Paliwal Profile Picture
    75 on at

    Thanks Devendra. This helps.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 514

#2
WarrenBelz Profile Picture

WarrenBelz 419 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 295

Last 30 days Overall leaderboard