Giter Site home page Giter Site logo

Comments (6)

benruehl avatar benruehl commented on May 22, 2024

FileNotFoundException: Could not load file or assembly 'C:\Users\pub\Downloads\Okami.dll'. The system cannot find the file specified.

This part surprises me. AdonisWindow looks for the icon in Assembly.GetEntryAssembly() which seems to return 'C:\Users\pub\Downloads\Okami.dll' for you. I would expect the entry to be an .exe file.

What does your application structure look like? Does your application only constist of this Okami.dll? Is there an additional .exe assembly involved? How do they relate? Did you start your app via unmanaged code?

from adonis-ui.

Swiftpaws avatar Swiftpaws commented on May 22, 2024

Implementing AdonisWindow

\AdonisWindowIcon_Bug\Demo\Demo> .\bin\Debug\netcoreapp3.1\Demo.exe
-> Does not start

AdonisWindowIcon_Bug\Demo\Demo\bin\Debug\netcoreapp3.1> .\Demo.exe
-> Works

Implementing only Window

-> Both work

I have created a test app here -> https://github.com/Swiftpaws/AdonisWindowIcon_Bug

from adonis-ui.

benruehl avatar benruehl commented on May 22, 2024

Could you please explain what you mean with > . in you paths?
I downloaded your demo and for me it runs perfectly. But I am not sure what the difference in those two paths is that you mentioned.

from adonis-ui.

Swiftpaws avatar Swiftpaws commented on May 22, 2024

They are command line calls

image

The first command does not work while the second one does.
The difference is the current directory - if the current directory (of the command line) is the same as the .exe it can launch if that is not the case it will not launch

from adonis-ui.

benruehl avatar benruehl commented on May 22, 2024

Oh now I see. Sorry it took me so long to understand what you meant.
I am now able to reproduce the issue and working on a fix.

from adonis-ui.

benruehl avatar benruehl commented on May 22, 2024

I created a PR which solves the issue. At least it works for your demo project. Before merging you can check if it works for your original project as well if you want.

from adonis-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.