Hello Guest

Author Topic: Missing otter.dll  (Read 57445 times)

0 Members and 1 Guest are viewing this topic.

Brendyn_Todd

  • Member
  • Posts: 5
    • View Profile
Missing otter.dll
« on: March 19, 2014, 02:49:19 PM »
I've just recently started a new project but when I try to run the project I get a missing file error, it tells me it can't find the "Otter.dll" file. I've looked and its not in the "Otter" folder.

Kyle

  • Administrator
  • Member
  • Posts: 258
    • View Profile
Re: Missing otter.dll
« Reply #1 on: March 21, 2014, 11:30:45 AM »
Is your solution building the Otter project before it builds the game?

ericmbernier

  • Member
  • Posts: 35
  • Sometimes I make games.
    • View Profile
Re: Missing otter.dll
« Reply #2 on: March 22, 2014, 06:30:45 AM »
Did you also add the reference to the Otter project in your game's project?

Brendyn_Todd

  • Member
  • Posts: 5
    • View Profile
Re: Missing otter.dll
« Reply #3 on: March 22, 2014, 05:22:25 PM »
Not sure how to tell, just recently started using Visual Studio 2010. If the game is below the otter solution will it run before it? And yes I have referenced it.

ericmbernier

  • Member
  • Posts: 35
  • Sometimes I make games.
    • View Profile
Re: Missing otter.dll
« Reply #4 on: March 23, 2014, 10:28:30 AM »
If you added a reference to the Otter project then Visual Studio should create a dependence in your game's project on the Otter project, meaning it will be built first. It sounds like this isn't happening.

I guess the first thing to do is to make sure that the Otter project is actually being built. Right-click your solution in VS2010 and go to Configuration Properties, ensuring that both your game project and Otter are checked:



Second, make sure that your game project has a dependency on Otter, assuming you did indeed add a reference to Otter already:



Hopefully one of these two issues solves your problem. If not, I can take a look at your actual project/solution.

Brendyn_Todd

  • Member
  • Posts: 5
    • View Profile
Re: Missing otter.dll
« Reply #5 on: March 25, 2014, 11:56:27 AM »
I've checked the build order and Otter is at the top, I've google searched how to change this but it will not change.

Fruckert

  • Member
  • Posts: 60
  • Total Square
    • View Profile
Re: Missing otter.dll
« Reply #6 on: March 25, 2014, 01:10:41 PM »
In your project in the solution explorer, go to references and then highlight the Otter reference.
In the Properties pane, is "Copy Local" set to true, or false?


I'm using VS2012, but I believe VS2010 functions the same way.

Brendyn_Todd

  • Member
  • Posts: 5
    • View Profile
Re: Missing otter.dll
« Reply #7 on: March 25, 2014, 01:19:52 PM »
"Copy Local" is true

Fruckert

  • Member
  • Posts: 60
  • Total Square
    • View Profile
Re: Missing otter.dll
« Reply #8 on: March 25, 2014, 01:30:38 PM »
Is Visual Studio throwing any errors or warnings during a build attempt other than "missing DLL"?
Otter might not actually be building, which visual studio might be ignoring, causing you to not have a DLL to actually reference.

I do recommend you upload the project, though, this is one mystifying problem.

Brendyn_Todd

  • Member
  • Posts: 5
    • View Profile
Re: Missing otter.dll
« Reply #9 on: March 25, 2014, 02:53:34 PM »
Just these two errors.

Error   5   Metadata file 'C:\Users\brendyn\Desktop\C#\Otter\bin\Debug\Otter.dll' could not be found   Project1

Error   6   Could not copy the file "C:\Users\brendyn\Desktop\C#\Otter\@(Libs)" because it was not found.   Otter

ericmbernier

  • Member
  • Posts: 35
  • Sometimes I make games.
    • View Profile
Re: Missing otter.dll
« Reply #10 on: March 25, 2014, 04:41:33 PM »
What happens when you comment these lines out in your csproj file, like so:

<!--
  <ItemGroup>
    <None Include="@(Libs)">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>
-->

This @(Libs) tag gave me trouble when I was trying to compile on OS X as well. I haven't updated my proj file on Windows, so I can't say I've had the same issues.