csharp-game-launcher icon indicating copy to clipboard operation
csharp-game-launcher copied to clipboard

Detected by Windows Defender

Open warriorCavt opened this issue 10 months ago • 1 comments

Apparently, the System.Net library is really common in Trojans. Thus, publishing my launcher causes all the people to get the 'Threats found' notification and can not run it.

Also, what .NET WPF version to choose, so almost no one wouldn't need to install it?

I'm using 7zip program (a folder '.res' in the build folder) to unpack the .7z files downloaded, instead of .zip (I'm using Discord as hosting game, and pastebin to host versions).

Also, I' using Costura.Fody to smaller the number of files, I'm also hiding all except .exe files (to make it easier for less tech-saavy people to launch the proper file) before packing into zip and sending via my game's Discord.

I'm going to fork this project and publish a better version of the launcher, when this is fixed. It will include:

  • Changelogs
  • Other folder name than 'Builds'
  • JSON Version history (+ download) like Minecraft (you will be able to disable it)
  • Dedicated editor for the version JSON file (+ project of it)
  • Building for multiple platforms automation + publishing-to-discord-and-launcher automation in a python script that will be run after all platforms built

Version file will look like this if I don't use JSON (it works by separating strings by "\r\n":

[version in string]
[link to the archive with the game]
[archive filename]
[changelog in next lines]
<!nv> (version separator)

warriorCavt avatar Apr 04 '24 06:04 warriorCavt

Apparently, the System.Net library is really common in Trojans. Thus, publishing my launcher causes all the people to get the 'Threats found' notification and can not run it.

I think the main problem is that the application is not signed. If you get a code signing certificate I believe it stops this popup, though I think it costs money to acquire one.

Also, what .NET WPF version to choose, so almost no one wouldn't need to install it?

.NET Framework, as I think that's preinstalled on all Windows machines. Or if you use .NET Core, you can include .NET Core in the launcher files (via the publishing settings)—this will avoid users having to install it separately/manually, but will somewhat increase the launcher install size.

tom-weiland avatar Apr 04 '24 18:04 tom-weiland