Click here to Skip to main content
15,887,416 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Aoa
How to fix it ?
I make a desktop application using c#
When i publish it and run it give me a error "bunifu assembly missing" but when i compile it in visual studio it runs perfectly no error occured . But why error occured on after install & run.

What I have tried:

I tried to solve it with changing the reference but its not work.
Posted
Updated 21-Jan-22 21:42pm
Comments
George Swan 22-Jan-22 5:20am    
Try down loading and installing the NuGet package Bunifu.Ui into your project.

1 solution

We can't tell exactly, because we have no idea what your code does, how it does it, or what the two systems involved look like - but at a guess from the error message at least one assembly that the app requires is not installed on the target machine - possibly called "bunifu" but you'd have to look closely at the whole error to find out.

If it's the Bunifu framework, then you have "released" your software all you did was send the EXE file to another machine - and that doesn't include any assemblies that it references because that's not how C# EXE files work - they reference external DLL files so that those don't have to be installed for each new EXE files, exactly the same way that your app uses .NET assemblies for List, Process, Stopwatch and suchlike without needed to include all 500MB or more of .NET in the exe itself!

Release your code using a installer program and it should make sure all the dependencies are included in the package and installed as required. Start with adding Deployment Project to your solution and see if that improves things!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900