├── .gitignore ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── appveyor.yml ├── build ├── Package.build.cmd ├── Package.build.xml ├── Tools │ ├── MSBuildCommunityTasks │ │ ├── ICSharpCode.SharpZipLib.dll │ │ ├── MSBuild.Community.Tasks.Targets │ │ ├── MSBuild.Community.Tasks.chm │ │ ├── MSBuild.Community.Tasks.dll │ │ ├── MSBuild.Community.Tasks.xml │ │ └── Sample.proj │ └── MSBuildNugetTasks │ │ ├── MSBuild.NuGet.Tasks.Targets │ │ └── MSBuild.NuGet.Tasks.dll ├── package.nuspec └── readme.txt └── src ├── .nuget └── NuGet.config ├── Umbraco.Courier.Contrib.Resolvers ├── Action.cs ├── GridCellDataResolvers │ ├── DocTypeGridEditorGridCellResolver.cs │ └── LeBlenderGridCellResolver.cs ├── Properties │ ├── AssemblyInfo.cs │ └── VersionInfo.cs ├── PropertyDataResolvers │ ├── ImulusUrlPickerPropertyDataResolver.cs │ ├── InnerContentPropertyDataResolver.cs │ ├── MultiUrlPickerPropertyDataResolver.cs │ ├── NestedContentPropertyDataResolver.cs │ ├── StackedContentPropertyDataResolver.cs │ ├── UmbracoMultiUrlPickerPropertyDataResolver.cs │ ├── UmbracoNestedContentPropertyDataResolver.cs │ └── VortoPropertyDataResolver.cs ├── StringExtensions.cs ├── Umbraco.Courier.Contrib.Resolvers.csproj └── packages.config └── Umbraco.Courier.Contrib.sln /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | ._.DS_Store 3 | 4 | *.aps 5 | *.obj 6 | *.orig 7 | *.pch 8 | *.pdb 9 | *.suo 10 | *.user 11 | *.vspscc 12 | *.[Pp]ublish.xml 13 | [Bb]uild[Ll]og.* 14 | 15 | .vs/ 16 | [Bb]in/ 17 | [Db]ebug*/ 18 | [Oo]bj/ 19 | [Rr]elease*/ 20 | _ReSharper*/ 21 | [Tt]est[Rr]esult* 22 | packages/ 23 | [Aa]pp_[Dd]ata/ 24 | bower_components/ 25 | node_modules/ 26 | Umbraco.Deploy.UI.Client/build/ 27 | build/Tools/nuget.exe 28 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to this project 2 | 3 | Please take a moment to review this document in order to make the contribution 4 | process easy and effective for everyone involved. 5 | 6 | Following these guidelines helps to communicate that you respect the time of 7 | the developers managing and developing this open source project. In return, 8 | they should reciprocate that respect in addressing your issue or assessing 9 | patches and features. 10 | 11 | 12 | ## Using the issue tracker 13 | 14 | The issue tracker is the preferred channel for [bug reports](#bugs), 15 | [features requests](#features) and [submitting pull 16 | requests](#pull-requests), but please respect the following restrictions: 17 | 18 | * Please **do not** use the issue tracker for personal or commercial support 19 | requests (use the official Umbraco support channels). 20 | 21 | * Please **do not** derail or troll issues. Keep the discussion on topic and 22 | respect the opinions of others. 23 | 24 | 25 | 26 | ## Bug reports 27 | 28 | A bug is a _demonstrable problem_ that is caused by the code in the repository. 29 | Good bug reports are extremely helpful - thank you! 30 | 31 | Guidelines for bug reports: 32 | 33 | 1. **Use the GitHub issue search** — check if the issue has already been 34 | reported. 35 | 36 | 2. **Check if the issue has been fixed** — try to reproduce it using the 37 | latest `master` or development branch in the repository. 38 | 39 | 3. **Isolate the problem** — create a reduced test 40 | case and a live example. 41 | 42 | A good bug report shouldn't leave others needing to chase you up for more 43 | information. Please try to be as detailed as possible in your report. What is 44 | your environment? What steps will reproduce the issue? What browser(s) and OS 45 | experience the problem? What would you expect to be the outcome? All these 46 | details will help people to fix any potential bugs. 47 | 48 | Example: 49 | 50 | > Short and descriptive example bug report title 51 | > 52 | > A summary of the issue and the browser/OS environment in which it occurs. If 53 | > suitable, include the steps required to reproduce the bug. 54 | > 55 | > 1. This is the first step 56 | > 2. This is the second step 57 | > 3. Further steps, etc. 58 | > 59 | > `` - a link to the reduced test case 60 | > 61 | > Any other information you want to share that is relevant to the issue being 62 | > reported. This might include the lines of code that you have identified as 63 | > causing the bug, and potential solutions (and your opinions on their 64 | > merits). 65 | 66 | 67 | 68 | ## Feature requests 69 | 70 | Feature requests are welcome. But take a moment to find out whether your idea 71 | fits with the scope and aims of the project. It's up to *you* to make a strong 72 | case to convince the project's developers of the merits of this feature. Please 73 | provide as much detail and context as possible. 74 | 75 | 76 | 77 | ## Pull requests 78 | 79 | Good pull requests - patches, improvements, new features - are a fantastic 80 | help. They should remain focused in scope and avoid containing unrelated 81 | commits. 82 | 83 | **Please ask first** before embarking on any significant pull request (e.g. 84 | implementing features, refactoring code, porting to a different language), 85 | otherwise you risk spending a lot of time working on something that the 86 | project's developers might not want to merge into the project. 87 | 88 | Please adhere to the coding conventions used throughout a project (indentation, 89 | accurate comments, etc.) and any other requirements (such as test coverage). 90 | 91 | Follow this process if you'd like your work considered for inclusion in the 92 | project: 93 | 94 | 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, 95 | and configure the remotes: 96 | 97 | ```bash 98 | # Clone your fork of the repo into the current directory 99 | git clone https://github.com// 100 | # Navigate to the newly cloned directory 101 | cd 102 | # Assign the original repo to a remote called "upstream" 103 | git remote add upstream https://github.com// 104 | ``` 105 | 106 | 2. If you cloned a while ago, get the latest changes from upstream: 107 | 108 | ```bash 109 | git checkout develop 110 | git pull upstream develop 111 | ``` 112 | 113 | 3. Create a new topic branch (off the main project `develop` branch) to 114 | contain your feature, change, or fix: 115 | 116 | ```bash 117 | git checkout -b 118 | ``` 119 | 120 | 4. Commit your changes in logical chunks. Please adhere to these [git commit 121 | message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) 122 | or your code is unlikely be merged into the main project. Use Git's 123 | [interactive rebase](https://help.github.com/articles/interactive-rebase) 124 | feature to tidy up your commits before making them public. 125 | 126 | 5. Locally merge (or rebase) the upstream development branch into your topic branch: 127 | 128 | ```bash 129 | git pull [--rebase] upstream develop 130 | ``` 131 | 132 | 6. Push your topic branch up to your fork: 133 | 134 | ```bash 135 | git push origin 136 | ``` 137 | 138 | 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) 139 | with a clear title and description. 140 | 141 | **IMPORTANT**: By submitting a patch, you agree to allow the project owner to 142 | license your work under the same license as that used by the project. -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright © 2016 Umbraco 4 | Copyright © 2016 Our Umbraco and other contributors 5 | Copyright © 2016 DIS/PLAY 6 | Copyright © 2014 Lee Kelleher, Umbrella Inc 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | this software and associated documentation files (the "Software"), to deal in 10 | the Software without restriction, including without limitation the rights to 11 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | of the Software, and to permit persons to whom the Software is furnished to do 13 | so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build status](https://ci.appveyor.com/api/projects/status/bfotoy95lmos15b2/branch/master?svg=true)](https://ci.appveyor.com/project/Umbraco/umbraco-courier-contrib/branch/master) 2 | [![NuGet release](https://img.shields.io/nuget/v/Umbraco.Courier.Contrib.svg)](https://www.nuget.org/packages/Umbraco.Courier.Contrib) 3 | 4 | # Umbraco Courier Contrib 5 | 6 | This project contains community contributions for the Umbraco deployment tool, Courier. 7 | 8 | Primarily this project offers data-resolvers for the most popular Umbraco community packages - these are used by Courier (and [Umbraco Cloud](https://umbraco.com/cloud)) to aid with the deployment and transferring of content/property-data to a target environment. 9 | 10 | 11 | ## Data Resolvers 12 | 13 | This project offers Umbraco Courier data-resolvers for the following community packages: 14 | 15 | - [DocType Grid Editor](https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/) 16 | - [UrlPicker](https://our.umbraco.org/projects/backoffice-extensions/urlpicker/) 17 | - [LeBlender](https://our.umbraco.org/projects/backoffice-extensions/leblender) 18 | - [Nested Content](https://our.umbraco.org/projects/backoffice-extensions/nested-content/) 19 | - [Stacked Content](https://github.com/umco/umbraco-stacked-content) 20 | - [Vorto](https://our.umbraco.org/projects/backoffice-extensions/vorto) 21 | - [Multi Url Picker](https://our.umbraco.org/projects/backoffice-extensions/multi-url-picker/) 22 | 23 | 24 | --- 25 | 26 | ## Getting Started 27 | 28 | ### Installation 29 | 30 | You can install the NuGet package using `Install-Package Umbraco.Courier.Contrib`. 31 | [![NuGet release](https://img.shields.io/nuget/v/Umbraco.Courier.Contrib.svg)](https://www.nuget.org/packages/Umbraco.Courier.Contrib) 32 | 33 | --- 34 | 35 | ## Contributing to this project 36 | 37 | Anyone who wishes to get involved with this project is more than welcome to contribute. Please take a moment to review the [guidelines for contributing](CONTRIBUTING.md), this applies for any bug reports, feature requests and pull requests. 38 | 39 | * [Bug reports](CONTRIBUTING.md#bugs) 40 | * [Feature requests](CONTRIBUTING.md#features) 41 | * [Pull requests](CONTRIBUTING.md#pull-requests) 42 | 43 | 44 | ### Issues 45 | 46 | We encourage you to report any issues you might find with these data-resolvers, so we can have them fixed for everyone! 47 | 48 | When reporting issues with a resolver it will help us a whole lot if you can reduce your report to being the absolute minimum required to encounter the error you are seeing. 49 | 50 | This means try removing anything unnecessary or unrelated to the actual issue, from your setup and also try reducing the steps to reproduce, to only cover exactly what we would need to do in order to see the error you are getting. 51 | 52 | For any questions or issues about this project specifically, please [raise an issue](https://github.com/umbraco/Umbraco.Courier.Contrib/issues) on GitHub. 53 | 54 | For any Courier specific enquiries, please use the [Umbraco Issue Tracker (for Courier)](http://issues.umbraco.org/issues/COU). 55 | 56 | 57 | ## Credits 58 | 59 | Special thanks to the following community members for providing the initial data-resolver code for this project. 60 | 61 | * [Umbrella](https://github.com/UmbrellaInc) and [Lee Kelleher](https://github.com/leekelleher) 62 | * [DIS/PLAY](https://github.com/display), [Rasmus Pedersen](https://github.com/rasmusjp) and [Kasper Kristensen](https://github.com/kasperhhk) 63 | * [Matt Brailsford](https://github.com/mattbrailsford) 64 | * [Heather Floyd](https://github.com/hfloyd), [Matt Morrison](https://github.com/mattmorrisonsolidstudios) 65 | 66 | 67 | ## License 68 | 69 | Copyright © 2016 Umbraco 70 | 71 | Copyright © 2016 Our Umbraco and [other contributors](https://github.com/leekelleher/umbraco-courier-dataresolvers/graphs/contributors) 72 | 73 | Copyright © 2016 DIS/PLAY 74 | 75 | Copyright © 2014 Lee Kelleher, Umbrella Inc 76 | 77 | Licensed under the [MIT License](LICENSE.md) 78 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | # version format 2 | version: 1.0.{build} 3 | 4 | # Do not build on tags 5 | skip_tags: true 6 | 7 | build_script: 8 | - cd Build 9 | - Package.build.cmd %APPVEYOR_BUILD_VERSION% 10 | 11 | artifacts: 12 | - path: Releases\*.nupkg 13 | 14 | deploy: 15 | - provider: NuGet 16 | api_key: 17 | secure: SPZoI6dtnTnukMvoB6U7XA6QGBR6fpseGdPE3QG0I2p2Iauz/b5Oj2hzQQp7Y2q1 18 | skip_symbols: false 19 | artifact: /.*\.nupkg/ 20 | on: 21 | branch: master 22 | -------------------------------------------------------------------------------- /build/Package.build.cmd: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | SETLOCAL 3 | :: SETLOCAL is on, so changes to the path not persist to the actual user's path 4 | 5 | REM Get the version and comment from Version.txt lines 2 and 3 6 | SET "release=1.0.0" 7 | SET "comment=" 8 | 9 | REM If there's arguments on the command line use that as the version 10 | IF [%1] NEQ [] (SET release=%1) 11 | IF [%2] NEQ [] (SET comment=%2) ELSE (IF [%1] NEQ [] (SET "comment=")) 12 | 13 | SET version=%release% 14 | IF [%comment%] EQU [] (SET version=%release%) ELSE (SET version=%release%-%comment%) 15 | 16 | ECHO Building version %version% 17 | 18 | SET toolsFolder=%CD%\Tools 19 | SET nuGetExecutable=%toolsFolder%\nuget.exe 20 | IF NOT EXIST %nuGetExecutable% ( 21 | ECHO Downloading https://dist.nuget.org/win-x86-commandline/latest/nuget.exe to %nuGetExecutable% 22 | powershell -Command "(New-Object Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe', '%nuGetExecutable%')" 23 | ) 24 | 25 | ECHO Restore NuGet packages 26 | %nuGetExecutable% restore ..\src\Umbraco.Courier.Contrib.sln -Verbosity quiet 27 | 28 | SET msbuild=%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 29 | 30 | ECHO Build the library and produce NuGet package 31 | %msbuild% Package.build.xml /p:ProductVersion=%version% -------------------------------------------------------------------------------- /build/Package.build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $(MSBuildProjectDirectory)\Tools\MSBuildCommunityTasks 7 | $(MSBuildProjectDirectory)\Tools\MSBuildNugetTasks 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Umbraco Courier Contrib 17 | 7.0.0 18 | This project contains community contributions for the Umbraco deployment tool, Courier. Primarily this project offers data-resolvers for the most popular Umbraco community packages - these are used by Courier (and Umbraco Cloud) to aid with the deployment and transferring of content/property-data to a target environment. 19 | Umbraco 20 | https://umbraco.com/ 21 | MIT License 22 | https://opensource.org/licenses/MIT 23 | https://umbraco.com/ 24 | 25 | 26 | 27 | 28 | Umbraco Courier Contrib 29 | Umbraco.Courier.Contrib 30 | Umbraco 31 | Umbraco 32 | This project contains community contributions for the Umbraco deployment tool, Courier. Primarily this project offers data-resolvers for the most popular Umbraco community packages - these are used by Courier (and Umbraco Cloud) to aid with the deployment and transferring of content/property-data to a target environment. 33 | https://umbraco.com/media/357769/100px_transparent.png 34 | umbraco 35 | en-GB 36 | false 37 | 38 | 39 | 40 | 41 | 42 | 7.0.0 43 | 44 | 45 | 46 | $(MSBuildProjectDirectory) 47 | $(RootDir)\..\Releases 48 | $(MSBuildProjectDirectory)\_nuget 49 | $(RootDir)\..\src\Umbraco.Courier.Contrib.Resolvers\ 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 128 | 129 | 130 | 131 | 132 | 133 | 139 | 140 | 141 | 142 | 143 | 144 | -------------------------------------------------------------------------------- /build/Tools/MSBuildCommunityTasks/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbraco/Umbraco.Courier.Contrib/4ab9284b42bc0289cad6f82dcfdb8ce4260c2b41/build/Tools/MSBuildCommunityTasks/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /build/Tools/MSBuildCommunityTasks/MSBuild.Community.Tasks.Targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $(MSBuildExtensionsPath)\MSBuildCommunityTasks 7 | $(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.dll 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /build/Tools/MSBuildCommunityTasks/MSBuild.Community.Tasks.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbraco/Umbraco.Courier.Contrib/4ab9284b42bc0289cad6f82dcfdb8ce4260c2b41/build/Tools/MSBuildCommunityTasks/MSBuild.Community.Tasks.chm -------------------------------------------------------------------------------- /build/Tools/MSBuildCommunityTasks/MSBuild.Community.Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbraco/Umbraco.Courier.Contrib/4ab9284b42bc0289cad6f82dcfdb8ce4260c2b41/build/Tools/MSBuildCommunityTasks/MSBuild.Community.Tasks.dll -------------------------------------------------------------------------------- /build/Tools/MSBuildCommunityTasks/Sample.proj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 67 | 68 | 69 | 70 | 71 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 91 | 92 | 93 | 94 | 104 | 105 | 106 | 107 | list = new List(); 110 | list.Add("Happy"); 111 | list.Add("New"); 112 | list.Add("Year"); 113 | Console.WriteLine("Hello MSBuild Community Scripting World."); 114 | foreach(string s in list) 115 | { 116 | Console.WriteLine(s); 117 | } 118 | } 119 | ]]> 120 | 121 | 122 | 123 | 124 |