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.2.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.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vest_build_dotnet-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1a86b2221545a07f150cf079f0b284e10ca7647cb334cac63b1f2f74a594ba5f
MD5 e100e6e552471b0781a6d3b43f302612
BLAKE2b-256 446056c2694d4d76bcc6834abf3d662764f05fd70b481a6fc46359b39c7c7acf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vest_build_dotnet-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 14ca5543430afd3a568094799311ceb00a845c12b5851dc94d6e9d14939d9a0b
MD5 9ed0794cbb8837fc081a7a0efd22d35e
BLAKE2b-256 88092d0b00e2cc70ed2118ff1ac50db8f6f1fe48c58b31c48891bc2c4fed62c7

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