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 / MS Build error while b...
Power Apps
Unanswered

MS Build error while building PCF solution

(0) ShareShare
ReportReport
Posted on by 200

Hi,

My PCF commands were working fine till yesterday, but as of today I am not able to run any msbuild command to create solution package for my PCF control.

I am running msbuild /t:build /restore, I also tried msbuild /p:configuration=Release but received the below error.

Error - The OutputPath property is not set for project 'mmr.cdsproj'. Please check to make sure that you hav
e specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='AnyCP
U'. You may be seeing this message because you are trying to build a project without a solution file, and have specifi
ed a non-default Configuration or Platform that doesn't exist for this project.

I have seen some solutions and found that there is a tag named as PropertyGroup with condition as Debug that should be changed to Release.

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

However, this line is not present in my cdsproj file, which was created by the PCF commands to create the solution.

Any help would be appreciated.

Thanks!

I have the same question (0)
  • gowthamtalluri Profile Picture
    2 on at

    Hi Sheldon,

     

    I am also facing similar issue from this Morning. 

     

    Are you able to find any resolution?

     

    Thanks,

  • freeBanana5 Profile Picture
    4 on at

    Ran into this issue as well. Found this really old BUT helpful article from 2010. After updating the cdsproj file was able to complete my build to get zip file.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/87b8aba4-9c61-4cfa-88f3-6236ee813582/msbuild-package-fails-with-quotoutputpath-property-is-not-setquot-error?forum=msbuild

     

      <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
        <DebugSymbols>true</DebugSymbols>
        <DebugType>full</DebugType>
        <Optimize>false</Optimize>
        <OutputPath>bin\Debug\</OutputPath>
        <DefineConstants>DEBUG;TRACE</DefineConstants>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
      </PropertyGroup>
      <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
        <DebugType>pdbonly</DebugType>
        <Optimize>true</Optimize>
        <OutputPath>bin\Release\</OutputPath>
        <DefineConstants>TRACE</DefineConstants>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
      </PropertyGroup>

     

    then run: msbuild /t:build /p:configuration=Release

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard