leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
275 stars 52 forks source link

build error #509

Closed kmsimproject closed 4 years ago

kmsimproject commented 4 years ago

Description

Please describe the issue you are experiencing.

Severity Code Description Project File Line Non-Display Status
Warning Unable to find referenced component 'SharpCompress'.    Object.Msts         
Error CS0246 'CSScriptLibrary' format or namespace name not found. Check if there is a using directive or assembly reference.   OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\ObjectTypes\AnimatedObject.cs 3 Active
Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 9 Active
Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 10 Active
Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 11 Active
Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 12 Active
Error CS0246 'ValueTuple<,>' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\System\Hosts.cs 465 Active
Error CS0246 'Ude' format or namespace name not found. Check if there is a using directive or assembly reference.   OpenBveApi D:\Comparison\KM Sim Project\OpenBVE-master\source\OpenBveApi\System\TextEncoding.cs 2 Active
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. AssimpParser            
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. LibRender2          
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. SoundManager            
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Animated         
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. Object.CsvB3d           
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. Object.DirectX          
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. Object.LokSim           
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Msts         
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Wavefront            
Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use  <UsingTask> in the tasks file to verify that the job is declared correctly.

Please tell me how to solve this problem.

Reproduction

If the issue occurs in multiple routes/ trains, please provide one or two samples. In order to reproduce the issue and debug it, it's helpful to have the following:

Route

Please provide a link to where the route may be downloaded.

Train

Please provide a link to the train may be downloaded.

Logs

Logs may be accessed through the 'Report Problem' button on the bottom left of the screen. Please provide a log, and a crash-log if the game actually crashes.

Related information

leezer3 commented 4 years ago

You need to run a nuget restore on the solution first in order to pull in the external dependancies. https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore

I'm a little surprised it didn't do this automatically though. AppVeyor is passing on VS2017, which suggests the issue is likely at your end; Have you turned off NuGet / a missing internet connection?