Installation of AnkhSVN Visual Studio 2019

I have made a fork of the AnkhSVN project and published a version on Visual Studio Marketplace as AnkhSVN2019. This version targets only Visual Studio 2019. The page on the Visual Studio Marketplace is here: https://marketplace.visualstudio.com/items?itemName=PhilJollans.AnkhSVN2019 You can also find it by searching the Visual Studio Marketplace in Visual Studio. The project is on GitHub … Read more

Adding ADO.Net Entity Framework gives “The project’s target framework does not contain Entity Framework runtime assemblies”

I know that almost all the other answers recommends to change the target framework, but some users (including me) needs to use .NET 6.0 instead of .NET Framework, so that solution its not valid for us. I was able to create the models by using Paul Sinnema’s link and using SQL authentication instead of Windows … Read more

VS 2022 – Convert to file-scoped namespace in all files

Adding a rule to use file scoped namespaces in .editorconfig worked for me: create an .editorconfig file in the solution directory add following line/content below (docs, code – IDE0161) Example .editorconfig file content: [*.cs] csharp_style_namespace_declarations = file_scoped:warning After that the preview changes dialog had an option to apply the fix to the whole project/solution:

Config connection string in .net core 6

Configuration.GetConnectionString(string connName) in .NET6 is under builder: var builder = WebApplication.CreateBuilder(args); string connString = builder.Configuration.GetConnectionString(“DefaultConnection”); also AddDbContext() is under builder.Services: builder.Services.AddDbContext<YourContext>(options => { options.UseSqlServer(builder.Configuration.GetConnectionString(“DefaultConnection”)); });

tech