unable to build Net project using NUGet

0 votes

I'm trying to build a .NET project using NUGet on jenkins. It shows the below error because I do not have version 4.5.2 of .NET and that too because windows 10 has v 4.7.1 preinstalled

C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1098,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5.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. [C:\Users\majid.jenkins\workspace\DotNetFreeStyle\SeleniumNUnitParam\SeleniumNUnitParam.csproj]

Apr 3, 2018 in DevOps & Agile by Atul
• 10,240 points
933 views

1 answer to this question.

0 votes

you just need the developer pack for 4.5.2 not the entire framework. try downloading it from the below given link under Developer Pack section:

https://www.microsoft.com/net/download/all

answered Apr 3, 2018 by ajs3033
• 7,300 points

Related Questions In DevOps & Agile

+3 votes
4 answers

Unable to build docker image

It looks like the dev dependencies were ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,220 points

edited Oct 17, 2018 by lina 5,809 views
0 votes
2 answers

How to build docker images using VS2017?

Open Visual Studio and create a new project. Select ASP.Net Core Web ...READ MORE

answered Aug 25, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,359 views
+1 vote
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,300 points

edited Oct 16, 2018 by Kalgi 4,819 views
+3 votes
1 answer

Unable to find the TargetArguments path While configuring dot cover in VSTS

For your unable to find the TargetArguments ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,300 points
1,219 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP