New .NET “project.json” project, copying pre-built native .dlls to the output directory

后端 未结 2 2066
说谎
说谎 2021-01-21 05:53

I\'m looking to convert my project to use project.json format, but still using the .NET CLR until 3rd party dependencies add support for CoreCLR.

With that

2条回答
  •  灰色年华
    2021-01-21 06:47

    The current way to do this in .NET Core RTM is setting copyToOutput in project.json's buildOptions section:

    Change your project.json from this:

    {
      "version": "1.0.0-*",
      "buildOptions": {
        "emitEntryPoint": true
      },
    
      // more stuff
    }
    

    ...to this:

    {
      "version": "1.0.0-*",
      "buildOptions": {
        "emitEntryPoint": true,
        "copyToOutput": { "includeFiles": [ "ClearScriptV8-32.dll", "v8-ia32.dll" ] }
      },
    
      // more stuff
    }
    

提交回复
热议问题