# .NETCore

**URL:** https://talk.remobjects.com/t/netcore/17146
**Category:** Elements
**Created:** [August 9, 2018, 11:07am UTC](https://talk.remobjects.com/t/netcore/17146 "2018-08-09T11:07:20Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 9, 2018, 11:07am UTC](https://talk.remobjects.com/t/netcore/17146/1 "2018-08-09T11:07:20Z")

</div>

Hi,

after some time I’m back to .NET Core with Elements

> [@.NET Core templates?](https://talk.remobjects.com/t/net-core-templates/14515/43):
>
> We ship uneven build numbers, and build even builds internally. Eg this morning in increased the build no to 2299, and we did the build we shipped. Then the. build number was set to 2300. There’ll be dozens of builds done internally over there next week, all versioned 2300. When we’re ready to ship the next build, we go to 2301, and the cycle repeats. This way, all builds that leave the house (aside form off-shots we send to individual people for retesting specific fixes) have a unique build n…

I’ve got the project you uploaded, but when I reference it to [ASP.NET](http://ASP.NET) Core Web Application I’m getting error

Project ‘NetCoreApplication286.elements’ targets ‘.NETCore2.1’. It cannot be referenced by a project that targets ‘.NETCoreApp,Version=v2.1’.

Any idea how to reference it?

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 9, 2018, 11:14am UTC](https://talk.remobjects.com/t/netcore/17146/2 "2018-08-09T11:14:51Z")

</div>

Using Elements 10.0.0.2305

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 9, 2018, 11:30am UTC](https://talk.remobjects.com/t/netcore/17146/3 "2018-08-09T11:30:53Z")

</div>

Great success 🙂 Changed  
.NETCore2.1  
to  
netcoreapp2.1  
and I can reference Elements code to [ASP.NET](http://ASP.NET) Core project 🙂

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 9, 2018, 10:05pm UTC](https://talk.remobjects.com/t/netcore/17146/4 "2018-08-09T22:05:16Z")

</div>

Success - it would be nice 🙂

I’m trying to add npgsql reference to my .NETCoreApp - could you please look at this?

[RemObjects.zip](https://talk.remobjects.com/uploads/default/original/2X/2/22eb6d550e90848c695e754442c4d05a626ee1db.zip) (441.8 KB)

Using VS C# it’s running ok, using Elements build error ☹

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 9, 2018, 10:14pm UTC](https://talk.remobjects.com/t/netcore/17146/5 "2018-08-09T22:14:51Z")

</div>

> [@Mateusz\_Galazka](#):
>
> netcoreapp2.1

Under water it builds, but do not work properly

[ConsoleApplication3.zip](https://talk.remobjects.com/uploads/default/original/2X/9/9820cb09d9b6eaf4428ae30062cef44b976ff0d2.zip) (30.1 KB)

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 13, 2018, 12:40pm UTC](https://talk.remobjects.com/t/netcore/17146/6 "2018-08-13T12:40:00Z")

</div>

If you’ll fix sth I’ll be happy to test it (before friday beta) because I’ve got time for it this week 🙂

---

<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: [August 13, 2018, 2:23pm UTC](https://talk.remobjects.com/t/netcore/17146/7 "2018-08-13T14:23:34Z")

</div>

Curious. here it fails with the rather unhelpful message:

```auto
A JSON parsing exception occurred in [/Users/mh/Downloads/ConsoleApplication3 2/bin/Debug/ConsoleApplication3.deps.json]: Key not found

```

(ok, but WHAT key? the JSON looks fine…)

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 14, 2018, 10:05am UTC](https://talk.remobjects.com/t/netcore/17146/8 "2018-08-14T10:05:25Z")

</div>

Don’t know what’s this, but found, that [ASP.NET](http://ASP.NET) Core App builds with .NET 4.5 ClassLib and my code is running - one step forward 🙂

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 21, 2018, 12:50pm UTC](https://talk.remobjects.com/t/netcore/17146/9 "2018-08-21T12:50:53Z")

</div>

Hi,

when EBuild will build [ASP.NET](http://ASP.NET) Core Web Application - I’ve been trying to run it using VS and MSBuild, but it’s just imposible to work with MSBuild…

Errors like

> MSB4018: The “GenerateDepsFile” task failed unexpectedly.

and it’s the end… References to .NET Core project just do not work.

I want to do it all under Water and forget about VS - will you help? 😉

---

<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: [August 21, 2018, 1:00pm UTC](https://talk.remobjects.com/t/netcore/17146/10 "2018-08-21T13:00:53Z")

</div>

> [@Mateusz\_Galazka](#):
>
> MSB4018: The “GenerateDepsFile” task failed unexpectedly.

That’s not EBuild…

> [@Mateusz\_Galazka](#):
>
> I want to do it all under Water and forget about VS - will you help? 😉

Well, just try it — what fails? Create a new .NET Core project from template. change the SDK/Runtime setting to ASP. What happens? Maybe it just works? I just haven’t gotten around to testing [ASP.NET](http://ASP.NET) yet but in theory it should all just work the same as regular .NET Core?

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 21, 2018, 1:02pm UTC](https://talk.remobjects.com/t/netcore/17146/11 "2018-08-21T13:02:14Z")

</div>

I know that’s no EBuild - I’ve got enough using MSBuild 🙂

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 21, 2018, 1:56pm UTC](https://talk.remobjects.com/t/netcore/17146/12 "2018-08-21T13:56:45Z")

</div>

Water → New project Console Application (.NET Core) using C# do not build

> Source code file ‘C:\Users\LHeczko\Documents\RemObjects Software\Elements\Water\ConsoleApplication7\Properties\Settings.Designer.swift’ does not exist.

It needs swift file, but its C# project - there is cs file

Oxygene project builds ok, but dont know how to translate some of C# code 🙂

---

<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: [August 21, 2018, 1:59pm UTC](https://talk.remobjects.com/t/netcore/17146/13 "2018-08-21T13:59:52Z")

</div>

Oops, thats a template bug, will fix. Just remove the file from the project for now?

---

<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: [August 21, 2018, 2:02pm UTC](https://talk.remobjects.com/t/netcore/17146/14 "2018-08-21T14:02:40Z")

</div>

fixed.

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 21, 2018, 3:03pm UTC](https://talk.remobjects.com/t/netcore/17146/15 "2018-08-21T15:03:58Z")

</div>

You’re right - delete helped 🙂

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 22, 2018, 6:55am UTC](https://talk.remobjects.com/t/netcore/17146/16 "2018-08-22T06:55:45Z")

</div>

I’ve created .NET Core Console Application, added reference to NuGet Microsoft.AspNetCore.App and there is a problem with multiple references.

> Type “System.Reflection.AssemblyTitleAttribute” is defined in multiple references: System.Runtime, System.Runtime

When I look into References there is Microsoft.AspNetCore.App and Microsoft.NETCore.App - just like in VS - one difference - I can count on you 🙂

Test case:  
[ConsoleApplication8.zip](https://talk.remobjects.com/uploads/default/original/2X/7/7459be5e0598f6d1d113cd249a0359477c11aa08.zip) (103.0 KB)

Please look at this 🙂

---

<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: [August 22, 2018, 11:57am UTC](https://talk.remobjects.com/t/netcore/17146/17 "2018-08-22T11:57:05Z")

</div>

> [@Mateusz\_Galazka](#):
>
> added reference to NuGet Microsoft.AspNetCore.App

I believe you dont want to add this reference, you just want to set the runtime, eg:

 ![image](https://talk.remobjects.com/uploads/default/original/2X/9/9d4d842563a11cf28584779517e372a49fb52fc3.png)

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 22, 2018, 12:00pm UTC](https://talk.remobjects.com/t/netcore/17146/18 "2018-08-22T12:00:46Z")

</div>

Maybe 🙂 But under VS both of this are in references.

---

<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: [August 22, 2018, 12:08pm UTC](https://talk.remobjects.com/t/netcore/17146/19 "2018-08-22T12:08:19Z")

</div>

Yeah, I don’t care about VS right now 😉

---

<div class="post-metadata">

### Author: ![Mateusz\_Galazka](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mateusz\_Galazka](https://talk.remobjects.com/u/Mateusz_Galazka)
#### Post date: [August 22, 2018, 12:09pm UTC](https://talk.remobjects.com/t/netcore/17146/20 "2018-08-22T12:09:48Z")

</div>

You’re right - sorry - just trying to notice difference

[Next page](https://talk.remobjects.com/t/netcore/17146.md?page=2)
