-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26ed962
commit 96555ae
Showing
4 changed files
with
134 additions
and
28 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
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
40 changes: 40 additions & 0 deletions
40
src/xunit.runner.visualstudio/xunit.runner.visualstudio.nuspec
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,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package> | ||
<metadata> | ||
<id>xunit.runner.visualstudio</id> | ||
<version>$PackageVersion$</version> | ||
<title>xUnit.net [Runner: Visual Studio]</title> | ||
<authors>jnewkirk,bradwilson</authors> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">Apache-2.0</license> | ||
<licenseUrl>https://licenses.nuget.org/Apache-2.0</licenseUrl> | ||
<icon>_content/logo-128-transparent.png</icon> | ||
<readme>_content/README.md</readme> | ||
<releaseNotes>https://xunit.net/releases/visualstudio/$PackageVersion$</releaseNotes> | ||
<description>Visual Studio 2022+ Test Explorer runner for the xUnit.net framework. Capable of running xUnit.net v1.9.2 and v2.0+ tests. Supports .NET 4.6.2 or later, and .NET 6 or later.</description> | ||
<copyright>Copyright (C) .NET Foundation</copyright> | ||
<repository type="git" url="https://github.com/xunit/xunit" commit="$GitCommitId$" /> | ||
<developmentDependency>true</developmentDependency> | ||
<dependencies> | ||
<group targetFramework="net462" /> | ||
<group targetFramework="net6.0" /> | ||
</dependencies> | ||
<frameworkAssemblies> | ||
<frameworkAssembly assemblyName="mscorlib" targetFramework="net462" /> | ||
</frameworkAssemblies> | ||
</metadata> | ||
<files> | ||
<file target="_content\" src="..\..\logo-128-transparent.png" /> | ||
<file target="_content\" src="..\..\README.md" /> | ||
|
||
<file target="build\net462\" src="bin\$Configuration$\net462\merged\xunit.*.dll" /> | ||
<file target="build\net462\xunit.runner.visualstudio.props" src="build\xunit.runner.visualstudio.desktop.props" /> | ||
|
||
<file target="build\net6.0\" src="bin\$Configuration$\net6.0\merged\xunit.*.dll" /> | ||
<file target="build\net6.0\xunit.runner.visualstudio.props" src="build\xunit.runner.visualstudio.dotnetcore.props" /> | ||
|
||
<file target="lib\net462\" src="build\_._" /> | ||
|
||
<file target="lib\net6.0\" src="build\_._" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Threading.Tasks; | ||
using Xunit.BuildTools.Models; | ||
|
||
namespace Xunit.BuildTools.Targets; | ||
|
||
public static partial class Packages | ||
{ | ||
public static async Task OnExecute(BuildContext context) | ||
{ | ||
context.BuildStep("Creating NuGet packages"); | ||
|
||
var packArgs = $"pack --nologo --no-build --configuration {context.ConfigurationText} --output {context.PackageOutputFolder} --verbosity {context.Verbosity} src/xunit.runner.visualstudio -p:NuspecFile=xunit.runner.visualstudio.nuspec"; | ||
await context.Exec("dotnet", packArgs); | ||
} | ||
} |