apt-get dist-upgrade –> updates the distribution
apt-get update –> reread package list
apt-get upgrade –> upgrades version of installed packages
apt-get remove packagename –> uninstall package
apt-get install packagename –> install package
apt-get dist-upgrade –> updates the distribution
apt-get update –> reread package list
apt-get upgrade –> upgrades version of installed packages
apt-get remove packagename –> uninstall package
apt-get install packagename –> install package
You can manage your global assemblies with the gacutil.exe which comes with Microsoft SDK. You can find this tool for instance in folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\".
This is an example about removing one assembly:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" /u Assembly.To.Uninstall
Here is a small code snippet about howto access a protected method of a class:
You can convert a Delphi DateTime value (this is in OLE Automation date Format) using DateTime.FromOADate() method:
In my old Delphi days I used IncludeTrailingPathDelimiter() to ad a backslash to a path variable.
In C# you can use this code to combine a path and a filename:
To close your application you can use this code snippet:
Today I had a problem closing a tab in the IDE: every time the IDE freezes.
The solution was to delete the *.suo file of the project group.
If you want to display the the drag handle in the lower right corner of the Window you have to set the ResizeMode Window property like that:
This is the result:
I was looking for a possibility to copy selected Visual Studio code as HTML to publish code easily.
I am using Windows Live Writer and WordPress. There is a plugin called "Paste As Visual Studio Code".
Here you can download this plugin.
Install this plugin, start Windows Live Writer, copy some code from Visual Studio IDE, switch to tab “Insert” and paste it into an Windows Live Writer article clicking the plugin button.