Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

'dotnet migrate' failure - error code -532462766. #47

@marianjuhas

Description

@marianjuhas

Steps to reproduce

Hi, I am trying to migrate older project created in VS15 by running the command:
dotnet migrate --skip-backup -s -x "c:\SRC\IT\Approvals\AdminPortal\Approvals\Approvals.xproj" "c:\SRC\IT\Approvals\AdminPortal\Approvals\project.json" --format-report-file-json

Any ideas would be appreciated. Thank you

Actual behavior

First I get the error message saying "dotnet has stoped working" with error message in the console:

c:\SRC\IT\Approvals\AdminPortal>dotnet migrate --skip-backup -s -x "c:\SRC\IT\Approvals\AdminPortal\Approvals\Approvals.xproj" "c:\SRC\IT\Approvals\AdminPortal\Approvals\project.json" --format-report-file-json
Migration failed.

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: folderName
at NuGet.Frameworks.NuGetFramework.Parse(String folderName, IFrameworkNameProvider mappings)
at NuGet.Frameworks.NuGetFramework.Parse(String folderName)
at Microsoft.DotNet.Internal.ProjectModel.Resolution.ProjectDependencyProvider.GetDescription(String name, String path, LockFileTargetLibrary targetLibrary, Func2 projectCacheResolver) at Microsoft.DotNet.Internal.ProjectModel.ProjectContextBuilder.ScanLibraries(LockFileTarget target, LockFileLookup lockFileLookup, Dictionary2 libraries, MSBuildDependencyProvider msbuildResolver, PackageDependencyProvider packageResolver, ProjectDependencyProvider projectResolver)
at Microsoft.DotNet.Internal.ProjectModel.ProjectContextBuilder.Build()
at Microsoft.DotNet.Internal.ProjectModel.ProjectContext.d__45.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Microsoft.DotNet.ProjectJsonMigration.ProjectMigrator.ComputeMigrationRuleInputs(MigrationSettings migrationSettings)
at Microsoft.DotNet.ProjectJsonMigration.ProjectMigrator.Migrate(MigrationSettings rootSettings, Boolean skipProjectReferences)
at Microsoft.DotNet.Tools.Migrate.MigrateCommand.Execute()
at Microsoft.DotNet.Tools.Migrate.MigrateCommand.<>c__DisplayClass35_0.b__0()
at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
at Microsoft.DotNet.Tools.Migrate.MigrateCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)

Environment data

dotnet --info output:
.NET Command Line Tools (1.1.0)

Product Information:
Version: 1.1.0
Commit SHA-1 hash: d6f4336106

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions