dotnet

package
v0.0.0-...-91c21f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package dotnet provides a backend for c# using dotnet and nuget.org

Index

Constants

This section is empty.

Variables

View Source
var DotNetBackend = api.LanguageBackend{
	Name:             "dotnet",
	Specfile:         findSpecFile(),
	Lockfile:         lockFileName,
	IsAvailable:      dotnetIsAvailable,
	FilenamePatterns: []string{"*.cs", "*.csproj", "*.fs", "*.fsproj"},
	Remove: func(ctx context.Context, pkgs map[api.PkgName]bool) {
		removePackages(ctx, pkgs, findSpecFile(), util.RunCmd)
	},
	Add: func(ctx context.Context, pkgs map[api.PkgName]api.PkgSpec, projectName string) {
		addPackages(ctx, pkgs, projectName, util.RunCmd)
	},
	Search:       search,
	Info:         info,
	Install:      func(ctx context.Context) { install(ctx, util.RunCmd) },
	Lock:         func(ctx context.Context) { lock(ctx, util.RunCmd) },
	ListSpecfile: listSpecfile,
	ListLockfile: listLockfile,
	GetPackageDir: func() string {
		return "bin/"
	},
	Quirks: api.QuirksAddRemoveAlsoLocks |
		api.QuirksAddRemoveAlsoInstalls |
		api.QuirksLockAlsoInstalls,
	InstallReplitNixSystemDependencies: nix.DefaultInstallReplitNixSystemDependencies,
}

DotNetBackend is the UPM language backend .NET languages with support for C#

Functions

func ReadLock

func ReadLock(lockFileReader io.Reader) (map[api.PkgName]api.PkgVersion, error)

ReadLock reads the lock file and buils up packages.

func ReadSpec

func ReadSpec(specReader io.Reader) (map[api.PkgName]api.PkgSpec, error)

ReadSpec reads the spec and builds up packages.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL