Skip to content

NuGet packages are missing the CppSharp.h header #1624

@cjwatterson

Description

@cjwatterson
Brief Description

I'm just trying to create a simple POC targeting C++/CLI. I have a newly created (empty) C++/CLI project in Visual Studio. When I add CppSharp.h to the project it comes up with a number of errors (see attached).

I noticed the latest nuget package doesn't include CppSharp.h, but the generated C++/CLI files have an include for it.

Are there working example projects somewhere? I'm resurrecting my C++ skills so bear with me, it does feel like I missed something obvious.

OS: Windows / OS X / Linux (include version and/or distro)
Windows 10

Used headers

windows.h
Cppsharp.h
FastDelegates.h

Used settings

N/A

Target: MSVC/GCC/Clang
MSVC

Other settings
.NET 4.5.2 Framework
VS2019 with VS2015 toolset (I've tried the 2019 toolset also)

Stack trace or incompatible generated code

image

Metadata

Metadata

Assignees

No one assigned

    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