我全新安裝了Windows 10 Pro全新安裝的Visual Studio 2015社區更新3,並試圖安裝TensorFlowSharp軟件包。以管理員身份運行VS,新的控制檯應用程序(沒有任何內容),安裝時出現以下錯誤。如果這是NuGet本身或我想安裝的軟件包的問題,我該如何分離?我已經卸載/重新安裝的NuGet,但錯誤是一樣的:Nuget hoiled,或包壞了?
PM> Install-Package TensorFlowSharp
Attempting to gather dependency information for package 'TensorFlowSharp.0.96.0' with respect to project 'ConsoleApplication6', targeting '.NETFramework,Version=v4.5.2'
Attempting to resolve dependencies for package 'TensorFlowSharp.0.96.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'TensorFlowSharp.0.96.0'
Resolved actions to install package 'TensorFlowSharp.0.96.0'
Adding package 'TensorFlowSharp.0.96.0' to folder 'C:\Users\roger\documents\visual studio 2015\Projects\ConsoleApplication6\packages'
Added package 'TensorFlowSharp.0.96.0' to folder 'C:\Users\roger\documents\visual studio 2015\Projects\ConsoleApplication6\packages'
Install failed. Rolling back...
Package 'TensorFlowSharp.0.96.0' does not exist in project 'ConsoleApplication6'
Removing package 'TensorFlowSharp.0.96.0' from folder 'C:\Users\roger\documents\visual studio 2015\Projects\ConsoleApplication6\packages'
Removed package 'TensorFlowSharp.0.96.0' from folder 'C:\Users\roger\documents\visual studio 2015\Projects\ConsoleApplication6\packages'
Install-Package : The attribute "CopyToOutputDirectory" in element <None> is unrecognized. C:\Users\roger\documents\visual studio
2015\Projects\ConsoleApplication6\packages\TensorFlowSharp.0.96.0\build\TensorFlowSharp.targets
At line:1 char:1
+ Install-Package TensorFlowSharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
已解決> (facepalm)右鍵單擊> vs 2015項目文件夾上的屬性,並取消選中只讀標誌。真的嗎? VS,以管理員身份運行並不重要。很少浪費60分鐘的故障排除。 – Roger
好... nuget安裝它,但現在我無法構建。當我重建時,我沒有錯誤,一個項目失敗了。當我關閉重新打開視覺stuido時,我得到元素中的屬性「CopyToOutputDirectory」無法識別 –
Roger
它依賴於System.ValueTuple Miguel擁有所有最新的玩具VS2017所需 –