2

when creating a .net core class library I noticed that if the folder name is "MyLib" then the dll will be MyLib.dll and when you want to reference this project into another project in the same solution you will also have to be like this:

"dependencies": {
    "MyLib": { "target": "project" },

my questions is what if I want my dll to be Foo.Bar.MLibrary.dll while still having the folder name "MyLib" (or how are we supposed to do this now)

Omu
  • 69,856
  • 92
  • 277
  • 407

1 Answers1

5

See this post: Changing the name of the output assembly and package using dnx/.net core

If you want to change the output assembly name, you need to manually modify the project.json file.

"buildOptions": {   
    "outputName": "Foo.Bar.MyLibrary"
  }
Community
  • 1
  • 1
Igor Damiani
  • 1,897
  • 9
  • 12