astenlund / fs2ff

A utility that connects Microsoft Flight Simulator 2020 with ForeFlight, Sky Demon, Garmin Pilot, FlyQ EFB, and probably a few more EFB apps
The Unlicense
123 stars 19 forks source link

Unable to build... #94

Open ApplicationError opened 1 year ago

ApplicationError commented 1 year ago

Curious, does anyone know how to resolve these?

Severity Code Description Project File Line Suppression State Error CS0234 The type or namespace name 'FlightSimulator' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 9 Active Error CS0234 The type or namespace name 'FlightSimulator' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 10 Active Error CS0246 The type or namespace name 'SIMCONNECT_DATATYPE' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 74 Active Error CS0103 The name 'SIMCONNECT_DATATYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 74 Active Error CS0246 The type or namespace name 'SIMCONNECT_RECV_EVENT_OBJECT_ADDREMOVE' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 145 Active Error CS0246 The type or namespace name 'SIMCONNECT_RECV_EXCEPTION' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 161 Active Error CS0246 The type or namespace name 'SIMCONNECT_RECV' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 167 Active Error CS0246 The type or namespace name 'SIMCONNECT_RECV' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 187 Active Error CS0246 The type or namespace name 'SIMCONNECT_RECV_SIMOBJECT_DATA' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 192 Active Error CS0246 The type or namespace name 'SIMCONNECT_RECV_SIMOBJECT_DATA_BYTYPE' could not be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 217 Active Error CS0019 Operator '!=' cannot be applied to operands of type 'FlightSimulator.SimConnect.SimConnect?' and '' fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 27 Active Error CS0103 The name 'SIMCONNECT_DATATYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 118 Active Error CS0103 The name 'SIMCONNECT_DATATYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 121 Active Error CS0103 The name 'SIMCONNECT_DATATYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 122 Active Error CS0103 The name 'SIMCONNECT_DATATYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 123 Active Error CS0103 The name 'SIMCONNECT_PERIOD' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 135 Active Error CS0103 The name 'SIMCONNECT_DATA_REQUEST_FLAG' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 136 Active Error CS0103 The name 'SIMCONNECT_SIMOBJECT_TYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 148 Active Error CS0103 The name 'SIMCONNECT_SIMOBJECT_TYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 149 Active Error CS0103 The name 'SIMCONNECT_PERIOD' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 155 Active Error CS0103 The name 'SIMCONNECT_DATA_REQUEST_FLAG' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 156 Active Error CS0103 The name 'SIMCONNECT_PERIOD' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 176 Active Error CS0103 The name 'SIMCONNECT_DATA_REQUEST_FLAG' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 177 Active Error CS0103 The name 'SIMCONNECT_SIMOBJECT_TYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 180 Active Error CS0103 The name 'SIMCONNECT_SIMOBJECT_TYPE' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 181 Active Error CS0103 The name 'SIMCONNECT_PERIOD' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 227 Active Error CS0103 The name 'SIMCONNECT_DATA_REQUEST_FLAG' does not exist in the current context fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 228 Active Error CS0019 Operator '!=' cannot be applied to operands of type 'FlightSimulator.SimConnect.SimConnect?' and '' fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 235 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvOpen' and no accessible extension method 'OnRecvOpen' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 237 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvQuit' and no accessible extension method 'OnRecvQuit' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 238 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvException' and no accessible extension method 'OnRecvException' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 239 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvSimobjectData' and no accessible extension method 'OnRecvSimobjectData' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 240 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvSimobjectDataBytype' and no accessible extension method 'OnRecvSimobjectDataBytype' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 241 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvEventObjectAddremove' and no accessible extension method 'OnRecvEventObjectAddremove' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 242 Active Error CS0019 Operator '!=' cannot be applied to operands of type 'FlightSimulator.SimConnect.SimConnect?' and '' fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 248 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvEventObjectAddremove' and no accessible extension method 'OnRecvEventObjectAddremove' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 250 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvSimobjectDataBytype' and no accessible extension method 'OnRecvSimobjectDataBytype' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 251 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvSimobjectData' and no accessible extension method 'OnRecvSimobjectData' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 252 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvException' and no accessible extension method 'OnRecvException' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 253 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvQuit' and no accessible extension method 'OnRecvQuit' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 254 Active Error CS1061 'FlightSimulator.SimConnect.SimConnect?' does not contain a definition for 'OnRecvOpen' and no accessible extension method 'OnRecvOpen' accepting a first argument of type 'FlightSimulator.SimConnect.SimConnect?' could be found (are you missing a using directive or an assembly reference?) fs2ff C:\Users\me\source\repos\fs2ff\SimConnect\SimConnectAdapter.cs 255 Active Warning NU1505 Duplicate 'PackageDownload' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageDownload' items are: Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.32], Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.32], Microsoft.WindowsDesktop.App.Runtime.win-x64 [3.1.32]. fs2ff C:\Users\me\source\repos\fs2ff\fs2ff.csproj 1

jeffdamp-wave commented 1 year ago

You can get the dll from the msfs2020 sdk.

ApplicationError commented 1 year ago

You can get the dll from the msfs2020 sdk.

Thank you for making time to reply and help.

I thought I had the right DLLs in the "lib" directory.

C:\Users\me\source\repos\fs2ff\lib\Microsoft.FlightSimulator.SimConnect.dll C:\Users\me\source\repos\fs2ff\lib\SimConnect.dll C:\Users\me\source\repos\fs2ff\lib\

There are others?

jeffdamp-wave commented 1 year ago

Hmm check to make sure Microsoft.FlightSimulator.SimConnect.dll is correctly referenced in your project you can try my branch too here https://github.com/jeffdamp-wave/fs2ff

ApplicationError commented 1 year ago

Hmm check to make sure Microsoft.FlightSimulator.SimConnect.dll is correctly referenced in your project you can try my branch too here https://github.com/jeffdamp-wave/fs2ff

Thanks for your quick reply.

I downloaded some other DLL files it was complaining about. Still having issues.

Do you know any builds/projects that allow the editing of the SimId sting/value? -- to allow tracking of different PCs. etc.

jeffdamp-wave commented 1 year ago

Been a long time since I looked and at the time no... You can check https://devsupport.flightsimulator.com/ and see if any progress has been made. This is what I have in my lib folder: image

project is X64

ApplicationError commented 1 year ago

Gotcha.

I got those files in there now.

Getting this now...

image