Coder Social home page Coder Social logo

dotnet-feedstock's Introduction

About dotnet-feedstock

Feedstock license: BSD-3-Clause

About dotnet

Home: https://github.com/dotnet/core

Package license: MIT

Summary: .NET Core is a free and open-source managed computer software framework for the Windows, Linux, and macOS operating systems.

About dotnet-runtime

Home: https://github.com/dotnet/runtime

Package license: MIT

Summary: .NET Core is a free and open-source managed computer software framework for the Windows, Linux, and macOS operating systems.

About dotnet-aspnetcore

Home: https://github.com/dotnet/aspnetcore

Package license: MIT

Summary: .NET Core is a free and open-source managed computer software framework for the Windows, Linux, and macOS operating systems.

About dotnet-sdk

Home: https://github.com/dotnet/sdk

Package license: MIT

Summary: .NET Core is a free and open-source managed computer software framework for the Windows, Linux, and macOS operating systems.

About dotnet-desktop

Home: https://github.com/dotnet/desktop

Package license: MIT

Summary: .NET Core is a free and open-source managed computer software framework for the Windows, Linux, and macOS operating systems.

Current build status

Azure
VariantStatus
linux_64 variant
osx_64 variant
osx_arm64 variant
win_64 variant

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing dotnet

Installing dotnet from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, dotnet, dotnet-aspnetcore, dotnet-desktop, dotnet-runtime, dotnet-sdk can be installed with conda:

conda install dotnet dotnet-aspnetcore dotnet-desktop dotnet-runtime dotnet-sdk

or with mamba:

mamba install dotnet dotnet-aspnetcore dotnet-desktop dotnet-runtime dotnet-sdk

It is possible to list all of the versions of dotnet available on your platform with conda:

conda search dotnet --channel conda-forge

or with mamba:

mamba search dotnet --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search dotnet --channel conda-forge

# List packages depending on `dotnet`:
mamba repoquery whoneeds dotnet --channel conda-forge

# List dependencies of `dotnet`:
mamba repoquery depends dotnet --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating dotnet-feedstock

If you would like to improve the dotnet recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/dotnet-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

dotnet-feedstock's People

Contributors

acesnik avatar cf-blacksmithy avatar conda-forge-admin avatar conda-forge-curator[bot] avatar dhirschfeld avatar filmor avatar github-actions[bot] avatar zimmera avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-feedstock's Issues

Install the [6.0.419] .NET SDK

The following NEW packages will be INSTALLED:

    dotnet:                   6.0.417-ha770c72_0      conda-forge
    dotnet-aspnetcore:        6.0.25-hfbc8c6f_0       conda-forge
    dotnet-runtime:           6.0.25-hfbc8c6f_0       conda-forge
    dotnet-sdk:               6.0.417-hfbc8c6f_0      conda-forge
+ dotnet msbuild -t:Build -p:PackageRuntime=linux-x64 -p:BUILDCONFIG=Release -p:RunnerVersion=2.314.0 ./dir.proj
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'msbuild' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 6.0.419
global.json file: /home/conda/feedstock_root/build_artifacts/actions-runner_1708974086133/work/src/global.json

Installed SDKs:

