Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build... #94

Open
ApplicationError opened this issue Aug 3, 2023 · 6 comments
Open

Unable to build... #94

ApplicationError opened this issue Aug 3, 2023 · 6 comments

Comments

@ApplicationError
Copy link

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
Copy link

You can get the dll from the msfs2020 sdk.

@ApplicationError
Copy link
Author

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
Copy link

jeffdamp-wave commented Aug 6, 2023

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
Copy link
Author

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
Copy link

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
Copy link
Author

Gotcha.

I got those files in there now.

Getting this now...

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants