I made a package that is supposed to convert Word .docx to .pdf however, when I try to install it to UiPath Studio it gives me an error saying that my package isn’t compatible with net8.0-windows7.0(my TargetFrameWork). My .NET version on both my package in Visual Studio and in UiPath is 8.0 so I’m confused on what to do from here. Here’s the error I get when I try it: NU1202: Package DocxToPDF 1.0.0 is not compatible with net8.0-windows7.0 (.NETCoreApp,Version=v8.0) / win-x64. Package DocxToPDF 1.0.0 supports: net (.NETFramework,Version=v0.0). Thanks for the help and let me know if more info is needed.
Hey @Zain_Ahmad
You can go to the .csproj
file, and check if you have the correct TargetFramework defined.
There is an activity for this already. Install UiPath.Word.Activities and use the Save Document as PDF activity.
Could you please share that package?
I have it defined as net8.0…I tried to move to net6.0 to see if it would change anything but it didn’t.
I’m trying to avoid this since my Orchestrator bots don’t have Word on them. So, it throws an exception because it can’t open Word and use the activities properly.
WordToPDF.zip (1.3 MB)
Here’s the package I’m attempting to make in Visual Studio.
- Since you’re using
GroupDocs.Conversion
and your target framework isnet8.0-windows7.0
, it should be compatible, as this package supports.NET 6 and later
. - However, the issue might occur if UiPath Studio or your project setup doesn’t align with
net8.0-windows7.0
. Some platform-specific settings or dependencies may still cause conflicts.
could add this package “GroupDocs.Conversion.NETFramework”
package as suggested in NuGet Gallery | GroupDocs.Conversion 25.2.1 and see if it works.