无法在MAC OS上安装ML.NET(项目不支持DotnetTool)

时间:2019-12-09 09:27:56

标签: c# rider ml.net

我正在尝试使用mlnet 0.15.110.14.6在Mac OS Rider(Mojave)上安装.Net Framework v4.7.2,但仍然收到错误消息,提示{{ 1}}不受项目支持。

是什么意思?

使用.NetCore的完整日志:

DotnetTool

使用.NetFramework的完整日志:

Credential provider preference: Rider
Start restoring packages for solution
@ Restoring packages in solution horczechTryingStuff started
@   RestorePackagesConfig: Start
@   There are no packages in solution
@   RestorePackagesConfig: Finish
@   RestorePackageReferences: Start
@   Restoring NuGet packages for integrated projects: start
@   RestoreEngine = Embedded
Running non-parallel restore.
Reading project file /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj.
Persisting no-op dg to /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/obj/horczechTryingStuff.csproj.nuget.dgspec.json
Restoring packages for /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj...
Restoring packages for .NETCoreApp,Version=v2.1...
Resolving conflicts for .NETCoreApp,Version=v2.1...
Checking compatibility of packages on .NETCoreApp,Version=v2.1.
All packages and projects are compatible with .NETCoreApp,Version=v2.1.
Committing restore...
Generating MSBuild file /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/obj/horczechTryingStuff.csproj.nuget.g.props.
Generating MSBuild file /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/obj/horczechTryingStuff.csproj.nuget.g.targets.
Writing assets file to disk. Path: /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/obj/project.assets.json
Writing cache file to disk. Path: /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/obj/horczechTryingStuff.csproj.nuget.cache
Restore completed in 355.29 ms for /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj.
@   Restoring NuGet packages for integrated projects: finish
@   RestorePackageReferences: Finish
@   Restore result: Affected projects: horczechTryingStuff; Affected packages folders: /Users/horczech/.nuget/packages
@ Restoring packages in solution horczechTryingStuff finished (0.422 sec)
Finish restoring packages for solution
@ Installing mlnet in horczechTryingStuff started
Running non-parallel restore.
Reading project file /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj.
Persisting no-op dg to /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/obj/horczechTryingStuff.csproj.nuget.dgspec.json
Restoring packages for /Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj...
Restoring packages for .NETCoreApp,Version=v2.1...
Resolving conflicts for .NETCoreApp,Version=v2.1...
Checking compatibility of packages on .NETCoreApp,Version=v2.1.
Package mlnet 0.15.1 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package mlnet 0.15.1 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) / any
Invalid project-package combination for mlnet 0.15.1. DotnetToolReference project style can only contain references of the DotnetTool type 
Package 'mlnet 0.15.1' has a package type 'DotnetTool' that is not supported by project '/Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj'.
NuGet.Packaging.Core.PackagingException: Package 'mlnet 0.15.1' has a package type 'DotnetTool' that is not supported by project '/Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj'.
  at JetBrains.ProjectModel.NuGet.Operations.NuGetPatchedInstallationCompatibility.EnsurePackageCompatibility (NuGet.ProjectManagement.NuGetProject nuGetProject, NuGet.Packaging.Core.PackageIdentity packageIdentity, NuGet.Packaging.NuspecReader nuspecReader) [0x000de] in <9e74cc1509e64004872b83a95141bc23>:0 
  at JetBrains.ProjectModel.NuGet.Operations.NuGetPatchedInstallationCompatibility.EnsurePackageCompatibility (NuGet.ProjectManagement.NuGetProject nuGetProject, NuGet.Common.INuGetPathContext pathContext, System.Collections.Generic.IEnumerable`1[T] nuGetProjectActions, NuGet.Commands.RestoreResult restoreResult) [0x00140] in <9e74cc1509e64004872b83a95141bc23>:0 
  at NuGet.PackageManagement.NuGetPackageManager.PreviewBuildIntegratedProjectActionsAsync (NuGet.ProjectManagement.Projects.BuildIntegratedNuGetProject buildIntegratedProject, System.Collections.Generic.IEnumerable`1[T] nuGetProjectActions, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext, System.Threading.CancellationToken token) [0x00827] in <71c0d022d372446180b5b43080e43ac4>:0 
  at NuGet.PackageManagement.NuGetPackageManager.PreviewInstallPackageAsync (NuGet.ProjectManagement.NuGetProject nuGetProject, NuGet.Packaging.Core.PackageIdentity packageIdentity, NuGet.PackageManagement.ResolutionContext resolutionContext, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext, System.Collections.Generic.IEnumerable`1[T] primarySources, System.Collections.Generic.IEnumerable`1[T] secondarySources, System.Threading.CancellationToken token) [0x001d7] in <71c0d022d372446180b5b43080e43ac4>:0 
  at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync (NuGet.ProjectManagement.NuGetProject nuGetProject, NuGet.Packaging.Core.PackageIdentity packageIdentity, NuGet.PackageManagement.ResolutionContext resolutionContext, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext, NuGet.Protocol.Core.Types.PackageDownloadContext downloadContext, System.Collections.Generic.IEnumerable`1[T] primarySources, System.Collections.Generic.IEnumerable`1[T] secondarySources, System.Threading.CancellationToken token) [0x0009b] in <71c0d022d372446180b5b43080e43ac4>:0 
  at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync (NuGet.ProjectManagement.NuGetProject nuGetProject, NuGet.Packaging.Core.PackageIdentity packageIdentity, NuGet.PackageManagement.ResolutionContext resolutionContext, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext, System.Collections.Generic.IEnumerable`1[T] primarySources, System.Collections.Generic.IEnumerable`1[T] secondarySources, System.Threading.CancellationToken token) [0x000d3] in <71c0d022d372446180b5b43080e43ac4>:0 
  at JetBrains.ProjectModel.NuGet.Operations.NuGetInstallOperation+<>c__DisplayClass5_0.<InstallAsync>b__0 (NuGet.ProjectManagement.NuGetProject nuGetProject, System.Threading.CancellationToken token) [0x000a5] in <9e74cc1509e64004872b83a95141bc23>:0 
  at JetBrains.ProjectModel.NuGet.Operations.NuGetInstallOperation.InstallInternal (JetBrains.ProjectModel.IProject project, System.String packageId, System.String packgeUserStr, JetBrains.ProjectModel.NuGet.Configs.NuGetFeedContext feedContext, System.Int32 nestedLevel, JetBrains.ProjectModel.NuGet.Logging.NuGetNotificationMode mode, JetBrains.ProjectModel.NuGet.Operations.NuGetOperationReporter reporter, System.Func`3[T1,T2,TResult] nativeInstall) [0x003e6] in <9e74cc1509e64004872b83a95141bc23>:0 

@ Installing mlnet in horczechTryingStuff finished (0.281 sec)
[Notification][Install] Install failed (project: horczechTryingStuff, package: mlnet v0.15.1)
Package 'mlnet 0.15.1' has a package type 'DotnetTool' that is not supported by project '/Users/horczech/Csharp/Playground/horczechTryingStuff/horczechTryingStuff/horczechTryingStuff.csproj'.

0 个答案:

没有答案