
NET Core 3.0 and 3.1, although the SDK packages are for different versions.

I went to the project properties, opened the application tab and tried to put the target working environment on some. What could be the problem, please tell me. x, downloaded Visual Studio Tools for Office, reinstalled this library, but nothing comes out. I dumped this library through NuGet (I installed it through it) before version 12.0.0, I downloaded all sorts. I've tried everything that I know and what I found on the Internet. Private void Button_Click(object sender, RoutedEventArgs e)

Here is the code, I did not write further than the problem line, there is no point using System But as soon as the code (which I write and test in Visual Studio 2019) reaches the opening of the Word application through the line .Application app = new .Application(), my studio stops executing and pops up like this here is the error: System.IO.FileNotFoundException: "Could not load file or assembly 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

By clicking the button, the program extracts the text from the text field and if it was not empty, the program should insert this text into the tab in the Word file. Everything is very simple there so far: there is a text field and a button. I'm making a banal C# application for filling out forms in Word documents.
