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?
MyCompany.MyApp.Oracle.xproj
next to my project.json
file<AssemblyName>MyCompany.MyApp.Oracle</AssemblyName>
in the xproj file but that didn't work{"id":"MyCompany.MyApp.Oracle"}
in project.json and still no luckBased 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
From .NET Core 1.1 on, which uses csproj
instead of package.json
, you should use the <AssemblyName>
configuration.
Example of x.csproj
:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AssemblyName>Name your assembly here</AssemblyName> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp1.1</TargetFramework> </PropertyGroup> </Project>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With