dotnet / dotnet/msbuild

Could not find a recipe file for the reference d UWP application on desktop bridge package

Open
#4,930 19 comments 3 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Steps to reproduce

We recently added a desktop bridge app to our UWP solution, having an UWP package as target containing the original UWP app and the Win32 app as applications. Since then, we could not build our app from command line, so on the CI. The error we get is Could not find a recipe file for the referenced UWP application at ''. Please build the project. I tried this workaround with no success.

Command line
```
msbuild .\.sln /t:Clean,Build /p:Configuration=Release /p:Platform=x64 /p:DefineConstants=PROD
```
### Expected behavior
Msixbundle and msixupload are created

### Actual behavior
```
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets(518,5): error : Could not find a recipe file for the reference
d UWP application at 'C:\repos\windows-uwp-client2\windows\\bin\x64\Release\Upload\.build.appxrecipe'. Please build the project.
```

### Environment data
`msbuild /version` output: 16.3.2.50909

OS info: Win10

If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc):

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.