다음을 통해 공유


Migrate Office solutions to the .NET Framework 4 or later

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

If the target framework of an Office project is changed to the .NET Framework 4 or later from an earlier version of the .NET Framework, some additional steps might be required to continue to run the solution on development and end-user computers. For more information, see Required changes to run Office projects that you migrate to the .NET Framework 4 or the .NET Framework 4.5.

In addition, the project might no longer compile. Some features of Office projects have different programming models for different versions of the .NET Framework. When the target framework of an Office project is changed to the .NET Framework 4 or later from an earlier version of the .NET Framework, you must make the following code changes to the project:

See also