-
Vytvorenie zálohy a restore MS SQL databáze
Na vytvorenie budem používať SQL Server Management Studio vo verzii 15.0.18206.0. Stiahnuť si ho môžete tu prípadne cez choco a príkazu choco install sql-server-management-studio. Vytvorenie .bak súboru z databáze. Určenie lokácie exportu (pre zmenu musíte použiť Remote a Add) Restore databáze.
-
Roslyn analyzers for solution in .NET
Are you using Roslyn analyzers in your solution? Off cource you use it, even if you don’t know about it. Long story short, Roslyn analyzer is static code analysis with possible refactorings (like eslint/prettier in JS world) All Visual Studio refactoring is based on Roslyn analyzers. It is really cool,...
-
Roslyn analyzer pre .NET solution
Použili ste už niekedy roslyn analyzátory v solution? Ak si myslíte že nie, tak ste na omyle. Všetky refaktoringy ktoré vám Visual Studio poskytuje sú postavené nad statickou analýzou kódu pomocou Roslynu. Roslyn je v skratke .NET kompilátor, ktorý je napísaný v C#. Roslyn analyzátor je teda staticky anlyzátor, ktorý...
-
Conditional creating new objects with spread operator
I am lazy and I am not shy of it. Today I refactor some vuex (state manager) modul called Search. Yes, it handles search stuff from application. But what is interesting, it uses 2 endpoints for search (because of server API). One use searchText in query parameter (https://localhost:5000/items?searchText=valueInSearchText) but second...
-
Problem With Certificate For Kestrel
Yesterday after run ASP.NET Core project through dotnet restore; dotnet run commands, I received following message: Instruction in message is clear, run dotnet dev-certs https --trust command. Run command popups confirmation dialog below. After answering yes to this makes everything work right. If you still have problem with valid SSL...
-
Enable .NET Core SDK preview in Visual Studio 2019
Today I had to repair my instance of Visual Studio. After opening solution I obtained this dialog: Ok, just stupid checkbox in VS “Use preview version of .NET Core SDK”. I opened VS options, typed .net to search box… and checkbox isn’t in .NET Core options section 😨 And no,...
-
How to clean up and simplifying csproj for DotVVM project
When you create new DotVVM project with Visual Studio, it will be like this: First we could simplify <Content Include=… group from this: to this 🤗: Group Content is copied to project publish directory (folder or AppService, IIS, etc..). Attribute Include says: please add these files to group Content. So...