Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTS Hosted Build .Net Framework 4.6.2

I'm getting errors during VSTS build process stating .net 4.6.2 is not found. Any idea when it will be made available on the build agents?

2016-08-30T17:09:31.0009946Z ##[error]C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1098,5): Error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.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.

like image 715
mbreat Avatar asked Aug 30 '16 17:08

mbreat


People also ask

How do I install .NET framework in Azure pipeline?

Sign-in to Azure Pipelines. After you sign in, your browser goes to https://dev.azure.com/my-organization-name and displays your Azure DevOps dashboard. Within your selected organization, create a project. If you don't have any projects in your organization, you see a Create a project to get started screen.

Is Vsts same as Azure DevOps?

Visual Studio Team Services (VSTS) -- rebranded as Azure DevOps in 2018 -- is an Azure cloud-hosted extension of Microsoft's Team Foundation Server (TFS) -- now called Azure DvOps -- that assist development teams with special tools and services for software programmers, analysts and testers as well as IT project or ...


2 Answers

Download the correct DEVELOPER targetting pack from here:

https://www.microsoft.com/net/targeting

like image 170
Jon Barker Avatar answered Oct 16 '22 12:10

Jon Barker


First of all, be sure that the .NET framework are you using is listed here: Targeting .NET Platforms (I don't understand why 4.6.1 is not listed and 4.6.2 is listed.).

To resolve the issue about that the .Net Framework is not found, use Nuget 3.5.0 RC2. It solved the issue for me.

Nuget version that solve the issue

like image 32
Andrés Villenas Avatar answered Oct 16 '22 11:10

Andrés Villenas