Posted by Anuraj on Tuesday, November 29, 2016 Reading time :1 minute
This post is about configuring the output filename of a .NET Core application. By default compiling a .NET Core application, the output filename will be the project directory name. So if you are compiling the application from a directory abc, the output dll name will be abc.dll. This can cause an issue when using CI where you may not control the folder structure in which the command is executed. This can be fixed using
buildOptions configuration in the project.json file.
If you are using Visual Studio code, while changing the
outputName configuration, you also need to modify
program configuration value it in the
launch.json file as well. Otherwise you will get a file doesn’t exists error from VS Code.
Here is the change in the launch.json file.
And if you are using Visual Studio, it may break debugging feature. - https://github.com/dotnet/cli/issues/4198
Happy Programming :)