CppSharp
CppSharp copied to clipboard
enable dotnet portable debug database in *.csproj
by default visual studio will generate pdb files that can not be used in vscode to debug with dotnet core (tested dotnet 3.1).
This extract xml snippet can enable debug. not sure if this work with monoDevelop.
This seems OK, but since the MSBuild properties are common to all projects and configurations, I think you could add them to this shared property group block: https://github.com/mono/CppSharp/blob/master/Directory.Build.props#L4
ah, I am not familiar with C# build system, not even know there is such an option for all projects.
not sure if dotnet build will look into that https://github.com/mono/CppSharp/blob/master/Directory.Build.props#L4
ah, I am not familiar with C# build system, not even know there is such an option for all projects. not sure if
dotnet buildwill look into thathttps://github.com/mono/CppSharp/blob/master/Directory.Build.props#L4
That file is automatically included by MSBuild.
So all you should need is to add:
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
Around the line I linked previously.
Can you make the requested changes to merge this one?
@qingfengxia you just need to edit this line: https://github.com/mono/CppSharp/blob/af275edb55f4628266259ac7c19ea5a786b47aa6/Directory.Build.props#L42