Skip to content

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher committed Apr 29, 2022
1 parent 6255a10 commit d382a2b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions Build.md
Original file line number Diff line number Diff line change
@@ -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`
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
<sup><a href='/src/FluentDragDropExample/TestForm.cs#L32-L51' title='Snippet source file'>snippet source</a> | <a href='#snippet-immediateusage' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/FluentDragDropExample/TestForm.cs#L32-L51' title='File snippet `immediateusage` was extracted from'>snippet source</a> | <a href='#snippet-immediateusage' title='Navigate to start of snippet `immediateusage`'>anchor</a></sup>
<!-- endSnippet -->

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.
Expand Down Expand Up @@ -62,7 +62,7 @@ private void CountryList_MouseDown(object sender, MouseEventArgs e)
.To(target, MoveItems);
}
```
<sup><a href='/src/FluentDragDropExample/TestForm.cs#L80-L94' title='Snippet source file'>snippet source</a> | <a href='#snippet-delayedusage' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/FluentDragDropExample/TestForm.cs#L80-L94' title='File snippet `delayedusage` was extracted from'>snippet source</a> | <a href='#snippet-delayedusage' title='Navigate to start of snippet `delayedusage`'>anchor</a></sup>
<!-- endSnippet -->

This (<sub><sup>and the 5 line method `MoveItems()`</sub></sup>) is everything we need to implement two-way Drag&Drop lists:
Expand Down
2 changes: 1 addition & 1 deletion src/version.json
Original file line number Diff line number Diff line change
@@ -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
],
Expand Down

0 comments on commit d382a2b

Please sign in to comment.