changed framework to v4.7.2 now builds fail
Hey,
I just changed my project's from .net v4.6 to v4.7.2
Now I get this error, below.
I installed v4.7.2 on the machine and verified that in the registry. Also installed the .net core.
How do I fix this?
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(1111, 5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.7.2" 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.
Please sign in to leave a comment.
Make sure that you restart the agent after installing the new .net framework. Depending on whether it adds new elements to the path or other environment variables, restarting the computer/session might also be required.
The error is pretty clear, the runner cannot find the v4.7.2 framework, so there isn't really much more to check here. If it still fails, please check the steps mentioned here: https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity