Changing the name of the output assembly and package using dnx/.net core

Damian picture Damian · Oct 7, 2015 · Viewed 7.3k times · Source

I have a project which exists in a directory named Oracle and I would like the artifacts created to be called MyCompany.MyApp.Oracle instead of Oracle, what are my options for changing the output assembly name and nuget package name outside of changing the name of the directory?

  • I currently have a MyCompany.MyApp.Oracle.xproj next to my project.json file
  • I've also tried setting <AssemblyName>MyCompany.MyApp.Oracle</AssemblyName> in the xproj file but that didn't work
  • I've also tried setting {"id":"MyCompany.MyApp.Oracle"} in project.json and still no luck

Answer

Maxim picture Maxim · Jun 29, 2016

Based on comment of @Victor Hurdugaci

"buildOptions": {
    "outputName": "Some.Specific.Assembly.Name"
},

You need to put it inside project.json file. It will produce output with name: Some.Specific.Assembly.Name.dll