Skip to content

warning MSB8027: Two or more files with the name of WindowsAppRuntimeAutoInitializer.cpp will produce outputs to the same location. #5395

@PetrMinar

Description

@PetrMinar

I got this warning in my project. Later it is followed by this warning:
WindowsAppRuntimeAutoInitializer.obj : warning LNK4042: object specified more than once; extras ignored

The solution consist of (among others) two c++ projects: exe and dll - both are using the same version WindowsAppSDK (1.7.250401001) nuget.

I think it is caused by WindowsAppSDK nuget that has WindowsAppSDK-Nuget-Native.AutoInitializer.targets
in buildTransitive directory. Also I think older versions of WindowsAppSDK haven't produced such warnings.

Is there a way to prevent the warnings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions