Dagger
Search

csharp-sdk-dev

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

Installation

dagger install github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c

Entrypoint

Return Type
CsharpSdkDev !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -C# SDK source.
containerContainer -Base container.
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
func (m *MyModule) Example() *dagger.CsharpSdkDev  {
	return dag.
			CsharpSdkDev()
}
@function
def example() -> dagger.CsharpSdkDev:
	return (
		dag.csharp_sdk_dev()
	)
@func()
example(): CsharpSdkDev {
	return dag
		.csharpSdkDev()
}

Types

CsharpSdkDev 🔗

container() 🔗

Return Type
Container !
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
 container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			CsharpSdkDev().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.csharp_sdk_dev()
		.container()
	)
@func()
example(): Container {
	return dag
		.csharpSdkDev()
		.container()
}

generate() 🔗

Generate code from introspection json file.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
 generate --introspection-json file:path
func (m *MyModule) Example(introspectionJson *dagger.File) *dagger.Directory  {
	return dag.
			CsharpSdkDev().
			Generate(introspectionJson)
}
@function
def example(introspection_json: dagger.File) -> dagger.Directory:
	return (
		dag.csharp_sdk_dev()
		.generate(introspection_json)
	)
@func()
example(introspectionJson: File): Directory {
	return dag
		.csharpSdkDev()
		.generate(introspectionJson)
}

test() 🔗

Testing the SDK.

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

lint() 🔗

Lint all C# source files in the SDK.

Return Type
Void !
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
 lint
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			CsharpSdkDev().
			Lint(ctx)
}
@function
async def example() -> None:
	return await (
		dag.csharp_sdk_dev()
		.lint()
	)
@func()
async example(): Promise<void> {
	return dag
		.csharpSdkDev()
		.lint()
}

format() 🔗

Format all C# source files.

Return Type
Directory !
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
 format
func (m *MyModule) Example() *dagger.Directory  {
	return dag.
			CsharpSdkDev().
			Format()
}
@function
def example() -> dagger.Directory:
	return (
		dag.csharp_sdk_dev()
		.format()
	)
@func()
example(): Directory {
	return dag
		.csharpSdkDev()
		.format()
}

pack() 🔗

Pack the Dagger.SDK into a NuGet package.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
configurationString "Release"No description provided
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
 pack --introspection-json file:path
func (m *MyModule) Example(introspectionJson *dagger.File) *dagger.Directory  {
	return dag.
			CsharpSdkDev().
			Pack(introspectionJson)
}
@function
def example(introspection_json: dagger.File) -> dagger.Directory:
	return (
		dag.csharp_sdk_dev()
		.pack(introspection_json)
	)
@func()
example(introspectionJson: File): Directory {
	return dag
		.csharpSdkDev()
		.pack(introspectionJson)
}

publish() 🔗

Publish the Dagger.SDK to NuGet.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
versionString !-No description provided
nugetTokenSecret -No description provided
dryRunBoolean -No description provided
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
 publish --introspection-json file:path --version string
func (m *MyModule) Example(ctx context.Context, introspectionJson *dagger.File, version string)   {
	return dag.
			CsharpSdkDev().
			Publish(ctx, introspectionJson, version)
}
@function
async def example(introspection_json: dagger.File, version: str) -> None:
	return await (
		dag.csharp_sdk_dev()
		.publish(introspection_json, version)
	)
@func()
async example(introspectionJson: File, version: string): Promise<void> {
	return dag
		.csharpSdkDev()
		.publish(introspectionJson, version)
}