-
-
Notifications
You must be signed in to change notification settings - Fork 951
Build a new release
Gert Driesen edited this page Jun 7, 2020
·
20 revisions
Ensure the following software is installed:
For SSH.NET we're always building our releases from the master branch, hence the following steps need to be taken to prepare this branch:
- Ensure any commits, that are part of the scope of the release, are merged from the develop branch to the master branch.
- Switch to the master branch.
- Make sure you have no local changes.
- Pull any changes from remote.
- Update the following custom attributes in src/Renci.SshNet/Properties:
- AssemblyCopyright
- AssemblyVersion
- AssemblyFileVersion
- AssemblyInformationalVersion
- Commit and push changes to master branch.
- Switch to master branch on your host machine.
- Make sure you have no local changes.
- Pull any changes from remote.
- Start a Developer Command Prompt for VS2019.
- Navigate to the Build folder of the SSH.NET checkout directory.
- Execute the following command:
msbuild /p:ReleaseVersion=<version> /t:CleanModern /t:PreparePackageModern
- Launch VM containing necessary software for building the assemblies for classic target framework.
- Switch to master branch.
- Make sure you have no local changes.
- Pull any changes from remote.
- Start a Developer Command Prompt for VS2015.
- Navigate to the Build folder of the SSH.NET checkout directory.
- Execute the following command:
msbuild /p:ReleaseVersion=<version> /t:CleanClassic /t:PreparePackageClassic
- Copy the content of the
<SSH.NET checkout>/Build/target/nuget-<version>
folder to the following directory on your host machine:
<SSH.NET checkout directory>\build\target\nuget-<version>