Install the [6.0.419] .NET SDK or update [/home/conda/feedstock_root/build_artifacts/actions-runner_1708974086133/work/src/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
6.0.417 [$BUILD_PREFIX/lib/dotnet/sdk]

Originally posted by @dhirschfeld in conda-forge/actions-runner-feedstock#30 (comment)

ps1 activate/deactivate scripts broken on linux

Issue:

When installing the dotnet package on a linux machine using pwsh the activation script adds the wrong path to $PATH. This is because the ps1 activation script assumes the user is on Windows instead of testing for operating system.

One possible fix is to test for OS like:

if ([System.Environment]::OSVersion.Platform -eq "Unix") { $env:DOTNET_ROOT=...} else { $env:DOTNET_ROOT=...}

dotnet-sdk on OSX

Issue:
It looks like dotnet is intended to work on macOS, including the hashes being listed in meta.yaml: https://github.com/conda-forge/dotnet-feedstock/blob/master/recipe/meta.yaml#L3. However, when I try to install version 3.1.403, which installs properly on various linux machines, I get the following on macOS Big Sur:

Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound: 
  - dotnet-sdk=3.1.403

It also looks like the badge for OSX/macOS is missing from the installer page (https://anaconda.org/conda-forge/dotnet-sdk):
image

Thanks for working on the dotnet conda installers! Let me know if you have any thoughts on how to get this installed on macOS.

-Tony

Environment (conda list):
conda_list.txt

Details about conda and system ( conda info ):
conda_info.txt

Typo in original dotnet-runtime 3.1 version (3.1.19 instead of 3.1.9) causes issues for linux & win

Issue:

There was a typo in the original commit of dotnet-runtime3.1, where the version was 3.1.9, but 3.1.19 was written for the version.

{% set runtime_version = "3.1.19" %}

This is causing some issues, where conda tries to download that older version, as can be seen in line 219 of the build below:

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=307023&view=logs&jobId=656edd35-690f-5c53-9ba3-09c10d0bea97&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d

Is there any way to fix this?

glibc version conflict error

I am getting a strange glibc conflict error when building using conda-smithy on GitHub Actions. The build works locally, so I am not sure why it is happening.

Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/conda_build/environ.py", line 802, in get_install_actions
    actions = install_actions(prefix, index, specs, force=True)
  File "/opt/conda/lib/python3.8/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/opt/conda/lib/python3.8/site-packages/conda/plan.py", line 474, in install_actions
    txn = solver.solve_for_transaction(prune=prune, ignore_pinned=not pinned)
  File "/opt/conda/lib/python3.8/site-packages/conda/core/solve.py", line 114, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
  File "/opt/conda/lib/python3.8/site-packages/conda/core/solve.py", line 157, in solve_for_diff
    final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
  File "/opt/conda/lib/python3.8/site-packages/conda/core/solve.py", line 281, in solve_final_state
    ssc = self._run_sat(ssc)
  File "/opt/conda/lib/python3.8/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/opt/conda/lib/python3.8/site-packages/conda/core/solve.py", line 815, in _run_sat
    ssc.solution_precs = ssc.r.solve(tuple(final_environment_specs),
  File "/opt/conda/lib/python3.8/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/opt/conda/lib/python3.8/site-packages/conda/resolve.py", line 1322, in solve
    self.find_conflicts(specs, specs_to_add, history_specs)
  File "/opt/conda/lib/python3.8/site-packages/conda/resolve.py", line 348, in find_conflicts
    bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs)
  File "/opt/conda/lib/python3.8/site-packages/conda/resolve.py", line 456, in build_conflict_map
    self._get_package_pool((spec, ))
  File "/opt/conda/lib/python3.8/site-packages/conda/resolve.py", line 555, in _get_package_pool
    pool = self.get_reduced_index(specs)
  File "/opt/conda/lib/python3.8/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/opt/conda/lib/python3.8/site-packages/conda/resolve.py", line 576, in get_reduced_index
    explicit_specs, features = self.verify_specs(explicit_specs)
  File "/opt/conda/lib/python3.8/site-packages/conda/resolve.py", line 288, in verify_specs
    raise ResolvePackageNotFound(bad_deps)
conda.exceptions.ResolvePackageNotFound: 
  - __glibc[version='>=2.17,>=2.17,<3.0.a0']

Here is the action log:

https://github.com/robotraconteur-conda/gazebo_model_robotraconteur_driver-feedstock/runs/2660650406?check_suite_focus=true

dotnet interactive

It would be cool to have https://github.com/dotnet/interactive conda installable!

dotnet tool install --tool-path $env:DOTNET_TOOLS --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive

Revert variable naming

With build 4 it's clearly not working :/

The following NEW packages will be INSTALLED:

    dotnet:            5.0.100-h57928b3_4     conda-forge
    dotnet-aspnetcore: 5.0.0-h2d74725_4       conda-forge
    dotnet-desktop:    5.0.0-h57928b3_4       conda-forge
    dotnet-runtime:    5.0.0-h2d74725_4       conda-forge
    dotnet-sdk:        5.0.100-h2d74725_4     conda-forge

Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.100

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------

Add `DOTNET_NOLOGO` env var

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Should hopefully get rid of the welcome messages:

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.301

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------

Installed packages

-

Environment info

-

Flags for depracated versions?

Is there any way to tag dotnetcore2.1 as depracated in conda? There are some others that are coming up on end of support, too.

Building from source

Hi there,

I'm running into issues with the __glibc >= 2.17 requirement (https://github.com/conda-forge/dotnet-feedstock/blob/master/recipe/meta.yaml#L56) when using dotnet for other builds. You got it to work within conda-forge, so I'm wondering if you have any feedback on how to get it working elsewhere. Specifically, it is a dependency of software I help develop named metamorpheus, and we're running into issues trying to get it to build for linux environments: bioconda/bioconda-recipes#27130.

Thanks!

Dotnet-SDK segfaults after welcome message when executed on Bioconda

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

When executing dotnet tool install, the dotnet-sdk segfaults after printing the welcome message.

I discovered this when executing the command through a bioconda recipe.

This was the recipe that produced the error:
bioconda/bioconda-recipes@b49874d

This is the bioconda log containing the error:
https://dev.azure.com/bioconda/bioconda-recipes/_build/results?buildId=15336&view=logs&j=e14e69ff-a0ae-55c4-b71d-229b239cfb2f&t=7df82132-b284-504b-53d6-7d3e63519572&s=5162d36d-59e0-5d46-757c-443386a65b88

This happens with every version 5.x of the dotnet sdk.

Installed packages

See bioconda log

Environment info

See bioconda log

dotnet on ARM32 and ARM64

The dotnet conda-forge packages do not currently support ARM32 and ARM64. Binaries are available from Microsoft to support these architectures. It would be helpful to IoT applications if these architectures were included in conda-forge.

Check if `libcurl` is needed

Comment:

host:
- zlib # [unix]
- libcurl # [unix]
- lttng-ust # [linux64]
run:
- lttng-ust # [linux64]
- libcurl # [unix]
- icu # [unix]
- krb5 # [unix]
- __glibc >=2.17 # [linux64]
- dotnet-runtime ={{ runtime_version }}

image

If it's just there to provide SSL we could maybe get away with openssl

Script for getting SHAs

sdk_version='6.0.420'
base_url='https://dotnetcli.azureedge.net/dotnet/Sdk'
platforms=(
    "linux-arm64"
    "linux-x64"
    "osx-arm64"
    "osx-x64"
)


for platform in "${platforms[@]}";
do
    url="${base_url}/${sdk_version}/dotnet-sdk-${sdk_version}-${platform}.tar.gz"
    curl -fsSL "${url}" | sha256sum
done
platform="win-x64"
url="${base_url}/${sdk_version}/dotnet-sdk-${sdk_version}-${platform}.zip"
curl -fsSL "${url}" | sha256sum

Disable telemetry

When using the dotnet CLI you get an annoying warning:

Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.100

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_
CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Should we disable telemetry by default?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.