Integration testing ASP.NET Core with .NET Framework – can’t find deps.json

We should get “Program” class from the main project but it automatically references Microsoft.AspNetCore.Mvc.Testing.Program class

public class VersioningTests : IClassFixture<WebApplicationFactory<Program>>

this code must reference our main Program code. So we must put a reference to the Program class on the last line in Program.cs file:

public partial class Program { }

Leave a Comment

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.