Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Etg.SimpleStubs Missing Reference #9

@Darren996

Description

@Darren996

Hi,

I'm using VS 2013 Pro. I installed Etg.SimpleStubs via the package manager console. I'm getting: Error 1 The type or namespace name 'Etg' could not be found (are you missing a using directive or an assembly reference?)

I'm getting that in SimpleStubs.generated.cs:

using System;
using System.Runtime.CompilerServices;
using Etg.SimpleStubs;

Thanks,
Darren

Edit:
Okay so I downloaded the package and extracted the proper version, added a reference and it works. I'm running Windows 10.

Edit Again:
It's making stubs but I'm getting a compiler error.

        public delegate float AdjustedFitness_Get_Delegate();

        public StubIIndividual **AdjustedFitness_Get**(AdjustedFitness_Get_Delegate del, int count = Times.Forever, bool overwrite = false)
        {
            _stubs.SetMethodStub(del, count, overwrite);
            return this;
        }


The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions