docker compose up is used to spin up your docker-compose file. There is no compose redeploy The way to redeploy after some changes you either stop or do a Compose redeploy To redeploy you have to rebuild your solution. You use the build command. If you have multiple docker image and don’t want to redeploy
How to fix Publishing error on Data Factory
Publishing error Error while publishing: At least one resource deployment operation failed. Please list deployment operations for details. Please see http://aka.ms/DeployOperations for usage details. Publishing error. Publish failed due to invalid references. View details for more information Details. Publishing error remove unused Linked services There are multiple things that needs to be checked. Go through each
How to extend from two classes in C#
You can’t extend from two classes because the language designers decided not to. This is not a writeup why it’s done in Java and not in C#. There are plenty of good articles and answers covering it like https://stackoverflow.com/a/995271/1329173 Use two interface and not two classes The way you would do it in C# is
How to git add bin folder despite gitignore
git add despite gitignore. How to force add a file and folder despite the .gitignore file. git add force To add new files on command line you use the git add. To overwrite a gitignore rule you can use the –force or just -f to allow adding otherwise ignored files. Git add documentation: https://git-scm.com/docs/git-add
How to get copyright free images
You should always use copyright free images in your articles. Here’s how you can easily do it with Google when searching for images. https://images.google.com/ Type in your search term. Press the Tools button the right then press the Usage Rights dropdown menu and select “Creative Commons Licenses”. “A Creative Commons (CC) license is one of
How to run Visual Studio with two projects at once
To run Visual Studio with two projects at once right click on your solution and hit Properties or Alt + Enter on Solution. As default “Single startup project” is selected. Select the Multiple start projects. In many cases when you want to run multiple projects one is depending on the other. To make sure they
Feature global using directive is currently in Preview and unsupported
The feature ‘global using directive’ is currently in Preview and *unsupported*. To use Preview features, use the ‘preview’ language version. Find the line with the suggestion and do the fix. Select the line and Upgrade your project to preview. Rerun your project.
How to get file from path for minimal API
When working on minimal api, we can’t use the Image.FromFile() https://learn.microsoft.com/en-us/dotnet/api/system.drawing.image.fromfile?view=windowsdesktop-7.0 in minimal API. It doesn’t work because it has been remove. But there is another way. You can use Results.File to return file to download from your Minimal APIs handler: The FileInfo is only to make sure we get the correct working path https://learn.microsoft.com/en-us/dotnet/api/system.io.fileinfo?view=net-7.0
How to use appsettings in minimal API .NET 7
To use and access appsettings in .NET 7 minimal API you can use the builder variable. It’s the first thing in Program.cs that is created. To access the appsettings use the Configuration and the getvalue() function like this. The appsettings.json file will look something like this. Add your unique string you want to access. You
How to reduce size of docker ext4.vhdx
ext4.vhdx is taking up a lot of space. This is part of Docker Desktop in regards to wsl which is Windows Subsystem for Linux Open Docker Desktop and go to debug. The bug in the top menu Clean ext4.vhdx In the debug menu press the Clean / Purge data Additional space For additional space. You