Nuget package dependency resolution is broken by design. It incorrectly with resolve the oldest dependency listed, no matter how many bugs have been fixed in more recent versions. So please remember to do a nuget update to check if any newer versions of dependencies are available. The recommended approach is to update to the Highest Minor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <configuration> | |
| <configSections> | |
| <section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" /> | |
| </configSections> | |
| <startup> | |
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
| </startup> | |
| <akka> | |
| <hocon> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################################################### | |
| # This is the Cake bootstrapper script that is responsible for | |
| # downloading Cake and all specified tools from NuGet. | |
| ############################################################### | |
| # Define directories. | |
| SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
| TOOLS_DIR=$SCRIPT_DIR/tools | |
| NUGET_EXE=$TOOLS_DIR/nuget.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/chocolatey/choco/wiki/CommandsReference#how-to-pass-options--switches | |
| # Powershell specific argument passing | |
| # You must be on the latest beta of chocolatey for this to work properly (redownload files) | |
| choco upgrade chocolatey -pre | |
| $originalPath = $env:PATH | |
| choco install ruby --version 1.9.3.55100 -my --install-arguments '/verysilent /dir=""c:\tools\ruby193"" /tasks=""assocfiles""' --override-arguments | |
| # DevKit for Ruby 1.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Tools and addins | |
| #addin "nuget:?package=System.Management.Automation&version=6.1.7601.17515" | |
| using System.Collections; | |
| using System.Management.Automation; | |
| using System.Management.Automation.Internal; | |
| using System.Management.Automation.Runspaces; | |
| using System.Threading; | |
| /////////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Task("Run-Unit-Tests") | |
| .IsDependentOn("Build") | |
| .Does(() => | |
| { | |
| DotCoverCover(tool => { | |
| tool.NUnit3(testDlls, new NUnit3Settings { | |
| NoResults = true, | |
| TeamCity = isOnTeamCity | |
| }); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Analogy | |
| { | |
| /// <summary> | |
| /// This example shows that a library that needs access to target .NET Standard 1.3 | |
| /// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
| /// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
| /// </summary>INetCoreApp10 | |
| class Example1 | |
| { | |
| public void Net45Application(INetFramework45 platform) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var endpoint = new OctopusServerEndpoint("http://54.169.230.0:8085/", "API-xxxxxxxxxxxxxxxxxxxxxxxxxx"); | |
| var client = new OctopusClient(endpoint); | |
| var repo = new OctopusRepository(client); | |
| var projects = repo.Projects.GetAll().Select (p => repo.Projects.Get(p.Id)); | |
| var allDeployments = projects.SelectMany(p=>repo.Deployments.FindMany(d=>d.ProjectId.Equals(p.Id)).Take(5)).GroupBy (p => p.ProjectId).SelectMany (p => p); | |
| var nugetPackageIds = new List<string>(new string[]{"Webshop.Frontend", "Webshop.Backend", "Webshop.BusinessRules", "Webshop.Messages"}); | |
| foreach(var deployment in allDeployments) |
I missed last night's ASP.NET Community Standup on account of being shattered after a long day and falling asleep. Then I checked Twitter on the train this morning and discovered that the .NET world had, apparently, been burned to the ground by marauding Microsofties (again). It seemed to have something to do with project files, JSON vs XML, and suchlike.
Finally, lunchtime happened and I could watch the recording of the standup, and I got to understand what everyone was on about. In case you've missed it:
- In the beginning, there was
make, and Gates did not ownmake, so Gates said "Let there be MSBuild" and there wasMSBuild. - And
MSBuildused the*.*projfiles from Visual Studio as its inputs, which were formed of terrible XML, and verily it was impossible to use without a Visual Studio license.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Unlist all v4.* packages: | |
| $ ./unlist.rb MyPackage v4. | |
| Unlist specific version: | |
| $ ./unlist.rb MyPackage v2.3.5 | |
| Unlist all versions: |