Skip to content

Commit

Permalink
Updated to use cake 0.29.0 dll's
Browse files Browse the repository at this point in the history
  • Loading branch information
skovsende-simcorp committed Aug 17, 2018
1 parent 62cc07d commit 42268c2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
11 changes: 3 additions & 8 deletions Cake.FileHelpers.Tests/Cake.FileHelpers.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.26.1" />
<PackageReference Include="Cake.Testing" Version="0.26.1" />
<PackageReference Include="Cake.Core" Version="0.29.0" />
<PackageReference Include="Cake.Testing" Version="0.29.0" />
<PackageReference Include="xunit" Version="2.3.0-beta5-build3769" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-beta5-build3769" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.FileHelpers\Cake.FileHelpers.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

</Project>
</Project>
5 changes: 3 additions & 2 deletions Cake.FileHelpers.Tests/Fakes/FakeCakeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ public FakeCakeContext ()
var args = new FakeCakeArguments ();
var processRunner = new ProcessRunner (environment, log);
var registry = new WindowsRegistry ();


var dataService = new FakeDataService();
var toolRepository = new ToolRepository(environment);
var toolResolutionStrategy = new ToolResolutionStrategy(fileSystem, environment, globber, new FakeConfiguration());
IToolLocator tools = new ToolLocator(environment, toolRepository, toolResolutionStrategy);
context = new CakeContext (fileSystem, environment, globber, log, args, processRunner, registry, tools);
context = new CakeContext (fileSystem, environment, globber, log, args, processRunner, registry, tools, dataService);
context.Environment.WorkingDirectory = testsDir;
}

Expand Down
14 changes: 14 additions & 0 deletions Cake.FileHelpers.Tests/Fakes/FakeDataService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using Cake.Core;

namespace Cake.Xamarin.Tests.Fakes {
public class FakeDataService : ICakeDataService {
public TData Get<TData>() where TData : class {
throw new NotImplementedException();
}

public void Add<TData>(TData value) where TData : class {
throw new NotImplementedException();
}
}
}
13 changes: 4 additions & 9 deletions Cake.FileHelpers/Cake.FileHelpers.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.1</NetStandardImplicitPackageVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup>
<PackageId>Cake.FileHelpers</PackageId>
<Title>Cake.FileHelpers</Title>
Expand All @@ -18,14 +16,11 @@
<PackageIconUrl>https://raw.githubusercontent.com/cake-contrib/Cake.FileHelpers/master/icon.png</PackageIconUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/cake-contrib/Cake.FileHelpers/master/LICENSE.md</PackageLicenseUrl>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
<PackageReference Include="System.Threading.Tasks.Parallel" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.26.1" />
<PackageReference Include="Cake.Common" Version="0.26.1" />
<PackageReference Include="Cake.Core" Version="0.29.0" />
<PackageReference Include="Cake.Common" Version="0.29.0" />
</ItemGroup>

</Project>
</Project>

0 comments on commit 42268c2

Please sign in to comment.