Skip to content

Commit

Permalink
Upgrading to Cake 0.28.0 and .NET Standard 2.0
Browse files Browse the repository at this point in the history
Upgrading to Cake 0.28.0 and .NET Standard 2.0. Fixes #4 and #3 .
  • Loading branch information
phillipsj committed Sep 16, 2018
1 parent fccf464 commit 6654eb7
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 42 deletions.
5 changes: 5 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#---------------------------------#
# Build Image #
#---------------------------------#
image: Visual Studio 2017

#---------------------------------#
# Build Script #
#---------------------------------#
Expand Down
7 changes: 5 additions & 2 deletions setup.cake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ BuildParameters.SetParameters(context: Context,
title: "Cake.AppPackager",
repositoryOwner: "cake-contrib",
repositoryName: "Cake.AppPackager",
appVeyorAccountName: "cake-contrib");
appVeyorAccountName: "cake-contrib",
shouldRunDupFinder: false,
shouldRunInspectCode: false);

BuildParameters.PrintParameters(Context);

Expand All @@ -18,4 +20,5 @@ ToolSettings.SetToolSettings(context: Context,
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* ",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
Build.Run();

Build.RunDotNetCore();
28 changes: 15 additions & 13 deletions src/Cake.AppPackager.Tests/Cake.AppPackager.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.0;net452</TargetFrameworks>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.17.0" />
<PackageReference Include="Cake.Testing" Version="0.17.0" />
<PackageReference Include="NSubstitute" Version="2.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<ProjectReference Include="..\Cake.AppPackager\Cake.AppPackager.csproj" />
<PackageReference Include="Cake.Testing" Version="0.28.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="NSubstitute" Version="3.1.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
<ProjectReference Include="..\Cake.AppPackager\Cake.AppPackager.csproj" />
</ItemGroup>

</Project>
23 changes: 13 additions & 10 deletions src/Cake.AppPackager.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,29 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.9
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppPackager", "Cake.AppPackager\Cake.AppPackager.csproj", "{1884E6AA-8468-4C87-8991-FEAC97090BFC}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppPackager", "Cake.AppPackager\Cake.AppPackager.csproj", "{2DCAB564-8D47-4A49-975C-E365384C5869}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppPackager.Tests", "Cake.AppPackager.Tests\Cake.AppPackager.Tests.csproj", "{C915FA69-0024-4BE1-AC61-14882DA98421}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppPackager.Tests", "Cake.AppPackager.Tests\Cake.AppPackager.Tests.csproj", "{1E9F9295-BF7D-4292-B54D-2A8269548BCB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1884E6AA-8468-4C87-8991-FEAC97090BFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1884E6AA-8468-4C87-8991-FEAC97090BFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1884E6AA-8468-4C87-8991-FEAC97090BFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1884E6AA-8468-4C87-8991-FEAC97090BFC}.Release|Any CPU.Build.0 = Release|Any CPU
{C915FA69-0024-4BE1-AC61-14882DA98421}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C915FA69-0024-4BE1-AC61-14882DA98421}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C915FA69-0024-4BE1-AC61-14882DA98421}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C915FA69-0024-4BE1-AC61-14882DA98421}.Release|Any CPU.Build.0 = Release|Any CPU
{2DCAB564-8D47-4A49-975C-E365384C5869}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2DCAB564-8D47-4A49-975C-E365384C5869}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2DCAB564-8D47-4A49-975C-E365384C5869}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2DCAB564-8D47-4A49-975C-E365384C5869}.Release|Any CPU.Build.0 = Release|Any CPU
{1E9F9295-BF7D-4292-B54D-2A8269548BCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1E9F9295-BF7D-4292-B54D-2A8269548BCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E9F9295-BF7D-4292-B54D-2A8269548BCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E9F9295-BF7D-4292-B54D-2A8269548BCB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D086C66A-7B96-4403-A627-AF492B7E6983}
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions src/Cake.AppPackager/AppPackagerResolver.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using Cake.Core;
using Cake.Core.IO;
using Cake.Core.Tooling;

[assembly: InternalsVisibleTo("Cake.AppPackager.Tests")]
namespace Cake.AppPackager {
internal sealed class AppPackagerResolver : IAppPackagerResolver {
private readonly IFileSystem _fileSystem;
Expand Down
19 changes: 3 additions & 16 deletions src/Cake.AppPackager/Cake.AppPackager.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard1.6;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>Cake.AppPackager</PackageId>
<Version>0.10.0.0</Version>
<Title>Cake.AppPackager</Title>
<Authors>Jamie Phillips</Authors>
<Owners>Jamie Phillips</Owners>
<PackageLicenseUrl>https://github.com/phillipsj/Cake.AppPackager</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/phillipsj/Cake.AppPackager</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>Cake Addin for creating UWP packages.</Description>
<PackageReleaseNotes>Initial Release</PackageReleaseNotes>
<Copyright>Copyright 2016</Copyright>
<PackageTags>Cake AppPackager MakeAppX UWP</PackageTags>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.16.2" />
<PackageReference Include="Cake.Core" Version="0.28.0" PrivateAssets="All"/>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion tools/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.19.5" />
<package id="Cake" version="0.30.0" />
</packages>

0 comments on commit 6654eb7

Please sign in to comment.