The term “Add-Migration” is not recognized

Just install Microsoft.EntityFrameworkCore.Tools package from nuget: Install-Package Microsoft.EntityFrameworkCore.Tools -Version 6.0.8 You can also use this link to install the latest version: NuGet package link .NET CLI command: dotnet add package Microsoft.EntityFrameworkCore.Tools If the problem still persists, try restarting Visual Studio.

Could not load file or assembly “System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

Changing the binding information in my web.config (or app.config) – while a “hack” in my view, allows you to move forward with your project after a NuGet package update whacks your application and gives you the System.Net.Http error. Set oldVersion=”0.0.0.0-4.1.1.0″ and newVersion=”4.0.0.0″ as follows <dependentAssembly> <assemblyIdentity name=”System.Net.Http” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” /> <bindingRedirect oldVersion=”0.0.0.0-4.1.1.0″ newVersion=”4.0.0.0″ /> </dependentAssembly>

Visual Studio 2015 Database Project directory contains a file with extension jfm

This is an issue caused by the ESENT engine relied on by SQL Projects adding in a new file. This is a new feature in Windows 10 Anniversary Edition to avoid data loss, but the fact SQL Projects store the .dbmdl cache file under the project root means this locked file is added to the … Read more

What is the difference between a Shared Project and a Class Library in Visual Studio 2015?

The difference between a shared project and a class library is that the latter is compiled and the unit of reuse is the assembly. Whereas with the former, the unit of reuse is the source code, and the shared code is incorporated into each assembly that references the shared project. This can be useful when … Read more

How do I enable NuGet Package Restore in Visual Studio?

It took far too long but I finally found this document on Migrating MSBuild-Integrated solutions to Automatic Package Restore and I was able to resolve the issue using the methods described here. Remove the ‘.nuget’ solution directory along from the solution Remove all references to nuget.targets from your .csproj or .vbproj files. Though not officially … Read more

How do you reference a capture group with regex find and replace in Visual Studio 2012, 2013, 2015, and VS Code

To find and replace in VS 2012 and VS 2015 you do the following: Surround with (), display capture with $1, $2, $n Example (thanks to syonip) In the find options, make sure ‘use regular expressions’ is checked, and put the following as the text to find: _platformActions.InstallApp\((.+)\) And the following as the text to … Read more

NuGet Packages are missing

I solved my issue by removing this code from .csproj file: <Target Name=”EnsureNuGetPackageBuildImports” BeforeTargets=”PrepareForBuild”> <PropertyGroup> <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> </PropertyGroup> <Error Condition=”!Exists(‘$(SolutionDir)\.nuget\NuGet.targets’)” Text=”$([System.String]::Format(‘$(ErrorText)’, ‘$(SolutionDir)\.nuget\NuGet.targets’))” /> </Target>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)