Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #220 from leekelleher/develop
Browse files Browse the repository at this point in the history
Preparing Ditto 0.11.0 release
  • Loading branch information
leekelleher authored Aug 2, 2017
2 parents 77aa40a + 8a89119 commit 8ff1426
Show file tree
Hide file tree
Showing 79 changed files with 2,109 additions and 1,197 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_ReSharper.*
[Bb]in/
[Oo]bj/
[Nn]u[Gg]et[Bb]ackup/
*.suo
*.user
*.userprefs
Expand Down
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
os: Visual Studio 2015

# version format
version: 0.10.0.{build}
version: 0.11.0.{build}

# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta
Expand All @@ -10,11 +12,11 @@ cache:
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified

build_script:
- build-appveyor.cmd
- build\build-appveyor.cmd

test:
assemblies:
- 'Our.Umbraco.Ditto.Tests.dll'
- 'Umbraco.Tests.dll'

artifacts:
- path: artifacts\*.nupkg
Expand Down
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if "%PACKAGE_VERISON%" == "" (

SET APPVEYOR_BUILD_VERSION=%PACKAGE_VERISON%.%APPVEYOR_BUILD_NUMBER%

build-appveyor.cmd
build\build-appveyor.cmd

@IF %ERRORLEVEL% NEQ 0 GOTO err
@EXIT /B 0
Expand Down
4 changes: 2 additions & 2 deletions build-appveyor.cmd → build/build-appveyor.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ECHO APPVEYOR_REPO_TAG: %APPVEYOR_REPO_TAG%
ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER%
ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION%

CALL src\.nuget\NuGet.exe restore src\Our.Umbraco.Ditto.sln
CALL "%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" build\package.proj
CALL build\tools\NuGet.exe restore src\Our.Umbraco.Ditto.sln
CALL "%programfiles(x86)%\MSBuild\14.0\Bin\amd64\MsBuild.exe" build\package.proj
7 changes: 4 additions & 3 deletions build/package.proj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Package" ToolsVersion="4.0">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Package" ToolsVersion="14.0">

<!-- IMPORTS -->
<PropertyGroup>
Expand Down Expand Up @@ -29,6 +29,7 @@
<!-- NUGET ONLY PROPERTIES -->
<PropertyGroup>
<PackageId>Our.Umbraco.Ditto</PackageId>
<NuGetPackageName>Ditto for Umbraco</NuGetPackageName>
<Copyright>Copyright &#169; 2014 Umbrella Inc Ltd, Our Umbraco and other contributors</Copyright>
<Owners>Umbrella Inc Ltd</Owners>
<IconUrl>https://raw.githubusercontent.com/leekelleher/umbraco-ditto/master/docs/assets/img/logo.png</IconUrl>
Expand Down Expand Up @@ -159,7 +160,7 @@
<MSBuild.NuGet.Tasks.ManifestUpdate
ManifestFile="$(BuildNuGetDir)\package.nuspec"
WorkingDirectory="$(BuildNuGetDir)"
Title="$(PackageName)"
Title="$(NuGetPackageName)"
Description="$(Readme)"
Summary="$(Readme)"
Version="$(ProductVersion)"
Expand Down Expand Up @@ -188,7 +189,7 @@
OutputDirectory="$(ArtifactsDir)"
Files="@(PackageFiles)" />

<MSBuild.NuGet.Tasks.Pack NuGetExePath="$(RootDir)\src\.nuget\NuGet.exe"
<MSBuild.NuGet.Tasks.Pack NuGetExePath="$(RootDir)\build\tools\NuGet.exe"
ManifestFile="$(BuildNuGetDir)\package.nuspec"
BasePath="$(BuildNuGetDir)"
Version="$(ProductVersion)"
Expand Down
4 changes: 2 additions & 2 deletions build/tools/AppVeyorUmbraco/AppVeyorUmbraco.Targets
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask
TaskName="GetProductVersion"
TaskFactory="CodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" >
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
<ParameterGroup>
<BuildVersion ParameterType="System.String" Required="true" />
<BuildSuffix ParameterType="System.String" Required="false" />
Expand Down
Binary file added build/tools/NuGet.exe
Binary file not shown.
6 changes: 0 additions & 6 deletions src/.nuget/NuGet.Config

This file was deleted.

Binary file removed src/.nuget/NuGet.exe
Binary file not shown.
144 changes: 0 additions & 144 deletions src/.nuget/NuGet.targets

This file was deleted.

5 changes: 2 additions & 3 deletions src/Our.Umbraco.Ditto.sln
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Expand All @@ -15,8 +14,8 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Package", "Build Package", "{302C02F0-CA95-430F-BD43-82D0CCEC08A3}"
ProjectSection(SolutionItems) = preProject
..\appveyor.yml = ..\appveyor.yml
..\build-appveyor.cmd = ..\build-appveyor.cmd
..\build.cmd = ..\build.cmd
..\build\build-appveyor.cmd = ..\build\build-appveyor.cmd
..\build\package.nuspec = ..\build\package.nuspec
..\build\package.proj = ..\build\package.proj
..\build\package.xml = ..\build\package.xml
Expand Down
3 changes: 2 additions & 1 deletion src/Our.Umbraco.Ditto/Common/CachedInvocations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ protected static readonly ConcurrentDictionary<MethodBaseCacheItem, Action<objec
/// <returns>
/// The <see cref="MethodBaseCacheItem"/> for the given method and type.
/// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected static MethodBaseCacheItem GetMethodCacheKey(object type, [CallerMemberName] string memberName = null)
{
return new MethodBaseCacheItem(memberName, type);
}
}
}
}
40 changes: 40 additions & 0 deletions src/Our.Umbraco.Ditto/Common/DittoContextAccessor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using Umbraco.Core;
using Umbraco.Web;

namespace Our.Umbraco.Ditto
{
/// <summary>
/// An interface allowing access to context objects without resulting to using the singletons directly.
/// </summary>
public interface IDittoContextAccessor
{
/// <summary>
/// The UmbracoContext instance.
/// </summary>
UmbracoContext UmbracoContext { get; }

/// <summary>
/// The ApplicationContext instance.
/// </summary>
ApplicationContext ApplicationContext { get; }
}

internal class DefaultDittoContextAccessor : IDittoContextAccessor
{
public UmbracoContext UmbracoContext
{
get
{
return UmbracoContext.Current;
}
}

public ApplicationContext ApplicationContext
{
get
{
return ApplicationContext.Current;
}
}
}
}
3 changes: 1 addition & 2 deletions src/Our.Umbraco.Ditto/Common/EnumerableInvocations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;

namespace Our.Umbraco.Ditto
{
Expand Down Expand Up @@ -163,4 +162,4 @@ private static Func<T, object> StaticMethodSingleParameter<T>(MethodInfo method)
argument).Compile();
}
}
}
}
Loading

0 comments on commit 8ff1426

Please sign in to comment.