C
C#11mo ago
Mekasu0124

✅ ✅ User's required to have .NET installed when launching application???

https://github.com/mekasu0124/Todo I created my own Todo application, and using Visual Studio to build the executables. I clicked the Build tab at the top and then selected Publish Selection. Through the onscreen prompts, I selected the target to be a folder, then the specific target to be a folder, and for the location, I selected the Todo apps entire project folder and created a Builds folder, and created a Windows folder and clicked Ok. Once the profile was made, I then clicked to rename the profile to Windows, and then clicked to edit the profile then clicked save. I then click the publish button and it creates 2 .dll files, the .exe file and a .pdb file in the target directory. I packed put all 4 of these files into a compressed folder and sent it to a friend so that they could test my app and provide feedback. When the launched the application via the executable, the following occurred. I have provided screenshots to show what I mean incase my wording doesn't make sense. https://imgur.com/a/T8COnR8 1. Windows Defender triggers. Upon my own testing, this only happens on the first launch of the application, and you have to click more info and run anyway. 2. After doing #1, it then popped up and said that they didn't have .NET installed on their computer so they couldn't run the application. my questions are: 1. How do I get Windows Defender to not trigger like that 2. How do I negate them having to download .NET or is that something I can have install with the program so that any user who uses my application doens't have to worry about it?
12 Replies
Jimmacle
Jimmacle11mo ago
i don't know much about #1 but afaik you either need to sign the application or just get enough people to use it that smartscreen starts being ok with it for 2 you either build your app as self-contained (which will make it several hundred MB) or build a proper installer that can install .NET if it isn't there already
Mekasu0124
Mekasu012411mo ago
with doing self-contained, do I need to check ready to run and trim unused code?
Jimmacle
Jimmacle11mo ago
they are unrelated options afaik trimming will help with the size
Mekasu0124
Mekasu012411mo ago
ok bet. So with me already having .NET installed on my computer, is there a way I can test it to see if self-contained fixes the need for .NET without having to uninstall .NET from my computer?
Jimmacle
Jimmacle11mo ago
you don't need to test it, it solves the problem
Mekasu0124
Mekasu012411mo ago
ok thank you a lot !
Jimmacle
Jimmacle11mo ago
otherwise yes you'd need a computer without a global .NET install
Mekasu0124
Mekasu012411mo ago
ok cool. again, thank you ❤️ the accord bot still won't respond to me when I tell it to /close the thread. I have zero idea why ok so I changed it to self-contained, and selected to trim unecessary code, and now the executable won't run at all
Jimmacle
Jimmacle11mo ago
it's possible you're doing something that trimming breaks, try turning that off
Mekasu0124
Mekasu012411mo ago
that fixed it. Thank you. are you able to close this thread?
Jimmacle
Jimmacle11mo ago
bot might be broken, don't worry about it
Accord
Accord11mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts