Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Support for .NET 6 and 8 #343

Open
5 of 8 tasks
jozefizso opened this issue Feb 6, 2022 · 32 comments
Open
5 of 8 tasks

✨ Support for .NET 6 and 8 #343

jozefizso opened this issue Feb 6, 2022 · 32 comments
Milestone

Comments

@jozefizso
Copy link
Member

jozefizso commented Feb 6, 2022

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

@jozefizso jozefizso added this to the 1.9.0 milestone Feb 6, 2022
@jozefizso jozefizso changed the title Support for .NET 6 ✨ Support for .NET 6 Feb 6, 2022
@jozefizso jozefizso pinned this issue Feb 6, 2022
@jozefizso
Copy link
Member Author

Release 1.9.0 will deprecated some projects, see #342

@edoust
Copy link

edoust commented Mar 22, 2022

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

@mixonij
Copy link

mixonij commented Mar 23, 2022

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

Also waiting this =)

@jozefizso
Copy link
Member Author

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

When the code will be ready.

@samatstariongroup
Copy link

@jozefizso is there anything we can do to help

@jozefizso
Copy link
Member Author

jozefizso commented Aug 27, 2022

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

Next work includes:

  • Rewrite Azure Pipeline build to GitHub Actions to make builds transparent
  • 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 jozefizso modified the milestones: 1.9.0, 1.10.0 Aug 27, 2022
@tb-mtg
Copy link

tb-mtg commented Jan 17, 2023

Any news on this?

@samatstariongroup
Copy link

@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.

@jozefizso
Copy link
Member Author

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?

@samatstariongroup
Copy link

@robertmuehsig
Copy link

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

@jozefizso
Copy link
Member Author

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 jozefizso modified the milestones: 1.10.0, 2.0 Mar 26, 2023
@jskeet
Copy link

jskeet commented Mar 29, 2023

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 :)

@jozefizso
Copy link
Member Author

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?

@jskeet
Copy link

jskeet commented Mar 30, 2023

@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.

@mgoldsworth
Copy link

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
Copy link

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

@jozefizso
Copy link
Member Author

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.

@bluebat-swiss
Copy link

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

@jozefizso
Copy link
Member Author

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

@bluebat-swiss
Copy link

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

@robertmuehsig
Copy link

@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.

@jozefizso
Copy link
Member Author

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.

@kev-is-coding-for-adn
Copy link

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.

@selvaesakkirajan
Copy link

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

@jozefizso
Copy link
Member Author

Hi @jskeet @jozefizso ,

Does 1.9.4 supports .Net 6.0 framework?

In general it doesn't support.NET 6.

@jozefizso jozefizso changed the title ✨ Support for .NET 6 ✨ Support for .NET 8 Feb 16, 2024
@ashishpCACTUS
Copy link

@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.

@jozefizso
Copy link
Member Author

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

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

@jozefizso jozefizso changed the title ✨ Support for .NET 8 ✨ Support for .NET 6 and 8 Jun 9, 2024
@jozefizso
Copy link
Member Author

You can start testing the NetOffice libraries targeting .NET Framework 4.6.2, .NET 6 and .NET 8 in the release 2.0.0-preview20:

https://www.nuget.org/packages/NetOfficeFw.Core/2.0.0-preview20

This release supports Office automation scenarios and also Office COM Add-ins. For the add-ins running on .NET 6 and 8 you must adopt the new tools for registering native comhost libraries.

A sample Word add-in for .NET 6 is at https://github.com/NetOfficeFw/NetOffice/tree/dev/dotnet/Examples/Word/WordAddinCore

@asahicantu
Copy link

Thank you for the support on this initiative. So fat I am trying to make it work with my legacy .NET Framework addins, but i cannot make it load a custom windowsForm UserControl into a CustomTaskPane, Whenever it is being called by the invoker (even if it gets successfully created) an error is generated by the COM Invoker, unfortunately I am not able to see the exception far from "Cannot create indicated ActiveX Control" Any idea, someone else has had a similar problem?

image

@DoctorMarvin21
Copy link

There was an discussion and people were managed to resolve all issues win .NET 5:
dotnet/winforms#4370

Maybe it's a good idea to contact them, at least @arknu.

@DoctorMarvin21
Copy link

UPD: I updated this project to use .NET 6 and everything worked in Excel and Outlook. It's could be used as a great example. I'm still not sure what exactly I missed in my project though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests