Merge pull request #10028 from peterhuene/list-packages

Dotnet list package command
This commit is contained in:
Peter Huene 2018-09-20 13:04:45 -07:00 committed by GitHub
commit 23612babd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 2013 additions and 41 deletions

View file

@ -243,6 +243,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-install-tool.Tests",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.MSBuildSdkResolver.Tests", "test\Microsoft.DotNet.MSBuildSdkResolver.Tests\Microsoft.DotNet.MSBuildSdkResolver.Tests.csproj", "{B7C82980-F01D-4B8A-A746-BFA0032CB152}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-list-package.Tests", "test\dotnet-list-package.Tests\dotnet-list-package.Tests.csproj", "{14C91E15-BD00-4218-9674-6AD216D89AB8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -1747,6 +1749,30 @@ Global
{B7C82980-F01D-4B8A-A746-BFA0032CB152}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
{B7C82980-F01D-4B8A-A746-BFA0032CB152}.RelWithDebInfo|x86.ActiveCfg = Release|Any CPU
{B7C82980-F01D-4B8A-A746-BFA0032CB152}.RelWithDebInfo|x86.Build.0 = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Debug|x64.ActiveCfg = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Debug|x64.Build.0 = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Debug|x86.ActiveCfg = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Debug|x86.Build.0 = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.MinSizeRel|x64.Build.0 = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.MinSizeRel|x86.Build.0 = Debug|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Release|Any CPU.Build.0 = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Release|x64.ActiveCfg = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Release|x64.Build.0 = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Release|x86.ActiveCfg = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.Release|x86.Build.0 = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.RelWithDebInfo|x86.ActiveCfg = Release|Any CPU
{14C91E15-BD00-4218-9674-6AD216D89AB8}.RelWithDebInfo|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -1824,6 +1850,7 @@ Global
{EDF19BE6-F20F-4AD0-8E3B-E837030726A5} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F}
{8FE9D802-57F3-493B-9E14-72DF905E3838} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{B7C82980-F01D-4B8A-A746-BFA0032CB152} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{14C91E15-BD00-4218-9674-6AD216D89AB8} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B526D2CE-EE2D-4AD4-93EF-1867D90FF1F5}

View file

@ -46,7 +46,7 @@
<MicrosoftDotNetProjectJsonMigrationPackageVersion>1.3.1</MicrosoftDotNetProjectJsonMigrationPackageVersion>
<MicrosoftDotNetToolsMigrateCommandPackageVersion>$(MicrosoftDotNetProjectJsonMigrationPackageVersion)</MicrosoftDotNetToolsMigrateCommandPackageVersion>
<MicrosoftDotNetArchivePackageVersion>0.2.0-beta-63027-01</MicrosoftDotNetArchivePackageVersion>
<NuGetBuildTasksPackageVersion>4.8.0-rtm.5362</NuGetBuildTasksPackageVersion>
<NuGetBuildTasksPackageVersion>4.9.0-preview3.5473</NuGetBuildTasksPackageVersion>
<NuGetBuildTasksPackPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetBuildTasksPackPackageVersion>
<NuGetCommonPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetCommonPackageVersion>
<NuGetCommandLineXPlatPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetCommandLineXPlatPackageVersion>

View file

@ -646,4 +646,10 @@ setx PATH "%PATH%;{0}"
<data name="VersionSuffixArgumentName" xml:space="preserve">
<value>VERSION_SUFFIX</value>
</data>
</root>
<data name="SolutionOrProjectArgumentDescription" xml:space="preserve">
<value>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</value>
</data>
<data name="SolutionOrProjectArgumentName" xml:space="preserve">
<value>PROJECT | SOLUTION</value>
</data>
</root>

View file

@ -7,6 +7,7 @@ using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.Tools.List.ProjectToProjectReferences;
using Microsoft.DotNet.Tools.List.PackageReferences;
namespace Microsoft.DotNet.Tools.List
{
@ -23,6 +24,10 @@ namespace Microsoft.DotNet.Tools.List
{
"reference",
o => new ListProjectToProjectReferencesCommand(o, ParseResult)
},
{
"package",
o => new ListPackageReferencesCommand(o, ParseResult)
}
};

View file

@ -14,11 +14,12 @@ namespace Microsoft.DotNet.Cli
"list",
LocalizableStrings.NetListCommand,
Accept.ZeroOrOneArgument()
.With(
name: CommonLocalizableStrings.ProjectArgumentName,
description: CommonLocalizableStrings.ProjectArgumentDescription)
.DefaultToCurrentDirectory(),
CommonOptions.HelpOption(),
ListProjectToProjectReferencesCommandParser.ListProjectToProjectReferences());
.With(
name: CommonLocalizableStrings.SolutionOrProjectArgumentName,
description: CommonLocalizableStrings.SolutionOrProjectArgumentDescription)
.DefaultToCurrentDirectory(),
ListPackageReferencesCommandParser.ListPackageReferences(),
ListProjectToProjectReferencesCommandParser.ListProjectToProjectReferences(),
CommonOptions.HelpOption());
}
}

View file

@ -118,6 +118,6 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="NetListCommand" xml:space="preserve">
<value>List references of a .NET project.</value>
<value>List references or packages of a .NET project.</value>
</data>
</root>

View file

@ -0,0 +1,154 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.Tools.Common;
using Microsoft.DotNet.Tools.NuGet;
namespace Microsoft.DotNet.Tools.List.PackageReferences
{
internal class ListPackageReferencesCommand : CommandBase
{
//The file or directory passed down by the command
private readonly string _fileOrDirectory;
private AppliedOption _appliedCommand;
public ListPackageReferencesCommand(
AppliedOption appliedCommand,
ParseResult parseResult) : base(parseResult)
{
if (appliedCommand == null)
{
throw new ArgumentNullException(nameof(appliedCommand));
}
_fileOrDirectory = PathUtility.GetAbsolutePath(PathUtility.EnsureTrailingSlash(Directory.GetCurrentDirectory()),
appliedCommand.Arguments.Single());
_appliedCommand = appliedCommand["package"];
}
public override int Execute()
{
return NuGetCommand.Run(TransformArgs());
}
private string[] TransformArgs()
{
var args = new List<string>
{
"package",
"list",
};
args.Add(GetProjectOrSolution());
args.AddRange(_appliedCommand.OptionValuesToBeForwarded());
if (_appliedCommand.HasOption("include-prerelease"))
{
CheckForOutdated("--include-prerelease");
}
if (_appliedCommand.HasOption("highest-patch"))
{
CheckForOutdated("--highest-patch");
}
if (_appliedCommand.HasOption("highest-minor"))
{
CheckForOutdated("--highest-minor");
}
if (_appliedCommand.HasOption("config"))
{
CheckForOutdated("--config");
}
if (_appliedCommand.HasOption("source"))
{
CheckForOutdated("--source");
}
return args.ToArray();
}
/// <summary>
/// A check for the outdated specific options. If --outdated not present,
/// these options must not be used, so error is thrown
/// </summary>
/// <param name="option"></param>
private void CheckForOutdated(string option)
{
if (!_appliedCommand.HasOption("outdated"))
{
throw new GracefulException(LocalizableStrings.OutdatedOptionOnly, option);
}
}
/// <summary>
/// Gets a solution file or a project file from a given directory.
/// If the given path is a file, it just returns it after checking
/// it exists.
/// </summary>
/// <returns>Path to send to the command</returns>
private string GetProjectOrSolution()
{
string resultPath = _fileOrDirectory;
if (Directory.Exists(resultPath))
{
var possibleSolutionPath = Directory.GetFiles(resultPath, "*.sln", SearchOption.TopDirectoryOnly);
//If more than a single sln file is found, an error is thrown since we can't determine which one to choose.
if (possibleSolutionPath.Count() > 1)
{
throw new GracefulException(CommonLocalizableStrings.MoreThanOneSolutionInDirectory, resultPath);
}
//If a single solution is found, use it.
else if (possibleSolutionPath.Count() == 1)
{
return possibleSolutionPath[0];
}
//If no solutions are found, look for a project file
else
{
var possibleProjectPath = Directory.GetFiles(resultPath, "*.*proj", SearchOption.TopDirectoryOnly)
.Where(path => !path.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
.ToList();
//No projects found throws an error that no sln nor projs were found
if (possibleProjectPath.Count() == 0)
{
throw new GracefulException(LocalizableStrings.NoProjectsOrSolutions, resultPath);
}
//A single project found, use it
else if (possibleProjectPath.Count() == 1)
{
return possibleProjectPath[0];
}
//More than one project found. Not sure which one to choose
else
{
throw new GracefulException(CommonLocalizableStrings.MoreThanOneProjectInDirectory, resultPath);
}
}
}
if (!File.Exists(resultPath))
{
throw new GracefulException(LocalizableStrings.FileNotFound, resultPath);
}
return resultPath;
}
}
}

View file

@ -0,0 +1,58 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.DotNet.Cli.CommandLine;
using LocalizableStrings = Microsoft.DotNet.Tools.List.PackageReferences.LocalizableStrings;
namespace Microsoft.DotNet.Cli
{
internal static class ListPackageReferencesCommandParser
{
public static Command ListPackageReferences() => Create.Command(
"package",
LocalizableStrings.AppFullName,
Accept.NoArguments(),
CommonOptions.HelpOption(),
Create.Option("--outdated",
LocalizableStrings.CmdOutdatedDescription,
Accept.NoArguments().ForwardAs("--outdated")),
Create.Option("--framework",
LocalizableStrings.CmdFrameworkDescription,
Accept.OneOrMoreArguments()
.With(name: LocalizableStrings.CmdFramework)
.ForwardAsMany(o => ForwardedArguments("--framework", o.Arguments))),
Create.Option("--include-transitive",
LocalizableStrings.CmdTransitiveDescription,
Accept.NoArguments().ForwardAs("--include-transitive")),
Create.Option("--include-prerelease",
LocalizableStrings.CmdPrereleaseDescription,
Accept.NoArguments().ForwardAs("--include-prerelease")),
Create.Option("--highest-patch",
LocalizableStrings.CmdHighestPatchDescription,
Accept.NoArguments().ForwardAs("--highest-patch")),
Create.Option("--highest-minor",
LocalizableStrings.CmdHighestMinorDescription,
Accept.NoArguments().ForwardAs("--highest-minor")),
Create.Option("--config",
LocalizableStrings.CmdConfigDescription,
Accept.ExactlyOneArgument()
.With(name: LocalizableStrings.CmdConfig)
.ForwardAsMany(o => new [] { "--config", o.Arguments.Single() })),
Create.Option("--source",
LocalizableStrings.CmdSourceDescription,
Accept.OneOrMoreArguments()
.With(name: LocalizableStrings.CmdSource)
.ForwardAsMany(o => ForwardedArguments("--source", o.Arguments))));
private static IEnumerable<string> ForwardedArguments(string token, IEnumerable<string> arguments)
{
foreach (var arg in arguments)
{
yield return token;
yield return arg;
}
}
}
}

View file

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AppFullName" xml:space="preserve">
<value>List all package references of the project or solution.</value>
</data>
<data name="CmdFramework" xml:space="preserve">
<value>FRAMEWORK | FRAMEWORK\RID</value>
</data>
<data name="CmdFrameworkDescription" xml:space="preserve">
<value>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</value>
</data>
<data name="CmdOutdatedDescription" xml:space="preserve">
<value>Lists packages that have newer versions.</value>
</data>
<data name="CmdTransitiveDescription" xml:space="preserve">
<value>Lists transitive and top-level packages.</value>
</data>
<data name="NoProjectsOrSolutions" xml:space="preserve">
<value>A project or solution file could not be found in {0}. Specify a project or solution file to use.</value>
</data>
<data name="CmdConfig" xml:space="preserve">
<value>CONFIG_FILE</value>
</data>
<data name="CmdConfigDescription" xml:space="preserve">
<value>The path to the NuGet config file to use. Requires the '--outdated' option.</value>
</data>
<data name="CmdHighestMinorDescription" xml:space="preserve">
<value>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</value>
</data>
<data name="CmdHighestPatchDescription" xml:space="preserve">
<value>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</value>
</data>
<data name="CmdPrereleaseDescription" xml:space="preserve">
<value>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</value>
</data>
<data name="CmdSource" xml:space="preserve">
<value>SOURCE</value>
</data>
<data name="CmdSourceDescription" xml:space="preserve">
<value>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</value>
</data>
<data name="OutdatedOptionOnly" xml:space="preserve">
<value>Option '{0}' requires the '--outdated' option to be specified.</value>
</data>
<data name="FileNotFound" xml:space="preserve">
<value>Could not find file or directory '{0}'.</value>
</data>
</root>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="cs" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Zobrazí všechny odkazy mezi projekty v projektu.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="de" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Hiermit listen Sie alle Projekt-zu-Projekt-Verweise des Projekts auf.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="es" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Enumera referencias de proyecto a proyecto del proyecto.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="fr" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Listez toutes les références projet à projet du projet.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="it" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Elenca tutti i riferimenti P2P (da progetto a progetto) del progetto.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ja" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">プロジェクトのすべてのプロジェクト間参照をリストします。</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ko" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">프로젝트의 모든 프로젝트 간 참조를 나열합니다.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pl" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Wyświetl listę wszystkich odwołań między projektami w projekcie.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pt-BR" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Listar todas as referências de projeto a projeto do projeto.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ru" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Вывод списка всех ссылок из одного проекта на другой.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="tr" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">Projenin tüm projeden projeye başvurularını listeleyin.</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" original="src/dotnet/commands/dotnet-list/dotnet-list-p2ps/LocalizableStrings.resx">
<body>
<group id="src/dotnet/commands/dotnet-list/dotnet-list-p2ps/LocalizableStrings.resx" />
<trans-unit id="AppFullName">
<source>.NET Core Project-to-Project dependency viewer</source>
<note />
</trans-unit>
<trans-unit id="AppDescription">
<source>Command to list project to project references</source>
<note />
</trans-unit>
<trans-unit id="NoReferencesFound">
<source>There are no {0} references in project {1}.
{0} is the type of the item being requested (project, package, p2p) and {1} is the object operated on (a project file or a solution file). </source>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hans" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">列出项目的所有项目到项目引用。</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hant" original="../LocalizableStrings.resx">
<body>
<trans-unit id="AppFullName">
<source>List all package references of the project or solution.</source>
<target state="needs-review-translation">列出專案的所有專案對專案參考。</target>
<note />
</trans-unit>
<trans-unit id="CmdFramework">
<source>FRAMEWORK | FRAMEWORK\RID</source>
<target state="new">FRAMEWORK | FRAMEWORK\RID</target>
<note />
</trans-unit>
<trans-unit id="CmdFrameworkDescription">
<source>Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</source>
<target state="new">Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.</target>
<note />
</trans-unit>
<trans-unit id="CmdOutdatedDescription">
<source>Lists packages that have newer versions.</source>
<target state="new">Lists packages that have newer versions.</target>
<note />
</trans-unit>
<trans-unit id="CmdTransitiveDescription">
<source>Lists transitive and top-level packages.</source>
<target state="new">Lists transitive and top-level packages.</target>
<note />
</trans-unit>
<trans-unit id="NoProjectsOrSolutions">
<source>A project or solution file could not be found in {0}. Specify a project or solution file to use.</source>
<target state="new">A project or solution file could not be found in {0}. Specify a project or solution file to use.</target>
<note />
</trans-unit>
<trans-unit id="CmdConfig">
<source>CONFIG_FILE</source>
<target state="new">CONFIG_FILE</target>
<note />
</trans-unit>
<trans-unit id="CmdConfigDescription">
<source>The path to the NuGet config file to use. Requires the '--outdated' option.</source>
<target state="new">The path to the NuGet config file to use. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestMinorDescription">
<source>Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdHighestPatchDescription">
<source>Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdPrereleaseDescription">
<source>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="CmdSource">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
<trans-unit id="CmdSourceDescription">
<source>The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</source>
<target state="new">The NuGet sources to use when searching for newer packages. Requires the '--outdated' option.</target>
<note />
</trans-unit>
<trans-unit id="OutdatedOptionOnly">
<source>Option '{0}' requires the '--outdated' option to be specified.</source>
<target state="new">Option '{0}' requires the '--outdated' option to be specified.</target>
<note />
</trans-unit>
<trans-unit id="FileNotFound">
<source>Could not find file or directory '{0}'.</source>
<target state="new">Could not find file or directory '{0}'.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="cs" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Zobrazí odkazy projektu .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Zobrazí odkazy projektu .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="de" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Hiermit listen Sie die Verweise eines .NET-Projekts auf.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Hiermit listen Sie die Verweise eines .NET-Projekts auf.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="es" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Enumera las referencias de un proyecto de .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Enumera las referencias de un proyecto de .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="fr" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Listez les références d'un projet .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Listez les références d'un projet .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="it" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Elenca i riferimenti di un progetto .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Elenca i riferimenti di un progetto .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="ja" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">.NET プロジェクトの参照を一覧表示します。</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">.NET プロジェクトの参照を一覧表示します。</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="ko" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">.NET 프로젝트의 참조를 나열합니다.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">.NET 프로젝트의 참조를 나열합니다.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="pl" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Wyświetl listę odwołań projektu .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Wyświetl listę odwołań projektu .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="pt-BR" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Liste as referências de um projeto do .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Liste as referências de um projeto do .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="ru" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Вывод списка ссылок для проекта .NET.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Вывод списка ссылок для проекта .NET.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="tr" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">Bir .NET projesinin başvurularını listeleyin.</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">Bir .NET projesinin başvurularını listeleyin.</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="zh-Hans" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">列出 .NET 项目的引用。</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">列出 .NET 项目的引用。</target>
<note />
</trans-unit>
</body>

View file

@ -3,8 +3,8 @@
<file datatype="xml" source-language="en" target-language="zh-Hant" original="../LocalizableStrings.resx">
<body>
<trans-unit id="NetListCommand">
<source>List references of a .NET project.</source>
<target state="translated">列出 .NET 專案的參考。</target>
<source>List references or packages of a .NET project.</source>
<target state="needs-review-translation">列出 .NET 專案的參考。</target>
<note />
</trans-unit>
</body>

View file

@ -26,6 +26,7 @@
<EmbeddedResource Update="**\dotnet-buildserver\shutdown\*.resx" Namespace="Microsoft.DotNet.Tools.BuildServer.Shutdown" />
<EmbeddedResource Update="**\dotnet-clean\*.resx" Namespace="Microsoft.DotNet.Tools.Clean" />
<EmbeddedResource Update="**\dotnet-help\*.resx" Namespace="Microsoft.DotNet.Tools.Help" />
<EmbeddedResource Update="**\dotnet-list-package\*.resx" Namespace="Microsoft.DotNet.Tools.List.PackageReferences" />
<EmbeddedResource Update="**\dotnet-list-reference\*.resx" Namespace="Microsoft.DotNet.Tools.List.ProjectToProjectReferences" />
<EmbeddedResource Update="**\dotnet-list\*.resx" Namespace="Microsoft.DotNet.Tools.List" />
<EmbeddedResource Update="**\dotnet-migrate\*.resx" Namespace="Microsoft.DotNet.Tools.Migrate" />

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">SUFIJO_DE_VERSIÓN</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">SUFFIXE_VERSION</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">SUFFISSO_VERSIONE</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">SUFIKS_WERSJI</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">SUFIXO_DA_VERSÃO</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">SÜRÜM_SONEKİ</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -893,6 +893,16 @@ setx PATH "%PATH%;{0}"
<target state="translated">VERSION_SUFFIX</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentDescription">
<source>The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</source>
<target state="new">The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.</target>
<note />
</trans-unit>
<trans-unit id="SolutionOrProjectArgumentName">
<source>PROJECT | SOLUTION</source>
<target state="new">PROJECT | SOLUTION</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-install-tool.Tests",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InsertionTests", "InsertionTests\InsertionTests.csproj", "{A9713391-3D44-4664-9C41-75765218FD6C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-list-package.Tests", "dotnet-list-package.Tests\dotnet-list-package.Tests.csproj", "{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -607,6 +609,18 @@ Global
{A9713391-3D44-4664-9C41-75765218FD6C}.Release|x64.Build.0 = Release|Any CPU
{A9713391-3D44-4664-9C41-75765218FD6C}.Release|x86.ActiveCfg = Release|Any CPU
{A9713391-3D44-4664-9C41-75765218FD6C}.Release|x86.Build.0 = Release|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Debug|x64.ActiveCfg = Debug|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Debug|x64.Build.0 = Debug|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Debug|x86.ActiveCfg = Debug|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Debug|x86.Build.0 = Debug|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Release|Any CPU.Build.0 = Release|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Release|x64.ActiveCfg = Release|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Release|x64.Build.0 = Release|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Release|x86.ActiveCfg = Release|Any CPU
{377363FE-0B87-4ACB-AEF3-3FF6454EC8D4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View file

@ -62,6 +62,17 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
return new AndConstraint<CommandResultAssertions>(this);
}
public AndConstraint<CommandResultAssertions> HaveStdOutContainingIgnoreSpaces(string pattern)
{
string commandResultNoSpaces = _commandResult.StdOut.Replace(" ", "");
Execute.Assertion
.ForCondition(commandResultNoSpaces.Contains(pattern))
.FailWith(AppendDiagnosticsTo($"The command output did not contain expected result: {pattern}{Environment.NewLine}"));
return new AndConstraint<CommandResultAssertions>(this);
}
public AndConstraint<CommandResultAssertions> HaveStdOutContainingIgnoreCase(string pattern)
{
Execute.Assertion.ForCondition(_commandResult.StdOut.IndexOf(pattern, StringComparison.OrdinalIgnoreCase) >= 0)

View file

@ -0,0 +1,24 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public sealed class ListPackageCommand : DotnetCommand
{
private string _path = null;
public override CommandResult Execute(string args = "")
{
args = $"list {_path} package {args}";
return base.ExecuteWithCapturedOutput(args);
}
public ListPackageCommand WithPath(string path)
{
_path = path;
return this;
}
}
}

View file

@ -0,0 +1,262 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using FluentAssertions;
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.DotNet.Cli.List.Package.Tests
{
public class GivenDotnetListPackage : TestBase
{
private readonly ITestOutputHelper _output;
public GivenDotnetListPackage(ITestOutputHelper output)
{
_output = output;
}
[Fact]
public void RequestedAndResolvedVersionsMatch()
{
var testAsset = "TestAppSimple";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
var packageName = "Newtonsoft.Json";
var packageVersion = "9.0.1";
var cmd = new DotnetCommand()
.WithWorkingDirectory(projectDirectory)
.ExecuteWithCapturedOutput($"add package {packageName} --version {packageVersion}");
cmd.Should().Pass();
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr()
.And.HaveStdOutContainingIgnoreSpaces(packageName+packageVersion+packageVersion);
}
[Fact]
public void ItListsAutoReferencedPackages()
{
var testAsset = "TestAppSimple";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr()
.And.HaveStdOutContainingIgnoreSpaces("Microsoft.NETCore.App(A)")
.And.HaveStdOutContainingIgnoreSpaces("(A):Auto-referencedpackage");
}
[Fact]
public void ItRunOnSolution()
{
var sln = "TestAppWithSlnAndSolutionFolders";
var projectDirectory = TestAssets
.Get(sln)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr()
.And.HaveStdOutContainingIgnoreSpaces("Microsoft.NETCore.App");
}
[Fact]
public void AssetsPathExistsButNotRestored()
{
var testAsset = "NewtonSoftDependentProject";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute()
.Should()
.Pass()
.And.HaveStdErr();
}
[Fact]
public void ItListsTransitivePackage()
{
var testAsset = "NewtonSoftDependentProject";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr()
.And.NotHaveStdOutContaining("System.IO.FileSystem");
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute(args:"--include-transitive")
.Should()
.Pass()
.And.NotHaveStdErr()
.And.HaveStdOutContaining("System.IO.FileSystem");
}
[Theory]
[InlineData("", "[net451]", null)]
[InlineData("", "[netcoreapp2.2]", null)]
[InlineData("--framework netcoreapp2.2 --framework net451", "[net451]", null)]
[InlineData("--framework netcoreapp2.2 --framework net451", "[netcoreapp2.2]", null)]
[InlineData("--framework netcoreapp2.2", "[netcoreapp2.2]", "[net451]")]
[InlineData("--framework net451", "[net451]", "[netcoreapp2.2]")]
public void ItListsValidFrameworks(string args, string shouldInclude, string shouldntInclude)
{
var testAsset = "MSBuildAppWithMultipleFrameworks";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
if (shouldntInclude == null)
{
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute(args)
.Should()
.Pass()
.And.NotHaveStdErr()
.And.HaveStdOutContainingIgnoreSpaces(shouldInclude.Replace(" ", ""));
}
else
{
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute(args)
.Should()
.Pass()
.And.NotHaveStdErr()
.And.HaveStdOutContainingIgnoreSpaces(shouldInclude.Replace(" ", ""))
.And.NotHaveStdOutContaining(shouldntInclude.Replace(" ", ""));
}
}
[Fact]
public void ItDoesNotAcceptInvalidFramework()
{
var testAsset = "MSBuildAppWithMultipleFrameworks";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass();
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute("--framework invalid")
.Should()
.Fail();
}
[Fact]
public void ItListsFSharpProject()
{
var testAsset = "FSharpTestAppSimple";
var projectDirectory = TestAssets
.Get(testAsset)
.CreateInstance()
.WithSourceFiles()
.Root
.FullName;
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
new ListPackageCommand()
.WithPath(projectDirectory)
.Execute()
.Should()
.Pass()
.And.NotHaveStdErr();
}
}
}

View file

@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFramework>$(CliTargetFramework)</TargetFramework>
<RuntimeFrameworkVersion>$(MicrosoftNETCoreAppPackageVersion)</RuntimeFrameworkVersion>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<AssemblyName>dotnet-list-package.Tests</AssemblyName>
<AssemblyOriginatorKeyFile>../../tools/Key.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssetTargetFallback>$(AssetTargetFallback);dotnet5.4;portable-net451+win8</AssetTargetFallback>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DotNet.Cli.Sln.Internal\Microsoft.DotNet.Cli.Sln.Internal.csproj" />
<ProjectReference Include="..\Msbuild.Tests.Utilities\Msbuild.Tests.Utilities.csproj" />
<ProjectReference Include="..\..\src\dotnet\dotnet.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="FluentAssertions" Version="4.18.0" />
<PackageReference Include="Microsoft.DotNet.ProjectJsonMigration" Version="$(MicrosoftDotNetProjectJsonMigrationPackageVersion)" />
</ItemGroup>
</Project>

View file

@ -14,23 +14,24 @@ namespace Microsoft.DotNet.Cli.List.Reference.Tests
{
public class GivenDotnetListReference : TestBase
{
private const string HelpText = @"Usage: dotnet list <PROJECT> reference [options]
private const string HelpText = @"Usage: dotnet list <PROJECT | SOLUTION> reference [options]
Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
<PROJECT | SOLUTION> The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.
Options:
-h, --help Show command line help.";
private const string ListCommandHelpText = @"Usage: dotnet list [options] <PROJECT> [command]
private const string ListCommandHelpText = @"Usage: dotnet list [options] <PROJECT | SOLUTION> [command]
Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
<PROJECT | SOLUTION> The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.
Options:
-h, --help Show command line help.
Commands:
package List all package references of the project or solution.
reference List all project-to-project references of the project.";
const string FrameworkNet451Arg = "-f net451";