diff --git a/src/Cli/dotnet/CommonLocalizableStrings.resx b/src/Cli/dotnet/CommonLocalizableStrings.resx index d19a888dd40f..675439ab4eb0 100644 --- a/src/Cli/dotnet/CommonLocalizableStrings.resx +++ b/src/Cli/dotnet/CommonLocalizableStrings.resx @@ -671,4 +671,19 @@ setx PATH "%PATH%;{0}" Allows the command to stop and wait for user input or action (for example to complete authentication). - + + Could not find flie `{0}`. + + + File `{0}` added to the project. + + + Project already has a file `{0}`. + + + File `{0}` removed. + + + File reference `{0}` could not be found. + + \ No newline at end of file diff --git a/src/Cli/dotnet/MsbuildProject.cs b/src/Cli/dotnet/MsbuildProject.cs index 2117edb4f823..496299a9de78 100644 --- a/src/Cli/dotnet/MsbuildProject.cs +++ b/src/Cli/dotnet/MsbuildProject.cs @@ -20,6 +20,7 @@ namespace Microsoft.DotNet.Tools internal class MsbuildProject { const string ProjectItemElementType = "ProjectReference"; + const string CompileElementType = "Compile"; public ProjectRootElement ProjectRootElement { get; private set; } public string ProjectDirectory { get; private set; } @@ -150,6 +151,45 @@ public int RemoveProjectToProjectReferences(string framework, IEnumerable refs) + { + int numberOfAddedFiles = 0; + + ProjectItemGroupElement itemGroup = ProjectRootElement.FindUniformOrCreateItemGroupWithCondition( + CompileElementType, + framework); + foreach (var @ref in refs.Select((r) => PathUtility.GetPathWithBackSlashes(r))) + { + if (ProjectRootElement.HasExistingItemWithCondition(framework, @ref)) + { + Reporter.Output.WriteLine(string.Format( + CommonLocalizableStrings.ProjectAlreadyHasAreference, + @ref)); + continue; + } + + numberOfAddedFiles++; + itemGroup.AppendChild(ProjectRootElement.CreateItemElement(CompileElementType, @ref)); + + Reporter.Output.WriteLine(string.Format(CommonLocalizableStrings.FileAddedToTheProject, @ref)); + } + + return numberOfAddedFiles; + } + + public int RemoveFileReferences(string framework, IEnumerable refs) + { + int totalNumberOfRemovedFiles = 0; + + foreach (var @ref in refs) + { + totalNumberOfRemovedFiles += RemoveFileReferenceAlternatives(framework, @ref); + } + + return totalNumberOfRemovedFiles; + } + + public IEnumerable GetProjectToProjectReferences() { return ProjectRootElement.GetAllItemsWithElementType(ProjectItemElementType); @@ -270,6 +310,35 @@ private int RemoveProjectToProjectReferenceAlternatives(string framework, string return numberOfRemovedRefs; } + private int RemoveFileReferenceAlternatives(string framework, string file) + { + int numberOfRemovedFiles = 0; + foreach (var r in GetIncludeAlternativesForRemoval(file)) + { + foreach (var existingItem in ProjectRootElement.FindExistingItemsWithCondition(framework, r)) + { + ProjectElementContainer itemGroup = existingItem.Parent; + itemGroup.RemoveChild(existingItem); + if (itemGroup.Children.Count == 0) + { + itemGroup.Parent.RemoveChild(itemGroup); + } + + numberOfRemovedFiles++; + Reporter.Output.WriteLine(string.Format(CommonLocalizableStrings.FileRemoved, r)); + } + } + + if (numberOfRemovedFiles == 0) + { + Reporter.Output.WriteLine(string.Format( + CommonLocalizableStrings.FileReferenceCouldNotBeFound, + file)); + } + + return numberOfRemovedFiles; + } + // Easiest way to explain rationale for this function is on the example. Let's consider following directory structure: // .../a/b/p.proj // .../a/d/ref.proj diff --git a/src/Cli/dotnet/commands/dotnet-add/AddCommandParser.cs b/src/Cli/dotnet/commands/dotnet-add/AddCommandParser.cs index 906874a0b93e..191a640695ce 100644 --- a/src/Cli/dotnet/commands/dotnet-add/AddCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-add/AddCommandParser.cs @@ -21,6 +21,7 @@ public static Command Add() => description: CommonLocalizableStrings.ProjectArgumentDescription), AddPackageParser.AddPackage(), AddProjectToProjectReferenceParser.AddProjectReference(), + AddFileParser.AddFile(), CommonOptions.HelpOption()); } -} \ No newline at end of file +} diff --git a/src/Cli/dotnet/commands/dotnet-add/Program.cs b/src/Cli/dotnet/commands/dotnet-add/Program.cs index 274dfb939d92..41d265eefea0 100644 --- a/src/Cli/dotnet/commands/dotnet-add/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-add/Program.cs @@ -7,6 +7,7 @@ using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.CommandLine; using Microsoft.DotNet.Cli.Utils; +using Microsoft.DotNet.Tools.Add.FileReference; using Microsoft.DotNet.Tools.Add.PackageReference; using Microsoft.DotNet.Tools.Add.ProjectToProjectReference; @@ -32,6 +33,12 @@ public class AddCommand : DotNetTopLevelCommandBase add => new AddPackageReferenceCommand( add["package"], add.Value(), + ParseResult), + + ["file"] = + add => new AddFileReferenceCommand( + add["file"], + add.Value(), ParseResult) }; @@ -41,4 +48,4 @@ public static int Run(string[] args) return command.RunCommand(args); } } -} \ No newline at end of file +} diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/AddFileParser.cs b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/AddFileParser.cs new file mode 100644 index 000000000000..30588758696d --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/AddFileParser.cs @@ -0,0 +1,27 @@ +// 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.CommandLine; +using LocalizableStrings = Microsoft.DotNet.Tools.Add.FileReference.LocalizableStrings; + +namespace Microsoft.DotNet.Cli +{ + internal static class AddFileParser + { + public static Command AddFile() + { + return Create.Command( + "file", + LocalizableStrings.AppFullName, + Accept.OneOrMoreArguments() + .With(name: LocalizableStrings.FilePathArgumentName, + description: LocalizableStrings.FilePathArgumentDescription), + CommonOptions.HelpOption(), + Create.Option("-f|--framework", LocalizableStrings.CmdFrameworkDescription, + Accept.ExactlyOneArgument() + .WithSuggestionsFrom(_ => Suggest.TargetFrameworksFromProjectFile()) + .With(name: Tools.Add.PackageReference.LocalizableStrings.CmdFramework)), + CommonOptions.InteractiveOption()); + } + } +} diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/LocalizableStrings.resx b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/LocalizableStrings.resx new file mode 100644 index 000000000000..da4cd6b546ad --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/LocalizableStrings.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Command to add file + + + Add a file to the project. + + + Add the reference only when targeting a specific framework. + + + The files to add. + + + FILE + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/Program.cs b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/Program.cs new file mode 100644 index 000000000000..4fc2cfd1cd3c --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/Program.cs @@ -0,0 +1,84 @@ +// 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 System.Text; +using Microsoft.Build.Evaluation; +using Microsoft.DotNet.Cli; +using Microsoft.DotNet.Cli.CommandLine; +using Microsoft.DotNet.Cli.Utils; +using Microsoft.DotNet.Tools.Common; +using NuGet.Frameworks; + +namespace Microsoft.DotNet.Tools.Add.FileReference +{ + internal class AddFileReferenceCommand : CommandBase + { + private readonly AppliedOption _appliedCommand; + private readonly string _fileOrDirectory; + + public AddFileReferenceCommand( + AppliedOption appliedCommand, + string fileOrDirectory, + ParseResult parseResult) : base(parseResult) + { + if (appliedCommand == null) + { + throw new ArgumentNullException(nameof(appliedCommand)); + } + if (fileOrDirectory == null) + { + throw new ArgumentNullException(nameof(fileOrDirectory)); + } + + _appliedCommand = appliedCommand; + _fileOrDirectory = fileOrDirectory; + } + + public override int Execute() + { + var projects = new ProjectCollection(); + bool interactive = CommonOptionResult.GetInteractive(_appliedCommand); + MsbuildProject msbuildProj = MsbuildProject.FromFileOrDirectory( + projects, + _fileOrDirectory, + interactive); + + var frameworkString = _appliedCommand.ValueOrDefault("framework"); + var refs = _appliedCommand.Arguments; + + if (frameworkString != null) + { + var framework = NuGetFramework.Parse(frameworkString); + if (!msbuildProj.IsTargetingFramework(framework)) { + Reporter.Error.WriteLine(string.Format( + CommonLocalizableStrings.ProjectDoesNotTargetFramework, + msbuildProj.ProjectRootElement.FullPath, + frameworkString)); + return 1; + } + } + + PathUtility.EnsureAllPathsExist(refs, CommonLocalizableStrings.CouldNotFindProjectOrDirectory, true); + + var relativePathReferences = refs.Select((r) => + Path.GetRelativePath( + msbuildProj.ProjectDirectory, + System.IO.Path.GetFullPath(r))).ToList(); + + int numberOfAddedReferences = msbuildProj.AddFileReferences( + frameworkString, + relativePathReferences); + + if (numberOfAddedReferences != 0) + { + msbuildProj.ProjectRootElement.Save(); + } + + return 0; + } + } +} diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.cs.xlf new file mode 100644 index 000000000000..054fd9df0613 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.cs.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.de.xlf new file mode 100644 index 000000000000..28a1f81243f2 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.de.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.es.xlf new file mode 100644 index 000000000000..2d5f44d2d9b2 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.es.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.fr.xlf new file mode 100644 index 000000000000..601f0da60b28 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.fr.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.it.xlf new file mode 100644 index 000000000000..5a08d0806442 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.it.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ja.xlf new file mode 100644 index 000000000000..ceea3225f608 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ja.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ko.xlf new file mode 100644 index 000000000000..9e3cded95c69 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ko.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.pl.xlf new file mode 100644 index 000000000000..10105f2ee67b --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.pl.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.pt-BR.xlf new file mode 100644 index 000000000000..84b87c76dde5 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.pt-BR.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ru.xlf new file mode 100644 index 000000000000..97ef6d614971 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.ru.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.tr.xlf new file mode 100644 index 000000000000..5a6c4129c6b5 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.tr.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.zh-Hans.xlf new file mode 100644 index 000000000000..c9f9eee0504f --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.zh-Hans.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.zh-Hant.xlf new file mode 100644 index 000000000000..4ebc2f697984 --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-file/xlf/LocalizableStrings.zh-Hant.xlf @@ -0,0 +1,32 @@ + + + + + + Command to add file + Command to add file + + + + Add a file to the project. + Add a file to the project. + + + + Add the reference only when targeting a specific framework. + Add the reference only when targeting a specific framework. + + + + The files to add. + The files to add. + + + + FILE + FILE + + + + + \ No newline at end of file diff --git a/src/Cli/dotnet/dotnet.csproj b/src/Cli/dotnet/dotnet.csproj index fb881dbf6f1d..9708654c1367 100644 --- a/src/Cli/dotnet/dotnet.csproj +++ b/src/Cli/dotnet/dotnet.csproj @@ -23,6 +23,7 @@ + @@ -77,4 +78,4 @@ - \ No newline at end of file + diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.cs.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.cs.xlf index e1eefd23df43..35104f6225b6 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.cs.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.cs.xlf @@ -12,6 +12,11 @@ V {0} se nenašel žádný projekt. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. V {0} se našlo několik projektů. Vyberte, který z nich chcete použít. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Projekt už obsahuje odkaz na {0}. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.de.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.de.xlf index 78b903d3ae3c..f7371dd7bba0 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.de.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.de.xlf @@ -12,6 +12,11 @@ In "{0}" wurde kein Projekt gefunden. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. In "{0}" wurden mehrere Projekte gefunden. Geben Sie an, welches davon verwendet werden soll. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Für das Projekt ist bereits ein Verweis auf "{0}" vorhanden. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.es.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.es.xlf index 07a396ed517e..8c8267a6af0b 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.es.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.es.xlf @@ -12,6 +12,11 @@ No se encuentra ningún proyecto en "{0}". + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. Se han encontrado varios proyectos en "{0}". Especifique el que debe usarse. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. El proyecto ya tiene una referencia a "{0}". diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.fr.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.fr.xlf index 4c599d54b70b..2e80f7ce2e0c 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.fr.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.fr.xlf @@ -12,6 +12,11 @@ Projet introuvable dans '{0}'. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. Plusieurs projets dans '{0}'. Spécifiez celui à utiliser. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Le projet a déjà une référence à '{0}'. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.it.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.it.xlf index 8ec9dc41266c..4cb8f08703d2 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.it.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.it.xlf @@ -12,6 +12,11 @@ Non è stato trovato alcun progetto in `{0}`. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. Sono stati trovati più progetti in `{0}`. Specificare quello da usare. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Per il progetto esiste già un riferimento a `{0}`. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.ja.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.ja.xlf index c3aae9f60f48..b3f2e627d79f 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.ja.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.ja.xlf @@ -12,6 +12,11 @@ `{0}` にプロジェクトが見つかりませんでした。 + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. `{0}` に複数のプロジェクトが見つかりました。使用するプロジェクトを指定してください。 + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. プロジェクトには既に `{0}` への参照が指定されています。 diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.ko.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.ko.xlf index 3667efe50164..2120b0e53dc3 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.ko.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.ko.xlf @@ -12,6 +12,11 @@ '{0}'에서 프로젝트를 찾을 수 없습니다. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. '{0}'에서 프로젝트를 두 개 이상 찾았습니다. 사용할 프로젝트를 지정하세요. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. 프로젝트에 이미 '{0}'에 대한 참조가 있습니다. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.pl.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.pl.xlf index 21abfe0a2ef5..457f520c903b 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.pl.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.pl.xlf @@ -12,6 +12,11 @@ Nie można odnaleźć żadnego projektu w lokalizacji „{0}”. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. Znaleziono więcej niż jeden projekt w lokalizacji „{0}”. Określ, który ma zostać użyty. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Projekt zawiera już odwołanie do elementu „{0}”. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.pt-BR.xlf index a482f844722a..5a3059dcc5c5 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.pt-BR.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.pt-BR.xlf @@ -12,6 +12,11 @@ Não foi possível encontrar nenhum projeto em ‘{0}’. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. Foi encontrado mais de um projeto em ‘{0}’. Especifique qual deve ser usado. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. O projeto já tem uma referência a ‘{0}’. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.ru.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.ru.xlf index 6aec3178a1a6..121dcfacfeb2 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.ru.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.ru.xlf @@ -12,6 +12,11 @@ Не удалось найти проекты в "{0}". + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. Найдено несколько проектов в "{0}". Выберите один. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Проект уже содержит ссылку на "{0}". diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.tr.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.tr.xlf index 16ff9a51bcf3..a7926afcd5b2 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.tr.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.tr.xlf @@ -12,6 +12,11 @@ `{0}` içinde proje bulunamadı. + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. `{0}` içinde birden fazla proje bulundu. Hangisinin kullanılacağını belirtin. + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. Projede `{0}` başvurusu zaten var. diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hans.xlf index cef643f3fc28..9c0902c8ac83 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hans.xlf @@ -12,6 +12,11 @@ “{0}”中找不到任何项目。 + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ EOF + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. 在“{0}”中找到多个项目。请指定使用哪一个。 + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. 项目已经具有对“{0}”的引用。 diff --git a/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hant.xlf index c0de815dc93f..dac21325f331 100644 --- a/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/xlf/CommonLocalizableStrings.zh-Hant.xlf @@ -12,6 +12,11 @@ 在 `{0}` 中找不到任何專案。 + + Could not find flie `{0}`. + Could not find flie `{0}`. + + Tools directory '{0}' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: @@ -70,11 +75,31 @@ export PATH="$PATH:{0}" + + File `{0}` added to the project. + File `{0}` added to the project. + + + + File reference `{0}` could not be found. + File reference `{0}` could not be found. + + + + File `{0}` removed. + File `{0}` removed. + + Found more than one project in `{0}`. Specify which one to use. 在 `{0}` 中找到多個專案。請指定要使用的專案。 + + Project already has a file `{0}`. + Project already has a file `{0}`. + + Project already has a reference to `{0}`. 專案已經有 `{0}` 的參考。