Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added MSTest meta-package #1076

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,14 @@ function Create-NugetPackages {
"" > "$stagingDir\_._"

# Copy over the nuspecs to the staging directory
$nuspecFiles = @("MSTest.TestAdapter.nuspec", "MSTest.TestAdapter.symbols.nuspec", "MSTest.TestFramework.nuspec", "MSTest.TestFramework.symbols.nuspec", "MSTest.Internal.TestFx.Documentation.nuspec")
$nuspecFiles = @(
"MSTest.nuspec",
"MSTest.TestAdapter.nuspec",
"MSTest.TestAdapter.symbols.nuspec",
"MSTest.TestFramework.nuspec",
"MSTest.TestFramework.symbols.nuspec",
"MSTest.Internal.TestFx.Documentation.nuspec"
)

foreach ($file in $nuspecFiles) {
Copy-Item $tfSrcPackageDir\$file $stagingDir -Force
Expand Down
68 changes: 68 additions & 0 deletions src/Package/MSTest.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>MSTest</id>
<version>1.1.17</version>
Evangelink marked this conversation as resolved.
Show resolved Hide resolved
<title>MSTest</title>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<description>
A meta package to simplify test projects.

Supported platforms:
- .NET 4.5.0+
- .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
- .NET 5.0 (Visual Studio 2019)
- .NET 5.0 Windows.18362+ (WinUI Desktop Apps) (Visual Studio 2019)
- ASP.NET Core 1.0+ (Visual Studio 2017)
</description>
<projectUrl>https://github.com/microsoft/testfx</projectUrl>
<license type="expression">MIT</license>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl>
<icon>Icon.png</icon>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>MSTest TestFramework TestAdapter VisualStudio Unittest MSTestV2 Microsoft</tags>
<repository type="git"
url="https://github.com/microsoft/testfx"
branch="$BranchName$"
commit="$CommitId$" />

<dependencies>
<group targetFramework="netcoreapp1.0">
<dependency id="MSTest.TestAdapter" version="[$version$]" />
<dependency id="MSTest.TestFramework" version="[$version$]" />
<dependency id="Microsoft.NET.Test.Sdk" version="[$TestPlatformVersion$]" />
</group>

<group targetFramework="netstandard1.5">
<dependency id="MSTest.TestAdapter" version="[$version$]" />
<dependency id="MSTest.TestFramework" version="[$version$]" />
<dependency id="Microsoft.NET.Test.Sdk" version="[$TestPlatformVersion$]" />
</group>

<group targetFramework="net45">
<dependency id="MSTest.TestAdapter" version="[$version$]" />
<dependency id="MSTest.TestFramework" version="[$version$]" />
<dependency id="Microsoft.NET.Test.Sdk" version="[$TestPlatformVersion$]" />
</group>

<group targetFramework="uap10.0">
<dependency id="MSTest.TestAdapter" version="[$version$]" />
<dependency id="MSTest.TestFramework" version="[$version$]" />
<!-- Microsoft.NET.Test.Sdk package is referenced by build system, so omitting it. -->
<!-- <dependency id="Microsoft.NET.Test.Sdk" version="[$TestPlatformVersion$]" /> -->
</group>

<group targetFramework="net5.0">
<dependency id="MSTest.TestAdapter" version="[$version$]" />
<dependency id="MSTest.TestFramework" version="[$version$]" />
<dependency id="Microsoft.NET.Test.Sdk" version="[$TestPlatformVersion$]" />
</group>
</dependencies>
</metadata>
<files>
<file src="Icon.png" target="" />
Haplois marked this conversation as resolved.
Show resolved Hide resolved
</files>
</package>