• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Do .net simconnect based applications must use .net framework 4.7.2?

Messages
25
Country
israel
Initially i tried building my application using wpf .net 7.0. I ran into all kinds of trouble that were just gone when i switched to 4.7.2 as the documentation suggests.
Is it only suppprted on the older .net framework env?
I saw projects in github that *seem* to use newer versions.
 
Messages
25
Country
israel
So that is only up to 4.8.
5.0 is already Core, right? Although they dropped the branding.
 
Messages
61
Country
us-newyork
I've used FW 4.8.x, .NET 5 and 6. FW is stuck on a pretty old version of C# so I'm not really sure why anyone would use it (except for a library).
 
Messages
25
Country
israel
Ok, I verified it works with 7.0 even.
Are there any benefits or cons to writing a wpf standalone desktop application in .Net6 or 7 rather than framework?
Forgive me for these newbie questions, I am not coming from the ms world.
 

DragonflightDesign

Resource contributor
Messages
975
Country
northernireland
None at all. It still has to go through SimConnect.

@MaxPaperno : for some reason Net Core 6.0 on VS2022 would not let me build a WinForms or a console front end. I nuked it, reinstalled it and gave up in disgust, reverting to VS2019.
 
Messages
61
Country
us-newyork
Hey, sorry, didn't notice the @ mention.

TBH I know next to nothing about WinForms, or WPF for that matter. I only play in the "MS world" when I absolutely must... :)

A console app on .NET 6/VS2022 definitely works though. Here's a somewhat minimal project file for one.

XML:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>disable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <ErrorReport>none</ErrorReport>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Runtime" Version="4.3.0" />
  </ItemGroup>
</Project>

Best,
-Max
 

DragonflightDesign

Resource contributor
Messages
975
Country
northernireland
I definately know nothing about WPF, except that I've always considered it to be an answer in search of a question!
 
Messages
25
Country
israel
I tried again and succeeded with Net 7 too. But I found out that people don't have the runtimes installed, and I resorted back to 4.7.2 which is included on any Win 10 that was updated in 2018... Even 4.8/4.8.1 were only pushed by MS in later updates to win 11 only.
I don't want to deal with installing the framework for users.
 
Top