README.md

.NET Core 2.0

This repository contains the source files for .NET Core packages on dotnet-sig copr maintained by the DotNet Special Interest Group. For more information visit our wiki page.

IRC

#fedora-dotnet on Freenode (webchat)

Getting builds from COPR

Packages from this repository are available the DotNet SIG copr at https://copr.fedorainfracloud.org/coprs/g/dotnet-sig/dotnet/

Please see the copr repository for steps on how to install the packages and use them.

Please report any issues here, via New Issue.

Specification

Building

  1. You will need credentials and permissions to build in copr.

  2. Fork the dotnet-sig repo via copr. You should now have a repo with the web url https://pagure.io/fork/$USER/fedora-dotnet

  3. Checkout the forked repository

    • git clone ssh://git@pagure.io/forks/$USER/fedora-dotnet.git
    • cd fedora-dotnet
    • git checkout f26

    Use the most appropriate branch name, but f26 is where the action is right now

  4. Bump version/release in the spec file. Add a Changelog. Make sure the Source tag corresponds to the new tarball name, if there is a new tarball.

  5. Do local builds

    • fedpkg --dist $YOUR_FEDORA_VERSION --module-name dotnet local

    Where the version can be, for example, f27. Fix any errors that come up and rebuild until it works locally.

  6. Upload the new tarball to a public URL, if there is a new tarball. I use:

    • scp dotnet-2.0.3.tar.gz omajid.fedorapeople.org:public_html/dotnet/

    Make sure spectool -g /path/to/dotnet.spec can download this tarball from the public URL.

  7. Commit the changes to the git repo and do a build on copr.

    • git add # any new files, such as new patches
    • git remote # old files, such as old patches
    • git commit -a
    • git push
    • fedpkg --release f26 --module-name dotnet srpm
    • copr-cli build @dotnet-sig/dotnet <path-to-srpm>
  8. If it fails, update spec file/patches and rebuild with the same set of steps.

Testing

  1. Pull down the packages from copr, and install them:

    • dnf copr enable @dotnet-sig/dotnet
    • dnf install dotnet-sdk-2.0

    OR, if you already have the packages installed:

    • dnf upgrade 'dotnet*'

    Make sure it installs the version you just built. Sometimes it takes a few minutes to an hour for the latest version to show up in the copr repos.

  2. Run some smoke tests

    • dotnet new console -o ConsoleApplication
    • dotnet run
    • dotnet public -c Release -r linux-x64