Get the current assembly version
That is very easy by using Reflection.
Code
using System.Reflection; | |
Assembly.GetExecutingAssembly().GetName().Version; |
MonoDev 2.0
MonoDev is getting well developed. Now, it has an ASP.Net Toolbar and even it has database explorer!
A careless mistake in ActiveRecord for MySql
I am writing a program for myself by using ActiveRecord. I am an MS SQL Server Develper. So, I just did in a careless mistake. I called a table , User. If you call a table will crash with system table name, we use '[' and ']'. I hardcoded the table name in '[User]' in a Model class for ActiveRecord. I can't create a schema by Active Record. Because in MySql, we use '`'. So, it should be
Code
[ActiveRecord("`User`")] | |
| |
public class User : ActiveRecordBase |
Not
Code
[ActiveRecord("[User]")] | |
| |
public class User : ActiveRecordBase |
Mono 2.2
My Ubuntu VM is not ready for Mono 2.2. My Version 8.10 is only using Mono 1.9.1.I found the best way is to download VMwave from Mono website.
http://www.go-mono.com/mono-downloads/download.html
Everything is configed. Moreover, it got monodevelop 2.0. That saves me the time to compile it from the source.
CSharp.targets erros
After I read the article,I recommeneded before, on code project. I finally solved the problem for CSharp.targets errors. Because I have not installed CF .net powertoys. Now, everythings are alright!