Skip to content

Commit

Permalink
Merge pull request #34 from maldworth/feat/update-packages-and-build
Browse files Browse the repository at this point in the history
Update nuget packages and cake build
  • Loading branch information
acarteas authored Nov 22, 2019
2 parents 9cd79bb + fb865bb commit 6e3776e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
3 changes: 0 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Task("Restore-NuGet-Packages")
settings
.WithTarget("Restore")
.SetConfiguration(configuration)
.UseToolVersion(MSBuildToolVersion.VS2017)
);
});

Expand All @@ -54,7 +53,6 @@ Task("Build")
settings
.WithTarget("Build")
.SetConfiguration(configuration)
.UseToolVersion(MSBuildToolVersion.VS2017)
);
});

Expand All @@ -78,7 +76,6 @@ Task("Create-NuGet-Packages")
var settings = new MSBuildSettings()
.WithTarget("Pack")
.SetConfiguration(configuration)
.UseToolVersion(MSBuildToolVersion.VS2017)
.WithProperty("PackageOutputPath",artifactDirectory);

// Pack the Sln (unit tests has the <IsPackable> to false)
Expand Down
16 changes: 13 additions & 3 deletions src/FileCache.Signed/FileCache.Signed.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<TargetFrameworks>net40;net45;netstandard2.0</TargetFrameworks>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>cache objectcache System.Runtime.Caching.ObjectCache</PackageTags>
<PackageLicenseUrl>https://github.com/acarteas/FileCache/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/acarteas/FileCache</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Authors>Adam Carter</Authors>
<Description>FileCache is a concrete implementation of the .NET System.Runtime.Caching.ObjectCache that uses the local filesystem as the target location.</Description>
<Copyright>Copyright (c) 2012, 2013, 2017 Adam Carter (http://adam-carter.com)</Copyright>
Expand All @@ -14,6 +13,16 @@
<UpdateVersionProperties>true</UpdateVersionProperties>
<Version>0.0.0</Version>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

<DebugSymbols>True</DebugSymbols>
<DebugType>portable</DebugType>

<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- SourceLink Config, needs nuget package in each csproj Microsoft.SourceLink.GitHub in order to work -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\FileCache\BasicFileCacheManager.cs" Link="BasicFileCacheManager.cs" />
Expand All @@ -29,7 +38,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="GitVersionTask" Version="4.0.0-beta*">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All" />
<PackageReference Include="GitVersionTask" Version="5.1.2">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/FileCache.UnitTests/FileCache.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
<PackageReference Include="MSTest.TestAdapter" Version="1.3.1" />
<PackageReference Include="MSTest.TestFramework" Version="1.3.1" />
<PackageReference Include="FluentAssertions" Version="5.3.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
<PackageReference Include="FluentAssertions" Version="5.9.0" />

</ItemGroup>

Expand Down
16 changes: 13 additions & 3 deletions src/FileCache/FileCache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<TargetFrameworks>net40;net45;netstandard2.0</TargetFrameworks>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>cache objectcache System.Runtime.Caching.ObjectCache</PackageTags>
<PackageLicenseUrl>https://github.com/acarteas/FileCache/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/acarteas/FileCache</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Authors>Adam Carter</Authors>
<Description>FileCache is a concrete implementation of the .NET System.Runtime.Caching.ObjectCache that uses the local filesystem as the target location.</Description>
<Copyright>Copyright (c) 2012, 2013, 2017 Adam Carter (http://adam-carter.com)</Copyright>
Expand All @@ -13,13 +12,24 @@
<Company>Adam Carter</Company>
<RootNamespace>System.Runtime.Caching</RootNamespace>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

<DebugSymbols>True</DebugSymbols>
<DebugType>portable</DebugType>

<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- SourceLink Config, needs nuget package in each csproj Microsoft.SourceLink.GitHub in order to work -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net40|AnyCPU'">
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GitVersionTask" Version="4.0.0-beta*">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All" />
<PackageReference Include="GitVersionTask" Version="5.1.2">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down

0 comments on commit 6e3776e

Please sign in to comment.