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

"Generate a C# projection from a C++/WinRT component" tells users to use AnyCPU for the projection, however this doesn't work when UseUwp is true #5311

Open
sylveon opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels

Comments

@sylveon
Copy link
Contributor

sylveon commented Feb 18, 2025

Type of issue

Code doesn't work

Feedback

See title. The following csproj file for a projection project (made by following the article) will result in an error

Image

Build started at 19:52...
1>------ Build started: Project: ClassLibrary1, Configuration: Debug Any CPU ------
1>0 IID calculations/fetches patched
1>ClassLibrary1 -> Z:\Throwaway\ClassLibrary1\_build\AnyCPU\Debug\ClassLibrary1\bin\ClassLibrary1.dll
1>C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(6214,5): error APPX0505: The processor architecture of your project 'neutral' doesn’t match the processor architecture 'x64' of the referenced project 'RuntimeComponent1'. Change the targeted processor architectures to align between your project and its references.
1>Done building project "ClassLibrary1.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Build completed at 19:52 and took 01.066 seconds ==========

Page URL

https://learn.microsoft.com/en-us/windows/apps/develop/platform/csharp-winrt/net-projection-from-cppwinrt-component

Content source URL

https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/develop/platform/csharp-winrt/net-projection-from-cppwinrt-component.md

Author

@stevewhims

Document Id

16cfa258-50bc-5d50-c3f3-76b2f81e0b8a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants