You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to specify the FrameworkReference for WPF (<FrameworkReferenceInclude="Microsoft.WindowsDesktop.App.WPF" />).
When compiling, I get many C4945 warnings. Because we have TreatWarningsAsErrors enabled, the project can't be compiled. Disabling TreatWarningsAsErrors or disabling the C4945 warnings is not a permanent solution for us.
Example C4945 warning:
warning C4945: 'BulletChrome': cannot import symbol from 'C:\Program
Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\6.0.14\ref\net6.0\PresentationFramework.Aero2.dll': as 'Microsoft::Windows::Themes::BulletChrome' has already been imported from another assembly 'PresentationFramework.Aero'
The Solution contains a combination of C#, C++/CLI and C++ projects.
I followed the guide for migrating C++/CLI projects.(https://learn.microsoft.com/en-us/dotnet/core/porting/cpp-cli.)
I need to specify the FrameworkReference for WPF (<FrameworkReferenceInclude="Microsoft.WindowsDesktop.App.WPF" />).
When compiling, I get many C4945 warnings. Because we have TreatWarningsAsErrors enabled, the project can't be compiled. Disabling TreatWarningsAsErrors or disabling the C4945 warnings is not a permanent solution for us.
Example C4945 warning:
warning C4945: 'BulletChrome': cannot import symbol from 'C:\Program
Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\6.0.14\ref\net6.0\PresentationFramework.Aero2.dll': as 'Microsoft::Windows::Themes::BulletChrome' has already been imported from another assembly 'PresentationFramework.Aero'
The warnings can be easily reproduced
Create a new C++/CLI(.NET) Project
Add the following to the .vcxproj file
What can I do to stop these warnings from occurring?
Previously, I was able to reference explicitly, e.g.
The text was updated successfully, but these errors were encountered: