There are so many different reasons of getting this generic error. My particular use case is impacted by gitignore file. The project is configured to use package configuration and the lib (dll) were ignored in gitignore file.
I had a working solution on my local. I commited this solution to ADO main. I went to ADO and created a working branch from main branch. I open working branch and started getting these yellow triangles.
I decided to use MVC package as a test case. These are working solution lib files;
These are not working solution lib files (branch created from main).
You can see “System.Web.Mvc.dll” is missing in second picture.
How did I fix it?
The simplest way is to go to main branch in ADO and delete packages folder;
Clone the repository locally
Make the changes to the local version
Commit the changes locally
Push the changes back up to the GitHub repository
Goto each file and select Git and Add;
The folder will be back in the view;
Make sure to comment this line in gitignore file;
# NuGet Packages
# The packages folder can be ignored because of Package Restore
# SHAHZAD - Don't uncomment this line
# except build/, which is used as an MSBuild target.
# Uncomment if necessary however generally it will be regenerated when needed
# NuGet v3's project.json files produces more ignoreable files
Running build pipeline for a web application targeting .NETFramework Version 4.6.1 using 2022 build agent, I have received this error;
The reference assemblies for .NETFramework,Version=v4.6.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
The solution is to change the build agent to 2019.
Builder Design Pattern allows us to separate the construction of a complex object from its representation so that we can use the same construction code to produce different types and representations of an object. It is used to construct a complex object step by step and return the complete object after the final step.