NetCoreProject Class

Summary

Describes a netcore project
Assembly
Cake.Incubator.dll
Namespace
Cake.Incubator.Project
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["NetCoreProject"] class Type type-node

Syntax

public class NetCoreProject

Constructors

Name Summary
NetCoreProject()

Properties

Name Value Summary
AllowUnsafeBlocks bool
True if the assembly allows unsafe blocks
ApplicationIcon string
The application icon
AssemblyOriginatorKeyFile string
The signing key file path
AssemblyTitle string
The assembly title, defaults to the assemblyname
AssemblyVersion string
The Assembly Version
Authors string[]
dotnet pack: A list of packages authors, matching the profile names on nuget.org. These are displayed in the NuGet Gallery on nuget.org and are used to cross-reference packages by the same authors.
BuildOutputTargetFolder string
dotnet pack: Specifies the folder where to place the output assemblies. The output assemblies (and other output files) are copied into their respective framework folders.
Company string
The assembly or package company
ContentTargetFolders string[]
dotnet pack: This property specifies the default location of where all the content files should go if PackagePath is not specified for them. The default value is "content;contentFiles".
Copyright string
Copyright details for the package.
DebugSymbols bool
True if compilation will output debug symbols
DebugType string
The debug type (portable, embedded, full)
DefineConstants string[]
Build pre-processor directives
DelaySign bool
When delay signed, the project will not run or be debuggable
Description string
dotnet pack: A long description of the package for UI display.
DocumentationFile string
The documentation file path
DotNetCliToolReferences ICollection<DotNetCliToolReference>
The dotnet CLI tool references, a collection of DotNetCliToolReference
FileVersion string
The File Version
GenerateDocumentationFile bool
True if assembly will generate xml documentation
GeneratePackageOnBuild bool
True if the package will be generated when building
GenerateSerializationAssemblies string
Generate serialization assemblies (Off, On, Auto)
IncludeBuildOutput bool
dotnet pack: This Boolean values specifies whether the build output assemblies should be packed into the .nupkg file or not.
IncludeContentInPack bool
dotnet pack: This Boolean value specifies whether any items that have a type of Content will be included in the resulting package automatically. The default is true.
IncludeSource bool
dotnet pack: This Boolean value indicates whether the pack process should create a source package. The source package contains the library's source code as well as PDB files. Source files are put under the src/ProjectName directory in the resulting package file.
IncludeSymbols bool
dotnet pack: This Boolean value indicates whether the package should create an additional symbols package when the project is packed. This package will have a .symbols.nupkg extension and will copy the PDB files along with the DLL and other output files.
IsPackable bool
dotnet pack: A Boolean value that specifies whether the project can be packed. The default value is true.
IsTool bool
dotnet pack: Specifies whether all output files are copied to the tools folder instead of the lib folder. Note that this is different from a DotNetCliTool which is specified by setting the PackageType in the .csproj file.
IsWeb bool
True if this is a web project
LangVersion string
Assembly language version (ISO-1, ISO-2, [C#]2-7)
MinClientVersion string
dotnet pack: Specifies the minimum version of the NuGet client that can install this package, enforced by nuget.exe and the Visual Studio Package Manager.
NetStandardImplicitPackageVersion string
The netstandard package target version if specified
NeutralLanguage string
The assembly neutral language
NoPackageAnalysis bool
dotnet pack: Specifies that pack should not run package analysis after building the package.
NoWarn string[]
The pragma warnings to ignore during compilation
NuspecBasePath string
dotnet pack: Base path for the .nuspec file.
NuspecFile string
dotnet pack: Relative or absolute path to the .nuspec file being used for packing
NuspecProperties NameValueCollection
dotnet pack: list of key=value pairs.
Optimize bool
The optimize code flag
PackageIconUrl string
dotnet pack: A URL for a 64x64 image with transparent background to use as the icon for the package in UI display.
PackageId string
dotnet pack: The package id
PackageLicenseUrl string
dotnet pack: An URL to the license that is applicable to the package.
PackageOutputPath string
dotnet pack: Determines the output path in which the packed package will be dropped. Default is the OutputPath
PackageProjectUrl string
dotnet pack: A URL for the package's home page, often shown in UI displays as well as nuget.org.
PackageReferences ICollection<PackageReference>
The project package references. A collection of PackageReference
PackageReleaseNotes string
dotnet pack: Release notes for the package.
PackageRequireLicenseAcceptance bool
dotnet pack: A Boolean value that specifies whether the client must prompt the consumer to accept the package license before installing the package. The default is false.
PackageTags string[]
dotnet pack: A list of tags that designates the package.
PackageTargetFallbacks string[]
The fallback targets to use when importing packages
PackAsTool bool
True if it should pack it as global tool
PreserveCompilationContext bool
Required to be true for the compilation of razor views
Product string
The product name
ProjectReferences ICollection<ProjectReference>
The references to other projects. A collection of ProjectReference
PublicSign bool
Undocumented flag relating to assembly signing
RepositoryType string
dotnet pack: Specifies the type of the repository. Default is "git"
RepositoryUrl string
dotnet pack: Specifies the URL for the repository where the source code for the package resides and/or from which it's being built.
RuntimeFrameworkVersion string
The runtime framework version
RuntimeIdentifiers string[]
The runtime identifiers
RuntimeOptions RuntimeOptions
Optional runtime options to override the default settings RuntimeOptions
Sdk string
The net core sdk
SignAssembly bool
True if the assembly is signed during compilation
TargetFrameworks string[]
The projects target frameworks
Targets ICollection<BuildTarget>
The projects build targets. A collection of BuildTarget
Title string
dotnet pack: A human-friendly title of the package, typically used in UI displays as on nuget.org and the Package Manager in Visual Studio. If not specified, the package ID is used instead.
TreatSpecificWarningsAsErrors string[]
The warnings to specifically treat as errors
TreatWarningsAsErrors bool
True if wanrings will be treated as errors during compilation
Version string
The project version
WarningLevel string
Compiler warning level

Extension Methods

Name Value Summary
Dump<NetCoreProject>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<NetCoreProject>(NetCoreProject[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<NetCoreProject>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<NetCoreProject>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<NetCoreProject>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<NetCoreProject>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin