diff --git a/Build.md b/Build.md new file mode 100644 index 0000000..a2a1689 --- /dev/null +++ b/Build.md @@ -0,0 +1,14 @@ +# Build + +This project uses GitVersion to calculate version numbers. If a major bump has to be made (i. e. for a public release), the file `version.json` should be changed accordingly. +More info from [Nerdbank here](https://github.com/dotnet/Nerdbank.GitVersioning/blob/master/doc/public_vs_stable.md). + +To build the project for packaging, run the following command in the root directory: + +```powershell +dotnet build /src -c Release +``` + +This will build and pack the assemblies to according output directories: +- `\src\FluentDragDrop\bin\Release` +- `\src\FluentDragDrop.Effects\bin\Release` \ No newline at end of file diff --git a/README.md b/README.md index e8e9dd6..09030ee 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ private void picControlPreviewBehindCursor_MouseDown(object sender, MouseEventAr // To() to define target controls and how the dragged data should be used on drop } ``` -snippet source | anchor +snippet source | anchor It's all in there: Putting data to the drag&drop operation, attaching a custom preview image to the mouse cursor, working with the dragged data once it's dropped and much more. @@ -62,7 +62,7 @@ private void CountryList_MouseDown(object sender, MouseEventArgs e) .To(target, MoveItems); } ``` -snippet source | anchor +snippet source | anchor This (and the 5 line method `MoveItems()`) is everything we need to implement two-way Drag&Drop lists: diff --git a/src/version.json b/src/version.json index c9fe79e..54ac80f 100644 --- a/src/version.json +++ b/src/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.1", + "version": "2.0", "publicReleaseRefSpec": [ ".*/master$" // we release out of master ],