Ошибка «Путь не имеет юридической формы» при выполнении пакета nuget - PullRequest
0 голосов
/ 30 октября 2018

Я пытаюсь создать пакет Nuget для своего решения, сделанный на c #, также у этого есть много проектов для этого решения.

Я запускаю этот скрипт

.\nuget.exe pack PrincipalSolution.csproj -IncludeReferencedProjects -Build -Force -Properties "Configuration=Debug;Platform=x64" -Verbosity "detailed"

но у меня есть эта ошибка на консоли диспетчера пакетов

System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
   at NuGet.CommandLine.ProjectFactory.GetFiles(String path, ISet`1 fileNames, SearchOption searchOption)
   at NuGet.CommandLine.ProjectFactory.AddOutputFiles(PackageBuilder builder)
   at NuGet.CommandLine.ProjectFactory.RecursivelyApply(Action`1 action, Object alreadyAppliedProjects)
   at NuGet.CommandLine.ProjectFactory.RecursivelyApply(Action`1 action, Object alreadyAppliedProjects)
   at NuGet.CommandLine.ProjectFactory.RecursivelyApply(Action`1 action)
   at NuGet.CommandLine.ProjectFactory.CreateBuilder(String basePath, NuGetVersion version, String suffix, Boolean buildIfNeeded, PackageBuilder builder)
   at NuGet.Commands.PackCommandRunner.BuildFromProjectFile(String path)
   at NuGet.Commands.PackCommandRunner.BuildPackage()
   at NuGet.CommandLine.PackCommand.ExecuteCommand()
   at NuGet.CommandLine.Command.ExecuteCommandAsync()
   at NuGet.CommandLine.Command.Execute()
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)

В моем проекте нет неработающей ссылки. Есть ли что-то еще, что я должен проверить или объединить?

Спасибо

...