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.1.tar.gz (5.2 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vest_build_dotnet-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 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.1.tar.gz
Algorithm Hash digest
SHA256 0f6c268c2b1ebd84e015908dc2663da8cba153a687b885b28b1435c6a0aff384
MD5 eaeff9f4d1d37fec72a345ff57581292
BLAKE2b-256 2e7cfa28a6841f2f13e480f8784d2e5b4e2a82205aaf4529a3d79d6e264cb431

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vest_build_dotnet-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcf5eb0a0664ee86ef11af54651dbb671d6999d498624c30aaf949ef6adba2ac
MD5 a1be5aa8ce8aed8b101ba1fc31df42df
BLAKE2b-256 4470e5553911865c551de64536206aec75e91705a1d97cac361ac3b13b44c5cd

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