-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Miista/22-release-v20-to-nuget
Release v2.0 to NuGet Version 2.0 supports the following targets: * .NET Standard 2.0 * .NET Core 2.0 * .NET Core 3.0 * .NET Framework 4.8 * .NET 7 * .NET 8 Version 2.0 fixes the following issues: * tonerdo/pose#17 * tonerdo/pose#37 * tonerdo/pose#38 * tonerdo/pose#41 * tonerdo/pose#47 * tonerdo/pose#49 * tonerdo/pose#60 * tonerdo/pose#67 * tonerdo/pose#68 * tonerdo/pose#70 * tonerdo/pose#71 * tonerdo/pose#72 * tonerdo/pose#75 * tonerdo/pose#79
- Loading branch information
Showing
7 changed files
with
144 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"cake.tool": { | ||
"version": "0.38.5", | ||
"commands": [ | ||
"dotnet-cake" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>Poser</id> | ||
<version>2.0.0</version> | ||
<title>Pose</title> | ||
<authors>Søren Guldmund</authors> | ||
<owners>Søren Guldmund</owners> | ||
<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> | ||
<copyright>Copyright 2024</copyright> | ||
<readme>docs\README.md</readme> | ||
<releaseNotes> | ||
Provide better exception message when we cannot create instance. | ||
</releaseNotes> | ||
|
||
<dependencies> | ||
<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> | ||
|
||
<files> | ||
<!-- .NET Standard 2.0 --> | ||
<file src="netstandard2.0\*.dll" target="lib\netstandard2.0" /> | ||
<file src="netstandard2.0\*.xml" target="lib\netstandard2.0" /> | ||
|
||
<!-- .NET Core 2.0 --> | ||
<file src="netcoreapp2.0\*.dll" target="lib\netcoreapp2.0" /> | ||
<file src="netcoreapp2.0\*.xml" target="lib\netcoreapp2.0" /> | ||
|
||
<!-- .NET Core 3.0 --> | ||
<file src="netcoreapp3.0\*.dll" target="lib\netcoreapp3.0" /> | ||
<file src="netcoreapp3.0\*.xml" target="lib\netcoreapp3.0" /> | ||
|
||
<!-- .NET Framework 4.8 --> | ||
<file src="net48\*.dll" target="lib\net48" /> | ||
<file src="net48\*.xml" target="lib\net48" /> | ||
|
||
<!-- .NET 7 --> | ||
<file src="net7.0\*.dll" target="lib\net7.0" /> | ||
<file src="net7.0\*.xml" target="lib\net7.0" /> | ||
|
||
<!-- .NET 8 --> | ||
<file src="net8.0\*.dll" target="lib\net8.0" /> | ||
<file src="net8.0\*.xml" target="lib\net8.0" /> | ||
|
||
<file src="..\..\..\..\README.md" target="docs\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters