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

I’ve copied my project to a clean Windows 10 machine with only Visual Studio 2015 Community and SQL Server 2016 Express installed. There are no other framework versions installed apart from those installed with Windows 10 and VS2015 or SQL Server. When I try to start the WebApi project I get the message: Could not … Read more

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

Assuming we have a database project called MyDatabase then a file called MyDatabase.jfm appears in the root of the project directory. It is exclusively locked while the project is open in Visual Studio It is a binary file It has only started appearing recently (past couple of days) I have done a Google search, which … Read more

tsconfig.json: Build:No inputs were found in config file

I have an ASP.NET core project and I’m getting this error when I try to build it: error TS18003: Build:No inputs were found in config file ‘Z:/Projects/client/ZV/src/ZV/Scripts/tsconfig.json’. Specified ‘include’ paths were ‘[“**/*”]’ and ‘exclude’ paths were ‘[“../wwwroot/app”,”node_modules/*”]’. 1> The command exited with code 1. 1> Done executing task “VsTsc” — FAILED. This is my tsconfig.json … Read more

How do I enable NuGet Package Restore in Visual Studio?

There’s a similar post on stack but it doesn’t help with my issue possibly because I am using Visual Studio 2015. How do I get the “Enable NuGet Package Restore” option to appear in VS2015? I chose File > New Project and created an empty ASP.NET Web Application. I’m looking for this menu option. I … Read more

Getting “project” nuget configuration is invalid error [duplicate]

This question already has answers here: Unable to Install Any Package in Visual Studio 2015 (19 answers) Closed 5 years ago. I’m getting “[project] nuget configuration is invalid” error. I received an error like this before and used the ‘Update Nuget package manager’ solution mentioned here: Unable to Install Any Package in Visual Studio 2015 … Read more

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

I realize there are a ton of questions about this, but none that I found specifically referenced which VS version they referred to. With that important information lacking, I still was unable to successfully use the answers I found. The most common was Surround with {}, display capture with \1, \2, \n However, that seems … Read more

ASP.NET 5 MVC: unable to connect to web server ‘IIS Express’

What I’m doing: Opening Visual Studio Community 2015 File -> New -> Project Under Visual C#: Web -> ASP.NET Web Application Web Application And press f5 for the popup error “unable to connect to web server ‘IIS Express’.” Deleting applicationhost.config, located in Documents\IISExpress\config, doesn’t change the error message. (There’s also an IISExpress folder in program … Read more

How to unapply a migration in ASP.NET Core with EF Core

When I run PM> Remove-Migration -context BloggingContext in VS2015 with an ASP.NET Core project using EF Core I get the following error: System.InvalidOperationException: The migration ‘20160703192724_MyFirstMigration’ has already been applied to the database. Unapply it and try again. If the migration has been applied to other databases, consider reverting its changes using a new migration. … Read more