NetOffice icon indicating copy to clipboard operation
NetOffice copied to clipboard

✨ Support for .NET 6 and 8

Open jozefizso opened this issue 3 years ago • 35 comments

Feature is developed on branch https://github.com/NetOfficeFw/NetOffice/tree/dev/net6

  • [x] Build for .NET Framework 4.6.12
  • [x] Build for .NET 6
  • [x] Build for .NET 8
  • [x] Sign binaries before packaging
  • [ ] Sign nuget packages
  • [ ] Prepare release 2.0.0
  • [ ] #386
  • [x] #388

jozefizso avatar Feb 06 '22 20:02 jozefizso

Release 1.9.0 will deprecated some projects, see #342

jozefizso avatar Feb 06 '22 20:02 jozefizso

Any news on when the .NET 6 compatible version will be released?

edoust avatar Mar 22 '22 18:03 edoust

Any news on when the .NET 6 compatible version will be released?

Also waiting this =)

mixonij avatar Mar 23 '22 07:03 mixonij

Any news on when the .NET 6 compatible version will be released?

When the code will be ready.

jozefizso avatar Mar 23 '22 21:03 jozefizso

@jozefizso is there anything we can do to help

samatstariongroup avatar Aug 25 '22 15:08 samatstariongroup

@samatrhea here some overview what I was working on lately:

  • On the main branch all the projects are using the Modern SDK format which is a base for moving projects to .NET Core.
  • I also remove the deprecated libraries like Project, Visio and Publisher (see #357) to make it easier to support .NET 6.

Next work includes:

  • [x] Rewrite Azure Pipeline build to GitHub Actions to make builds transparent
  • [x] Automate building and releasing NuGet packages
  • [ ] Release v1.9 with some new APIs from latest MS Office builds
  • [ ] Fix code for .NET 6 (Windows only)

jozefizso avatar Aug 27 '22 10:08 jozefizso

Any news on this?

tb-mtg avatar Jan 17 '23 23:01 tb-mtg

@jozefizso we would love to contribute to this, but i think we need some guidance on what to do which is a bit more detailed than the tasks listed above. Would you be able to spend 15 to 30 minutes with us to get us started? We can setup a teams meeting for this.

samatstariongroup avatar Mar 03 '23 15:03 samatstariongroup

Hi @samatrhea, it would be helpful to test the code from https://github.com/NetOfficeFw/NetOffice/tree/dev/net6 if it works for your product.

Unfortunately I can test it only on small samples and I don't have a real project running on .NET 6. One of the issues to solve would be Addins and the new hosting model in .NET 6.

Do you have Calendly so we can arrange a time for meeting?

jozefizso avatar Mar 04 '23 11:03 jozefizso

https://calendly.com/sgerene/netoffice

samatstariongroup avatar Mar 04 '23 14:03 samatstariongroup

Hi @jozefizso - we have a larger application that is using NetOffice. Are there any test/beta/preview NuGet packages available?

robertmuehsig avatar Mar 22 '23 12:03 robertmuehsig

Hi @robertmuehsig, I haven't setup publishing of preview packages yet. You can try the https://github.com/NetOfficeFw/NetOffice/tree/dev/net6 branch, it is updated for .NET 4.6.2 and .NET 6 (Windows).

There is still work to do around changes in the Assembly APIs and it needs a code review.

jozefizso avatar Mar 26 '23 17:03 jozefizso

Just as an FYI, I've been using NetOfficeFw.PowerPoint for a while with .NET 6.0 and had no problems that I couldn't ascribe to PowerPoint in general. (I only found this issue as VS is nagging me with NU1701 having updated to version 1.9.3, despite having NoWarn="NU1701"...)

Will look forward to more "official" support :)

jskeet avatar Mar 29 '23 19:03 jskeet

Hi @jskeet, what are your use cases? Are you automating PowerPoint or running addins in the PowerPoint?

So are you using the current packages built for .NET Framework and with .NET 6 runtime?

jozefizso avatar Mar 30 '23 00:03 jozefizso

@jozefizso: I'm only showing PowerPoint presentations. (Basically "show the window", "get previews as images" and "move between slides" are my only operations.) It's entirely possible that I'm just lucky that it works, and that add-ins would fail.

jskeet avatar Mar 30 '23 05:03 jskeet

Hi - I'm guessing I won't be able to get in on that meeting, but I'm interested in doing some testing around this.

We have some existing VBA plugins we're working on porting to something like ExcelDNA, but would like portability as our clients in the ICS and SCADA space have OS and Excel versions spanning a pretty large area and we'd like to be able to support as many of them as possible for each Add-In.

ExcelDNA is currently at a point where default installation instructions and guidance are using .NET 6.0, and it would be really great to be able to get even test builds right now that we can test while remaking our Excel Add-Ins.

I'm admittedly fresh to this particular space, but we're very motivated to spend time here making this happen and provide feedback and validation as we work on these projects.

I've cloned the latest dev/net6 repo to try building and installing locally with a new project, but wasn't sure if there were already accessible builds available anywhere I can test with.

Either way, would be great to be involved and contribute as much as possible while we move forward.

Thanks, Mickey

mgoldsworth avatar Apr 05 '23 23:04 mgoldsworth

Mmm ... I was able to add all paths for exes in build.cmd and build successfully, but I'm not seeing any nupkg outputs, wondering if there is any guidance on correctly building the source to consume as a local package. It doesn't seem like an issue with signing, but it's the only thing I saw from build output that seem to have failed:

SignTool Error: No certificates were found that met all the given criteria.

I haven't worked with building/installing nuget packages locally much before, probably just something new I need to figure out, but if you have any guidance that would be great.

Thanks, Mickey

mgoldsworth avatar Apr 06 '23 00:04 mgoldsworth

Hi @mgoldsworth, test assemblies compiled for .NET 6 are available here: https://github.com/NetOfficeFw/NetOffice/actions?query=branch%3Adev%2Fnet6

For development and local testing you can just build the project in Visual Studio.

jozefizso avatar May 13 '23 22:05 jozefizso

Hi I think if you could publish a pre-release nuget of the dev/net6 branch, this would be very helpful and appreciated surely by all developers. Getting code and recompile it is mostly a big barrier whereas getting a pre-release nuget is not. We would immediately start testing it in our app and give feedback. Thanks jaz

bluebat-swiss avatar Aug 11 '23 09:08 bluebat-swiss

@bluebat-swiss do you use NetOffice to automate Office apps or to develop add-ins?

jozefizso avatar Aug 11 '23 10:08 jozefizso

@jozefizso we use it currently for shared addins in word, excel, powerpoint and outlook

bluebat-swiss avatar Aug 11 '23 10:08 bluebat-swiss

@jozefizso A pre-release nuget package would be easy to test for us as well. We use NetOffice for Office addins in Word/PowerPoint/Excel/Outlook.

robertmuehsig avatar Aug 11 '23 11:08 robertmuehsig

This .NET 6 will work for automating Office apps.

I tested hosting addins in .NET 6 and there is a lot more work to be done. The current code on https://github.com/NetOfficeFw/NetOffice/tree/dev/net6 branch does not work for addins yet.

jozefizso avatar Aug 11 '23 18:08 jozefizso

Hi, Very interesting in testing pre-release nuget package also. We're using NetOffice product only for automation on our side. Thanks for your work.

kev-is-coding-for-adn avatar Oct 23 '23 06:10 kev-is-coding-for-adn

Hi @jskeet @jozefizso , Does 1.9.4 supports .Net 6.0 framework?

selvaesakkirajan avatar Jan 04 '24 16:01 selvaesakkirajan

Hi @jskeet @jozefizso ,

Does 1.9.4 supports .Net 6.0 framework?

In general it doesn't support.NET 6.

jozefizso avatar Jan 04 '24 16:01 jozefizso

@jozefizso - Can you provide build files that support .Net for now? The last shared ones are expired. Also just wanted to check if there is any timeline for the full release as well as you had mentioned that it may not be available for add-ins usage so any timeline for the same.

ashishpCACTUS avatar Feb 27 '24 07:02 ashishpCACTUS

Hi @ashishpCACTUS, the code is in the branch mentioned above.

There is no timeline for releasing the .NET Core build.

jozefizso avatar Feb 27 '24 07:02 jozefizso