Dagger
Search

dotnet-sdk-dev

This module contains functions for developing the SDK such as, running tests,
generate introspection, etc.

Installation

dagger install github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916

Entrypoint

Return Type
DotnetSdkDev !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Dotnet SDK source.
containerContainer -Base container.
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
func (m *myModule) example() *DotnetSdkDev  {
	return dag.
			DotnetSdkDev()
}
@function
def example() -> dag.DotnetSdkDev:
	return (
		dag.dotnet_sdk_dev()
	)
@func()
example(): DotnetSdkDev {
	return dag
		.dotnetSdkDev()
}

Types

DotnetSdkDev 🔗

container() 🔗

Return Type
Container !
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			DotnetSdkDev().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.dotnet_sdk_dev()
		.container()
	)
@func()
example(): Container {
	return dag
		.dotnetSdkDev()
		.container()
}

generate() 🔗

Generate code from introspection json file.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
 generate --introspection-json file:path
func (m *myModule) example(introspectionJson *File) *Directory  {
	return dag.
			DotnetSdkDev().
			Generate(introspectionJson)
}
@function
def example(introspection_json: dagger.File) -> dagger.Directory:
	return (
		dag.dotnet_sdk_dev()
		.generate(introspection_json)
	)
@func()
example(introspectionJson: File): Directory {
	return dag
		.dotnetSdkDev()
		.generate(introspectionJson)
}

test() 🔗

Testing the SDK.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
 test --introspection-json file:path
func (m *myModule) example(ctx context.Context, introspectionJson *File)   {
	return dag.
			DotnetSdkDev().
			Test(ctx, introspectionJson)
}
@function
async def example(introspection_json: dagger.File) -> None:
	return await (
		dag.dotnet_sdk_dev()
		.test(introspection_json)
	)
@func()
async example(introspectionJson: File): Promise<void> {
	return dag
		.dotnetSdkDev()
		.test(introspectionJson)
}

lint() 🔗

Lint all CSharp source files in the SDK.

Return Type
Void !
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
 lint
func (m *myModule) example(ctx context.Context)   {
	return dag.
			DotnetSdkDev().
			Lint(ctx)
}
@function
async def example() -> None:
	return await (
		dag.dotnet_sdk_dev()
		.lint()
	)
@func()
async example(): Promise<void> {
	return dag
		.dotnetSdkDev()
		.lint()
}

check() 🔗

Run test and lint.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
 check --introspection-json file:path
func (m *myModule) example(ctx context.Context, introspectionJson *File)   {
	return dag.
			DotnetSdkDev().
			Check(ctx, introspectionJson)
}
@function
async def example(introspection_json: dagger.File) -> None:
	return await (
		dag.dotnet_sdk_dev()
		.check(introspection_json)
	)
@func()
async example(introspectionJson: File): Promise<void> {
	return dag
		.dotnetSdkDev()
		.check(introspectionJson)
}

format() 🔗

Format all CSharp source files.

Return Type
Directory !
Example
dagger -m github.com/dagger/dagger/sdk/dotnet/dev@18af9f7082d6cf77bd3365ba5fbe0597020db916 call \
 format
func (m *myModule) example() *Directory  {
	return dag.
			DotnetSdkDev().
			Format()
}
@function
def example() -> dagger.Directory:
	return (
		dag.dotnet_sdk_dev()
		.format()
	)
@func()
example(): Directory {
	return dag
		.dotnetSdkDev()
		.format()
}