# Unable to create ClassLibrary in Visual Studio

**URL:** https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964
**Category:** Oxygene
**Created:** [December 17, 2019, 2:56pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964 "2019-12-17T14:56:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![obones](https://talk.remobjects.com/user_avatar/talk.remobjects.com/obones/32/2688_2.png) [@obones](https://talk.remobjects.com/u/obones)
#### Post date: [December 17, 2019, 2:56pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/1 "2019-12-17T14:56:28Z")

</div>

Hello,

I’m trying to evaluate Oxygene inside Visual Studio 2017 to see if I can compile some non-visual Delphi code into a .Net Core assembly.  
After having installed the trial, I go to File, New, Project and I select the RemObjects Oxygen, .Net, Core category.  
In there, I have the “Class library (.Net Standard)” option, which means no .Net Core for me. But anyway, as this is a trial, I select it.  
It starts doing something, the bar at the bottom is blue. But after a short while, it turns purple and says that project creation failed. No details to be seen, just “failed”.

What could be the reason for this? Where can I look and what should I try?

---

<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: [December 17, 2019, 3:49pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/2 "2019-12-17T15:49:00Z")

</div>

> [@obones](#):
>
> In there, I have the “Class library (.Net Standard)” option

For one, you can use then .NET Standard template to create a class library that works with _both_ .NET and .NET Core, as standard is sort of a common denominator between the two (the reason we focused on having a template for that). For another, if you want to explicitly target .NET Core only with your library, you can simply change the TargetFramework setting in the project, after successfully creating it…

> [@obones](#):
>
> But anyway, as this is a trial, I select it.  
> It starts doing something, the bar at the bottom is blue. But after a short while, it turns purple and says that project creation failed. No details to be seen, just “failed”.

That’s curious. I’ll see if we can reproduce this here. Does it work ok for you in Water?

---

<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: [December 17, 2019, 3:53pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/3 "2019-12-17T15:53:22Z")

</div>

FWIW, does not reproduce for me in Visual Studio 2019 (I don’t have 2017 installed). Is this with the latest 2463? I’ll get one of my colleagues in here to help diagnose the issue.

For your convenience, I’m attaching an empty project you can use to get started for now; it’s already configured for .NET Core:

[NetCoreClassLibrary.zip](https://talk.remobjects.com/uploads/short-url/erQx9vK0cQyYhaspWlSlkeodcVG.zip) (7.4 KB)

My apologies for other inconvenience.

---

<div class="post-metadata">

### Author: ![obones](https://talk.remobjects.com/user_avatar/talk.remobjects.com/obones/32/2688_2.png) [@obones](https://talk.remobjects.com/u/obones)
#### Post date: [December 17, 2019, 4:29pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/5 "2019-12-17T16:29:24Z")

</div>

Thanks for confirming what I suspected with respect to .net Core support.

I did not install Water initially as I do not want to force a new IDE on my fellow developers who already use Ryder and Visual Studio.  
But I installed it anyway and there, it worked but with a twist: it tells me that my trial license has expired.

I went back to VS and used the zip you posted above, and it gave me the same error message about trial license being expired

So I believe that a very similar error message is popping up somewhere in the wizard, except that it cannot be shown and ends up failing the creation process.

In the end, it appears I installed Oxygene a few months (years?) back, did not have time to use it and it’s biting me right 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: [December 17, 2019, 6:26pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/6 "2019-12-17T18:26:54Z")

</div>

> [@obones](#):
>
> I went back to VS and used the zip you posted above, and it gave me the same error message about trial license being expired

Hmm, ok. that’s not a good UX, it should have shown you something with regard to that the first time. I’ll log that for investigation.

> [@obones](#):
>
> In the end, it appears I installed Oxygene a few months (years?) back, did not have time to use it and it’s biting me right now.

I’ll send you a trial extension. T take it the email address I have on file for you is still good?

—marc

---

<div class="post-metadata">

### Author: ![obones](https://talk.remobjects.com/user_avatar/talk.remobjects.com/obones/32/2688_2.png) [@obones](https://talk.remobjects.com/u/obones)
#### Post date: [December 18, 2019, 10:05am UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/7 "2019-12-18T10:05:54Z")

</div>

> [@mh](#):
>
> I’ll send you a trial extension. T take it the email address I have on file for you is still good?

Thanks, I have received it, it’s working just fine now.

---

<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: [December 18, 2019, 1:36pm UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/8 "2019-12-18T13:36:00Z")

</div>

Thanks, logged as [bugs://83672](https://www.remobjects.com/portal/bugs/?id=83672)

---

<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: [January 8, 2020, 8:31am UTC](https://talk.remobjects.com/t/unable-to-create-classlibrary-in-visual-studio/20964/9 "2020-01-08T08:31:05Z")

</div>

[bugs://83672](https://www.remobjects.com/portal/bugs/?id=83672) got closed with status fixed.
