You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
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:
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)
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, Func
2 projectCacheResolver) at Microsoft.DotNet.Internal.ProjectModel.ProjectContextBuilder.ScanLibraries(LockFileTarget target, LockFileLookup lockFileLookup, Dictionary
2 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.List
1..ctor(IEnumerable
1 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
The text was updated successfully, but these errors were encountered: