ying-hui.the@windev.co.uk (31) [Avatar] Offline
#1
vs2017rc.PNG
[ 69 KB ]
been here before.. sort of.. in VS2017RC (x86) cant get LaYumba.Functional to compile. Its a fresh pull from Github.It seems to be complaining about incompatibility .NetCoreApp, Version 1.0; Have tried to get 1.1, and thought successful at getting 1.1, but ...;
How do I check which version of core is current?
Enrico Buonanno (78) [Avatar] Offline
#2
Everything has been updated to work with the RTM versions of VS2017 and the .NET Core SDK.
ying-hui.the@windev.co.uk (31) [Avatar] Offline
#3
Ok so there was a vs2017 community update. now its v15.1; framework 4.6.01586;
Still does not compile. Any ideas?
============
Severity Code Description Project File Line Suppression State
Error One or more projects are incompatible with .NETCoreApp,Version=v1.0.
Error Project Examples is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Examples supports: netcoreapp1.1 (.NETCoreApp,Version=v1.1)
Warning Detected package downgrade: Microsoft.Win32.Primitives from 4.4.0-beta-24821-01 to 4.3.0
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Net.Primitives (>= 4.3.0) -> runtime.win.System.Net.Primitives (>= 4.4.0-beta-24821-01) -> Microsoft.Win32.Primitives (>= 4.4.0-beta-24821-01)
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> Microsoft.Win32.Primitives (>= 4.3.0)
Warning Detected package downgrade: System.Security.Principal.Windows from 4.4.0-beta-24821-01 to 4.3.0
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Net.Sockets (>= 4.3.0) -> runtime.win.System.Net.Sockets (>= 4.4.0-beta-24821-01) -> System.Security.Principal.Windows (>= 4.4.0-beta-24821-01)
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Security.Principal.Windows (>= 4.3.0)
Warning Detected package downgrade: System.Net.NameResolution from 4.4.0-beta-24821-01 to 4.3.0
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Net.Sockets (>= 4.3.0) -> runtime.win.System.Net.Sockets (>= 4.4.0-beta-24821-01) -> System.Net.NameResolution (>= 4.4.0-beta-24821-01)
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Net.NameResolution (>= 4.3.0)
Warning Detected package downgrade: System.Net.Primitives from 4.4.0-beta-24821-01 to 4.3.0
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Net.Sockets (>= 4.3.0) -> runtime.win.System.Net.Sockets (>= 4.4.0-beta-24821-01) -> System.Net.Primitives (>= 4.4.0-beta-24821-01)
Examples (>= 1.0.0) -> System.Data.SqlClient (>= 4.3.0) -> System.Net.Primitives (>= 4.3.0)
Error MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.NET.Build.Tasks.LockFileCache.LoadLockFile(String path)
at Microsoft.NET.Build.Tasks.LockFileCache.GetLockFile(String path)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.get_LockFile()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ReadProjectFileDependencies()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
LaYumba.Functional C:\Users\Ying-Hui\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\build\Microsoft.PackageDependencyResolution.targets 138
Error MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.NET.Build.Tasks.LockFileCache.LoadLockFile(String path)
at Microsoft.NET.Build.Tasks.LockFileCache.GetLockFile(String path)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.get_LockFile()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ReadProjectFileDependencies()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
LaYumba.Functional.Data C:\Users\Ying-Hui\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\build\Microsoft.PackageDependencyResolution.targets 138
Error MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.NET.Build.Tasks.LockFileCache.LoadLockFile(String path)
at Microsoft.NET.Build.Tasks.LockFileCache.GetLockFile(String path)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.get_LockFile()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ReadProjectFileDependencies()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Examples C:\Users\Ying-Hui\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\build\Microsoft.PackageDependencyResolution.targets 138
Error MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at NuGet.ProjectModel.LockFileUtilities.GetLockFile(String lockFilePath, ILogger logger)
at Microsoft.NET.Build.Tasks.LockFileCache.LoadLockFile(String path)
at Microsoft.NET.Build.Tasks.LockFileCache.GetLockFile(String path)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.get_LockFile()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ReadProjectFileDependencies()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Exercises C:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 154
Warning A PackageReference for 'Microsoft.NETCore.App' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs Exercises C:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.DefaultItems.targets 101
Error Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Chapter01\Exercises.cs'; 'Chapter01\Solutions.cs'; 'Chapter02\Exercises.cs'; 'Chapter02\Solutions.cs'; 'Chapter03\Exercises.cs'; 'Chapter03\Solutions.cs'; 'Chapter04\Exercises.cs'; 'Chapter04\Person.cs'; 'Chapter04\Solutions.cs'; 'Chapter05\Exercises.cs'; 'Chapter05\Solutions.cs'; 'Chapter06\Exercises.cs'; 'Chapter06\Solutions.cs'; 'Chapter07\Exercises.cs'; 'Chapter07\Solutions.cs'; 'Chapter09\Exercises.cs'; 'Chapter09\Solutions.cs'; 'Program.cs'; 'Properties\AssemblyInfo.cs' Exercises C:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.DefaultItems.targets 165
Enrico Buonanno (78) [Avatar] Offline
#4
I can't say for sure, but I don't think it has to do with the update.

The project uses .NET Core 1.1; your error says that it only knows about 1.0.
Maybe you need to install .NET Core 1.1
Maybe you have some issues with cached packages.

My advice is to
- delete and restore everything,
- follow the instructions on the readme on github to the letter, and use the command line to restore/build,
- once you get that working, you can start to look into whether/why it works or not with VS
ying-hui.the@windev.co.uk (31) [Avatar] Offline
#5
yes I saw the 1.0 reference, but when it was upgrading just now it said something about core 1.1. ... its just so difficult to locate in the sea of stuff what is wrong. will have a go at doing what you said.
ying-hui.the@windev.co.uk (31) [Avatar] Offline
#6
in which window do I type?

$ git clone git@github.com:la-yumba/functional-csharp-code.git
$ cd functional-csharp-code
$ dotnet restore