Giter Club home page Giter Club logo

Comments (8)

Wunkolo avatar Wunkolo commented on June 18, 2024

When an application is being ran from visual studio its current directory is set to that of the current startup project and not the location of the build directory. Osiris Launcher and Osiris.dll are built into their own directories before being moved to the solution's build folder. You must run Osiris Launcher.exe from the build directory which would be in x64/Debug based on that screenshot and there you will find the .exe and the .dll next to each other

from osiris.

Limited55 avatar Limited55 commented on June 18, 2024

As a side note, the error actually provides some detail: DLL file: C:\Users\Cole Mickens\Code\colemickens\Osiris\Osiris Launcher\Osiris.dll does not exists

from osiris.

colemickens avatar colemickens commented on June 18, 2024

Right. I just feel like there ought to be a way to make F5 work in this case with VS. I'll try sometime later this week to make it work.

from osiris.

Wunkolo avatar Wunkolo commented on June 18, 2024

This issue has been fixed in the latest build (since commit 00cf80a) and the launcher will now determine the dll is next to the launcher right from visual studio (if you build from the solution file)

from osiris.

colemickens avatar colemickens commented on June 18, 2024

The projects in VS are still not setup right. The launcher doesn't automatically build the Osiris project and doesn't properly cross reference the DLL. It's probably easier to set it up correctly than it is to have to copy around a DLL and remember to build the project manually when it's dirty...

from osiris.

colemickens avatar colemickens commented on June 18, 2024

If I make Osiris Launcher depend on the Osiris project, it causes it to be built properly, but then I get an Error about not being able to access Osiris.lib for some reason. (Though tbh, even when it works, I can't tell what injecting the Osiris DLL even does... I'm a noob I guess)

from osiris.

Wunkolo avatar Wunkolo commented on June 18, 2024

You need to be opening the solution(.sln) file and building from there as the individual project files are isolated environments for the dll and exe separately and their build environments will not find each other while the solution files puts them both into the same x64/Release or x64/Debug directory upon building. The launcher simply injects the DLL into the running process and is the only binary that can be debugged directly from Visual Studio.

from osiris.

colemickens avatar colemickens commented on June 18, 2024

Yeah... the problem I'm having is that there is not a proper dependency set between the launcher and the DLL.

  1. Clean solution.
  2. Right click Osiris Launcher and then hit Debug -> Start

It fails because running Osiris Launcher didn't trigger a build of the dependent project Osiris.

I figured it out for now, I have to manually build the solution. Thanks for helping me!

from osiris.

Related Issues (12)

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.