Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildAll.ps1 failed on Debug configuration due to missing MRM.dll #5034

Open
Hong-Xiang opened this issue Jan 15, 2025 · 0 comments
Open

BuildAll.ps1 failed on Debug configuration due to missing MRM.dll #5034

Hong-Xiang opened this issue Jan 15, 2025 · 0 comments
Labels
area-Infrastructure Build, test, source layout, package construction (TODO: move to Deployment, DeveloperTools)

Comments

@Hong-Xiang
Copy link

Describe the bug

Build.ps1 hardcoded configuration to Release by configurationForMrtAndAnyCPU, which caused BuildAll.ps1 with configuration Debug failed on clean build, it failed with error:

Cannot find path '<WindowsAppSDKPath>\BuildOutput\Release\x64\mrm\MRM.dll' because it does not exist.

at <ScriptBlock>, <WindowsAppSDKPath>\BuildAll.ps1: line 304

Steps to reproduce the bug

Run a clean build (all release output need to be removed) of BuildAll.cmd -Configuration:Debug.

It seems that there are a special configuration variable for MRT called configurationForMrtAndAnyCPU, which is hardcoded to "Release",
and when build MRT, it uses configurationToRun.
If we run BuildAll.cmd in Debug mode, after build MRT, when copying output, it will look result from Release directory, and those dll is not found.

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

@RDMacLachlan RDMacLachlan added area-Infrastructure Build, test, source layout, package construction (TODO: move to Deployment, DeveloperTools) and removed needs-triage labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure Build, test, source layout, package construction (TODO: move to Deployment, DeveloperTools)
Projects
None yet
Development

No branches or pull requests

2 participants