Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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!

  • freeBanana5 Profile Picture
    4 on at
    Re: MS Build error while building PCF solution

    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

  • gowthamtalluri Profile Picture
    2 on at
    Re: MS Build error while building PCF solution

    Hi Sheldon,

     

    I am also facing similar issue from this Morning. 

     

    Are you able to find any resolution?

     

    Thanks,

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 52 Super User 2025 Season 1

Overall leaderboard