none
using dotnet publish fails to build,while VS19 build succesfully RRS feed

  • Question

  • Hello I want to publish my project using dotnet publish, using command: dotnet publish -r win-x64 -c release

    it fails on my c++ clr .dll which I have 4 of them, it shows:

    my c# app: error CS0246: The type or namespace name 'MyC++CRLDLL' could not be found (are you missing a using directive or an assembly reference?) [my c# app.csproj] it throws same error for all c++ .dll

    But everything ok while building Debug/Release version no error and everything runs fine, but fails on Dotnet, what I need todo?

    Thursday, July 11, 2019 7:12 AM