Support for PackageReference

This forum is meant for questions and discussions about the X# language and tools
Kromi
Posts: 45
Joined: Wed Jan 13, 2016 8:31 am

Support for PackageReference

Post by Kromi »

Hi,

currently, X# projects do not support using PackageReference for NuGet, right? Are there plans to add that?

Regards,
Mathias
User avatar
robert
Posts: 4519
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Support for PackageReference

Post by robert »

Mathias,
Until build 2.5 we were still supporting VS 2015.
Both VS2015 and MsBuild that comes with this version of VS do not understand PackageReference.
We are dropping support for VS 2015 in the next build.
So we can now also start adding new stuff like PackageReference.

I can't promise that it will be included in the next build, but this is certainly on our todo list.
It is a bit more work than you would expect, because unlike "normal" references, Package References can resolve to one or more assembly files. SO we have to expand the package reference so our editor support knows about all the types in the dependent packages as well.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Kromi
Posts: 45
Joined: Wed Jan 13, 2016 8:31 am

Support for PackageReference

Post by Kromi »

Thank you, Robert.
Thomas
Posts: 93
Joined: Thu Oct 25, 2018 11:39 am

Support for PackageReference

Post by Thomas »

Hi Robert,

are there any news about the support of PackageReference? I haven't seen anything in the "whatsnew" of build 2.6a... so it's still in process, right? Do you have a timelime?

Thomas
User avatar
robert
Posts: 4519
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Support for PackageReference

Post by robert »

Thomas,

We will support package references once we also support the new project file format , the so called SDK-style projects.
See https://docs.microsoft.com/en-us/nuget/ ... ect-format for more info on that format.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Thomas
Posts: 93
Joined: Thu Oct 25, 2018 11:39 am

Support for PackageReference

Post by Thomas »

Hi Robert,
thank you for the information!
Is there an approximate schedule when this will be available? I ask because we are planning an update to a newer X# version (our currently used version is 2.3.1) and we would like to have this feature. If there would be a version with package reference soon, we might wait with our update...

Thomas
User avatar
robert
Posts: 4519
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Support for PackageReference

Post by robert »

Thomas,

This will not be in the next build (2.7) Most likely the builder after that (2.8 ).
Writing a compiler and runtime are MUCH easier than integrating into Visual Studio.
We have the basics working (opening a project, listing the items, opening the source code editor, running the build system).
It should be the other way around, but unfortunately it isn't.

We are now working on:
- Support for non source items (windows forms, WPF, VO custom editors, resx files etc)
- "Appdesigner" support (Project Properties in a tab page), including listing the right frameworks (.net core, .net 5, .net 4 etc)
- ErrorList and TaskList support

We are creating this on top of the "Common Project System", just like the C# and VB project systems for SDK style projects. The code for these systems is on Github, but written in such a way that we cannot really "inherit from" this code.
We can see what they have done and them copy/paste source and adjust it.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Thomas
Posts: 93
Joined: Thu Oct 25, 2018 11:39 am

Support for PackageReference

Post by Thomas »

Thank you, Robert!
VR
Posts: 102
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

Support for PackageReference

Post by VR »

Hello Robert

reading your post, I assume, that we probably won't see support for "SDK-style projects" for this year. Can you give an estimate, when version 2.8 will be released? Maybe 2021 Q1?

Volkmar
User avatar
robert
Posts: 4519
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Support for PackageReference

Post by robert »

Volkmar,

2021 Q1 sounds doable.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply