Skip to content

Error C2086 while using F# library from CPP/CLI project #15333

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version] [regression] [worked-in:17.6.2]
While using VS 17.7.0 Preview 1.0 and F# library from CPP/CLI project many errors of kind:

System::Diagnostics::CodeAnalysis::DynamicallyAccessedMemberTypes redefinition

comes in the output windows.

I've attached minimal solution to repro this issue. Using VS 17.6.2 solution builds without any problems.


Error_C2086.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-ProjectsAndBuildMSBuild tasks, project files, framework resolutionBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.Regression

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions