No executable found matching command "dotnet-ef"
If You get error like this:
No executable found matching command "dotnet-ef"
This is solution.
1. Check if You have csproj inside directory of command execution
2. Check if there is a reference to the "watcher" tool in the project file (csproj)
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0"/>
</ItemGroup>
and then execute
dotnet restore
How to change PowerShell window title
Certainly you have not wondered how to change the window title in PowerShell. Here is a very simple way.
Modifying WPF controls from the background thread
To be able to change anything from another thread on the WPF window, you can use the Dispatcher.
Define function inside Your CodeBehind or ModeView
private void InvokeOnWindow(Action action)
{
System.Windows.Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, action);
}
using:
InvokeOnWindow(()=>{SomeProperty="Value"});
Removing @eaDir folders from Synology shares
This is solution to find and delete all @eaDir folders at Synology directory.
- To find all directories named @eaDir use the command:
# find . -type d -name "@eaDir"
- To delete all found, do:
# find . -type d -name "@eaDir" -print0 | xargs -0 rm -rf
Tables size in mssql
To check size used by data and indexes You can use following script