Skip to content

Commit

Permalink
#22 Update remaining files necessary for release
Browse files Browse the repository at this point in the history
  • Loading branch information
sguldmund committed Jan 24, 2024
1 parent 7ccb572 commit f8bab7a
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 11 deletions.
1 change: 1 addition & 0 deletions Pose.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "0. Solution", "0. Solution"
LICENSE = LICENSE
README.md = README.md
nuget\Poser.nuspec = nuget\Poser.nuspec
build.cake = build.cake
EndProjectSection
EndProject
Global
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pose is cross platform and runs anywhere .NET is supported. It targets .NET Stan

## Installation

Available on [NuGet](https://www.nuget.org/packages/Pose/)
Available on [NuGet](https://www.nuget.org/packages/Poser/)

Visual Studio:

Expand Down
63 changes: 63 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
var target = Argument("target", "Default");

var solutionFile = "./Pose.sln";
var nuspecFileName = "Poser";

Task("Build")
.Does(() =>
{
var buildSettings = new DotNetCoreBuildSettings
{
Configuration = "Release",
Verbosity = DotNetCoreVerbosity.Minimal
};
DotNetCoreBuild(solutionFile, buildSettings);
});

Task("Test")
.Does(() =>
{
var settings = new DotNetCoreTestSettings
{
Verbosity = DotNetCoreVerbosity.Minimal
};
DotNetCoreTest(solutionFile, settings);
})
;

Task("Default")
.IsDependentOn("Build")
.IsDependentOn("Test")
;

Task("Pack")
//.IsDependentOn("Build")
//.IsDependentOn("Test")
.Does(() =>
{
Pack("Pose", new [] { "netstandard2.0" });
})
;

RunTarget(target);

public void Pack(string projectName, string[] targets)
{
var buildSettings = new DotNetCoreMSBuildSettings()
.WithProperty("NuspecFile", $"../../nuget/{nuspecFileName}.nuspec")
.WithProperty("NuspecBasePath", "bin/Release");
var settings = new DotNetCorePackSettings
{
MSBuildSettings = buildSettings,
Verbosity = DotNetCoreVerbosity.Minimal,
Configuration = "Release",
IncludeSource = true,
IncludeSymbols = true,
OutputDirectory = "./nuget"
};

DotNetCorePack($"./src/{projectName}/{projectName}.csproj", settings);
}
5 changes: 4 additions & 1 deletion nuget/Poser.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<projectUrl>https://github.com/Miista/Pose</projectUrl>
<repository type="git" url="https://github.com/Miista/Pose.git" />
<license type="expression">MIT</license>
<!-- <licenseUrl>https://github.com/Miista/pose/blob/master/LICENSE</licenseUrl>-->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>pose;mocking;testing;unit-test;isolation-framework;test-framework</tags>
<description>Replace any .NET method (including static and non-virtual) with a delegate</description>
Expand All @@ -19,7 +20,9 @@
</releaseNotes>

<dependencies>
<group targetFramework="netstandard2.0" />
<dependency id="Mono.Reflection.Core" version="1.1.1" />
<dependency id="System.Reflection.Emit.Lightweight" version="4.3.0" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" />
</dependencies>
</metadata>

Expand Down
10 changes: 1 addition & 9 deletions src/Pose/Pose.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Title>Pose</Title>
<Description>Replace any .NET method (including static and non-virtual) with a delegate</Description>
<PackageVersion>1.2.1</PackageVersion>
<TargetFrameworks>netstandard2.0;netcoreapp2.0;netcoreapp3.0;net48;net7.0;net8.0</TargetFrameworks>
<DebugType>portable</DebugType>
<AssemblyName>Pose</AssemblyName>
<PackageId>Pose</PackageId>
<PackageTags>pose;mocking;testing;unit-test;isolation-framework;test-framework</PackageTags>
<PackageProjectUrl>https://github.com/tonerdo/pose</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/tonerdo/pose/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/tonerdo/pose</RepositoryUrl>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Mono.Reflection.Core" Version="1.1.1" />
Expand Down

0 comments on commit f8bab7a

Please sign in to comment.