NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

⚠️ Deprecating dialogs from the Office API library #360

Closed jozefizso closed 2 years ago

jozefizso commented 2 years ago

The OfficeApi library has several Win Forms dialogs defined. These dialogs are causing build issues when transitioning to .NET 6 and the dotnet build system. We will remove them from the 1.9 release and these dialogs will be available from a new package which will isolate the Win Forms code.

List of dialogs:

Issue Details

When building the project with dotnet build instead of msbuild the embeded images in the resource files will cause this error:

C:\Program Files\dotnet\sdk\6.0.400\Microsoft.Common.CurrentVersion.targets(3262,5):
error MSB3823: Non-string resources require the property GenerateResourceUsePreserializedResources to be set to true. [OfficeApi.csproj]
error MSB3822: Non-string resources require the System.Resources.Extensions assembly at runtime, but it was not found in this project's references. [OfficeApi.csproj]
jozefizso commented 2 years ago

Breaking changes