Skip to main content

Vest build support for .NET projects

Project description

Vest support for .NET

image image image Actions status

.NET build support for Vest, a Python-based build system for bespoke use.

Requirements

The project assumes that the following dependencies are installed:

  • The .NET SDK, with dotnet on PATH.
  • csc. You can install this via dotnet tool install csc.
  • ilc for Native AOT compilation. You can install this via dotnet tool install ilc.

Examples

Building or publishing an existing project

from vest import *
from vest.dotnet import dotnet_publish

component(name = "my-service")

@task
def publish():
    artifacts = dotnet_publish(
        configuration = "Release",
        rid = "linux-x64"
    )

    return artifacts.publish

Native AOT compilation

ilc_compile turns an IL assembly into a native object file via dotnet ilc, which can then be fed into your own linker invocation:

from vest.dotnet import ilc_compile

@task
def aot():
    asm = dotnet_build(
        configuration = dotnet_configuration(),
        rid = rid(),
        properties = {
            "Arch": "x64"
        }
    )

    ilc_compile(
        input = asm.build,
        output = f"{artifact_dir()}/obj/my-object.o",
        target_arch = "x64",
        stdlib_assembly = "Azerou.CoreLib",
        nativelib = True
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vest_build_dotnet-0.0.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vest_build_dotnet-0.0.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file vest_build_dotnet-0.0.3.tar.gz.

File metadata

  • Download URL: vest_build_dotnet-0.0.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vest_build_dotnet-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1cc03d257b861fd245605ee13e77eb59854dc87c0d65e0b79d4072586eac5512
MD5 390243fce76c73875c2e696e8538e7e0
BLAKE2b-256 0a9c471b2f2474d67cc3709ae7b368c9486e30f0384d111641d8dc68e1078178

See more details on using hashes here.

File details

Details for the file vest_build_dotnet-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: vest_build_dotnet-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vest_build_dotnet-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 700e19d1ec1b0ddde8332c85e169232f7cade3e94930edeb6dfe761944eb267d
MD5 c86fe60ab8c394d5e38dea8b7d85bb60
BLAKE2b-256 909167f53c9514048946c2c2ec97320c0dea39df0579afb02693db69804d985c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page