Share via


Error MSB3644 The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found.

Question

Thursday, September 26, 2019 3:57 PM

Hi,

I've a solution which has multiple projects under that solution, when building that solution locally works and when I build through the build server, I'm getting the following error:

Error MSB3644 The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

But the local has .NETFramework v4.6.1 and above .NETFramework v4.7.1, but the build server is missing that .NETFramework v4.6.1 and has .NETFramework v4.6 and .NETFramework v4.7.1.

do I need have the .NETFramework v4.6.1 on the build server in order to fix this build issue or the above .NETFramework v4.7 should be able to work, because csproj has .NETFramework v4.6.1.

Please help me to resolve the build issue.

Thanks,

info2m

All replies (2)

Friday, September 27, 2019 9:05 AM âś…Answered

Hi info2m,

Welcome to the MSDN forum.

Sure,if you have the framework 4.7 target version on your build server, you can just change the the framework version to .Net Framework4.7 in the csproj file of the project. But this may cause some problems.

**> >**Preferably, you need to install the .NET Framework 4.6.1 Developer Pack as errror message suggested, which includes the complete interface, compilation, and development tools required for framework 4.6.1. So the error message just reminds you that one of the components is missing.

**> >**If there is such a problem for other versions of the framework, please install the corresponding develper pack.

If you have other issues, please feel free to let us know.

Best Regards,

Perry

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Monday, September 30, 2019 2:53 AM

Thanks, Perry

info2m