# Refererences and Library Question

**URL:** https://talk.remobjects.com/t/refererences-and-library-question/28146
**Category:** Fire
**Created:** [March 30, 2023, 12:15pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146 "2023-03-30T12:15:50Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![garry.pettet](https://talk.remobjects.com/user_avatar/talk.remobjects.com/garry.pettet/32/12917_2.png) [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)
#### Post date: [March 30, 2023, 12:15pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/1 "2023-03-30T12:15:51Z")

</div>

I’m back after a long hiatus and am falling at the first hurdle getting a simple project up and running. I know I’ve configured this all before in the past but I’m stuck.

I have a fresh installation of Fire on macOS.

I’ve created a macOS console app project (Island) like so:

 ![Screenshot 2023-03-30 at 13.01.01](https://talk.remobjects.com/uploads/default/original/3X/0/5/057838d8fa6cfcb93ff2648d54f10bca8523a5d5.png)

I’ve also created a Multi-Target library (in this example called `Library`) to contain code that I eventually want to be able to call from other projects. I want it to use `Elements RTL`:

 ![Screenshot 2023-03-30 at 13.01.43](https://talk.remobjects.com/uploads/default/original/3X/a/1/a14cb9af41f7d1fc5cf8e208dc18aef040d6db62.png)

I’m having two issues:

1. Code completion for ElementsRTL (anything really) isn’t working when inside the `Class1.cs` file in the `Library` project. Instead I get this popup:

 ![Screenshot 2023-03-30 at 13.06.49](https://talk.remobjects.com/uploads/default/original/3X/8/f/8f34ac03cd4cc4302dcca513fce9e1f89ef52d3b.png)

1. This might well be my rusty memory with C# but the code within the console app (e.g. `Program.cs`) can’t find the reference for `Library` and can’t see `Class1` in `Library`:

 ![Screenshot 2023-03-30 at 13.06.08](https://talk.remobjects.com/uploads/default/original/3X/9/1/91e231818ff112529b7afea2928bfb8d16438128.jpeg)

Finally, I’m not sure if it’s relevant but there are warnings in the sidebar for the `Library` project for it’s two references:

 ![Screenshot 2023-03-30 at 13.01.59](https://talk.remobjects.com/uploads/default/original/3X/c/4/c42e2f9220ad974226f28f66f57a23893395db61.png)

Can anyone explain what I’m doing wrong here?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [March 30, 2023, 1:17pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/2 "2023-03-30T13:17:55Z")

</div>

In one you need to select the target first ie Echoes.Full because it can impact code completion.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [March 30, 2023, 2:08pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/3 "2023-03-30T14:08:09Z")

</div>

> [@garry.pettet](#):
>
> 1. Code completion for ElementsRTL (anything really) isn’t working when inside the `Class1.cs` file in the `Library` project. Instead I get this popup:
> 
> ![Screenshot 2023-03-30 at 13.06.49](https://talk.remobjects.com/uploads/default/original/3X/8/f/8f34ac03cd4cc4302dcca513fce9e1f89ef52d3b.png)

This is normal. You need to pick one project/target to “work in”. you can do this from this dropdown, or by right-clicking a file (or the entire project) and choose “work in…”. This is because CC will depend on the platform, even when using Elements RTL.

> [@garry.pettet](#):
>
> This might well be my rusty memory with C# but the code within the console app (e.g. `Program.cs`) can’t find the reference for `Library` and can’t see `Class1` in `Library`:

Have you added the libfrary as reference to thew ConsoleApplication project? (I cant tell from the screenshot, because the References node is collapsed. Just drag the Library project onto the References node to add a reference. Also make sure your Library was built at least once.

> [@garry.pettet](#):
>
> Finally, I’m not sure if it’s relevant but there are warnings in the sidebar for the `Library` project for it’s two references:

Hard to to say without more to go by. if you click the References node, you will see a log for the resolve that might show errors. also, selecting the reference itself will show the error in the main view.

---

<div class="post-metadata">

### Author: ![garry.pettet](https://talk.remobjects.com/user_avatar/talk.remobjects.com/garry.pettet/32/12917_2.png) [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)
#### Post date: [April 1, 2023, 10:39am UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/4 "2023-04-01T10:39:27Z")

</div>

Thanks, I’ve got it all working now although I’m still seeing warnings in the references node for the library:

 ![Screenshot 2023-04-01 at 11.39.08](https://talk.remobjects.com/uploads/default/original/3X/5/5/550bb0ca383f7c6c739436347ec9e43fdad7fe1c.jpeg)

 ![Screenshot 2023-04-01 at 11.39.14](https://talk.remobjects.com/uploads/default/original/3X/9/5/95ed81e59f682e16342d04143bf1bb6e20d22752.jpeg)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 1, 2023, 2:12pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/5 "2023-04-01T14:12:30Z")

</div>

> [@garry.pettet](#):
>
> Thanks, I’ve got it all working now although I’m still seeing warnings in the references node for the library:

Anything in the log? else i’d have to see the project to say more.

---

<div class="post-metadata">

### Author: ![garry.pettet](https://talk.remobjects.com/user_avatar/talk.remobjects.com/garry.pettet/32/12917_2.png) [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)
#### Post date: [April 1, 2023, 8:13pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/6 "2023-04-01T20:13:06Z")

</div>

Here’s the zipped project. It’s essentially empty, not sure if it’ll help you debug my system. The only change I made to the project is to right click on the `Library` multi-platform shared library and selected `Work In > Island.Darwin.macOS`

[ConsoleApplication.zip](https://talk.remobjects.com/uploads/short-url/dl1lSpEAG6xWVPm8LbSmvQao4CW.zip) (1.4 MB)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 1, 2023, 9:08pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/7 "2023-04-01T21:08:07Z")

</div>

Thanx, I’ll have a look later when I’m back next the computer. I assume for now this is purely cosmetic, and the project _builds_ okay for you, right?

---

<div class="post-metadata">

### Author: ![garry.pettet](https://talk.remobjects.com/user_avatar/talk.remobjects.com/garry.pettet/32/12917_2.png) [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)
#### Post date: [April 1, 2023, 9:15pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/8 "2023-04-01T21:15:43Z")

</div>

Correct, no rush. It builds fine.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 2, 2023, 2:19pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/9 "2023-04-02T14:19:57Z")

</div>

Reproduced. "Reference could not be resolved (for some or all targets).'. Curious, because it clearly is, so this is definitely just a display issue inside Fire/Water. But I’ll have a look tomorrow top se east causing this, and get it fixed.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [April 2, 2023, 2:20pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/10 "2023-04-02T14:20:35Z")

</div>

Logged as [bugs://E26510](https://www.remobjects.com/portal/bugs/?id=E26510).

---

<div class="post-metadata">

### Author: ![chikega](https://talk.remobjects.com/user_avatar/talk.remobjects.com/chikega/32/15211_2.png) [@chikega](https://talk.remobjects.com/u/chikega)
#### Post date: [April 2, 2023, 5:10pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/11 "2023-04-02T17:10:52Z")

</div>

I downloaded Garry’s ‘ConsoleApplication’ project. And curiously I was not able to reproduce the error. The references to the target libraries appear to have resolved on my MBP laptop.

 ![Screenshot 2023-04-02 at 1.01.06 PM](https://talk.remobjects.com/uploads/default/original/3X/8/a/8a623e96f1968d8453a5804c9b5b06efed5f897a.jpeg)  
 ![Screenshot 2023-04-02 at 1.03.11 PM](https://talk.remobjects.com/uploads/default/original/3X/5/8/58e53ee01b1568e60afec1292b6b67138df6552f.jpeg)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 2, 2023, 5:33pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/12 "2023-04-02T17:33:20Z")

</div>

> [@chikega](#):
>
> I downloaded Garry’s ‘ConsoleApplication’ project. And curiously I was not able to reproduce the error. The references to the target libraries appear to have resolved on my MBP laptop.

Curious. It shows for me even with a new Multi-target project from template… I’ll investigate tomorrow, as that code is too much of a haystack for a Sunday 😉

---

<div class="post-metadata">

### Author: ![chikega](https://talk.remobjects.com/user_avatar/talk.remobjects.com/chikega/32/15211_2.png) [@chikega](https://talk.remobjects.com/u/chikega)
#### Post date: [April 2, 2023, 5:51pm UTC](https://talk.remobjects.com/t/refererences-and-library-question/28146/13 "2023-04-02T17:51:19Z")

</div>

The reason it works on my machine 🤣

 ![1484844865861-2625019410](https://talk.remobjects.com/uploads/default/original/3X/2/7/274463aaae8cf1924325b50f82c296538d315eff.jpeg)
