Skip to content

[regression] Consuming C# component in C++ app results in non-compiling cppwinrt header #871

@ghost

Description

There problem with the generated source file in cppwinrt.exe

cppwinrt -input "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\CppUnitTestFramework.Universal\16.0\References\CommonConfiguration\neutral\ Microsoft.VisualStudio.TestPlatform.TestExecutor.WinRTCore.winmd" -reference local -output "Generated Files""

The generated source file contains and cannot be compiled:

For instance
template<> struct hash<winrt::Microsoft::VisualStudio::TestPlatform::TestExecutor::WinRTCore::UnitTestClient> : winrt::impl::hash_base {};

Previous versions of cppwinrt.exe do not and compile successfully.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions