Archive for the ‘.NET’ Category
Posted by jpluimers on 2009/07/16
I just found out that in my updates to TFS 2008 Folder Comparison Filter for both C# and Delphi projects somehow some backslashes (\) were missing.
Oops, sorry :-)
These backslashes are important when excluding directories: if omitted, TFS thinks you want to exclude a filename in stead of a directory name (see Folder Comparison Filters).
It might be due to the HTML pasting issue that I explained in Including formatted sourcecode in WordPress.
Anyway, here is the correct one that has the backslashes at the right places:
!*.pdb;!*.obj;!*.dll;!*.exe;!*.res;!*.resources;!*.cache;!*.ilk;!*.ncb;!obj\;!objd\;!bin\;!lib\;!*.local;!*.identcache;!*.dcu;!__history\;!*.dsk;!*.~*;!*.stat;!*.drc;!*.map;!*.csproj.user;!*.vbproj.user;!*.csproj.webinfo;!*.vbproj.webinfo;!*.suo;!*.bpl;!*.dcp;!*.log;!*.lck
(Note these all should be on one line when pasting them).
–jeroen
Posted in .NET, C# 2.0, C# 3.0, Delphi, Development, Prism, Software Development, Source Code Management, TFS (Team Foundation System), WordPress | Leave a Comment »
Posted by jpluimers on 2009/07/15
Somehow, at every client I need a function like GetExecutablePath.
Maybe you do too, so here is the code that I adapted a long time ago from the Delphi 2006 RTL:
using System;
using System.Diagnostics;
using System.Reflection;
namespace bo.Reflection
{
public class AssemblyHelper
{
public static string GetExecutablePath()
{
// borrowed from D2006\source\dotNet\rtl\Borland.Delphi.System.pas function ParamStr():
string result;
Assembly entryAssembly = Assembly.GetEntryAssembly();
if (null != entryAssembly)
{
result = entryAssembly.Location;
}
else
{
Process currentProcess = Process.GetCurrentProcess();
ProcessModule mainModule = currentProcess.MainModule;
result = mainModule.FileName;
}
return result;
}
}
}
Enjoy :-)
–jeroen
Posted in .NET, C#, C# 2.0, C# 3.0, Delphi, Development, Software Development, Visual Studio and tools | 2 Comments »
Posted by jpluimers on 2009/07/09
Here is another update for the TFS 2008 Folder Comparison Filter for both C# and Delphi projects:
Exclude .bpl, .dcp, log and .lck files.
So then the search filter becomes this:
!*.pdb;!*.obj;!*.dll;!*.exe;!*.res;!*.resources;!*.cache;!*.ilk;!*.ncb;!obj;!objd;!bin;!lib;!*.local;!*.identcache;!*.dcu;!__history;!*.dsk;!*.~*;!*.stat;!*.drc;!*.map;!*.csproj.user;!*.vbproj.user;!*.csproj.webinfo;!*.vbproj.webinfo;!*.suo;!*.bpl;!*.dcp;!*.log;!*.lck
(Note: this all goes on one line; your web-browser probably wraps this over multiple lines, so you might need to undo that wrapping before pasting it in to TFS).
Have fun with it!
–jeroen
Posted in .NET, Delphi, Development, Software Development, Source Code Management, TFS (Team Foundation System), Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2009/06/09
Last month I wrote about the TFS 2008 Folder Comparison Filter for both C# and Delphi projects; here is an update:
If you enable the generation of MAP files during compilation, you might not want to include them in your search filter.
Also, the .suo, .user and .webinfo extensions were missing (for an explanation of Visual Studio file extensions, see here and here), so then the search filter becomes this:
!*.pdb;!*.obj;!*.dll;!*.exe;!*.res;!*.resources;!*.cache;!*.ilk;!*.ncb;!obj\;!objd\;!bin\;!lib\;!*.local;!*.identcache;!*.dcu;!__history;!*.dsk;!*.~*;!*.stat;!*.drc;!*.map;!*.csproj.user;!*.vbproj.user;!*.csproj.webinfo;!*.vbproj.webinfo;!*.suo
Have fun with it!
–jeroen
Posted in .NET, C#, Delphi, Development, Prism, Software Development, Source Code Management, TFS (Team Foundation System), Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2009/06/02
Last week I spoke at the GeekNight of the Dutch Microsoft DevDays 2009.
A great conference, signalling two important industry wide trends:
- Cloud computing
- Natural user interfaces
There were many interesting presentations on both, and we are only at the beginning of those trends: interesting times are ahead!
My presentation (.NET & hardware – capture video & control servos, in a fun application) was as a GeekNight session.
That imposed geeky stuff, but in addition it addressed an important point: there will be many more means of interaction.
In particular, my ‘geek’ combination of hardware and software would react on movements seen by the webcam by pointing the beam of the laserpointer towards the largest area that moved.
After that I enjoyed the long Pentecost weekend (yes, the monday after Pentecost is a Holiday in the Netherlands, so most people have a day off then).
Today I updated my Conferences, seminars and other public appearances page with my DevDays materials to download.
It contains both the sourcecode, and the presentation in English.
Enjoy the download :-)
–jeroen
Posted in .NET, C#, C# 2.0, C# 3.0, DevDays09, Development, Event, Hardware Interfacing, Servo, Software Development, USB, WebCam | Leave a Comment »
Posted by jpluimers on 2009/05/25
When using TFS (Team Foundation System) 2008 as a Version Control / Source Code Management system not only for your C#, but also for Delphi projects, this is a good filter string when using the ‘Compare Folders‘ function of TFS:
!*.pdb;!*.obj;!*.dll;!*.exe;!*.res;!*.resources;!*.cache;!*.ilk;!*.ncb;!obj\;!objd\;!bin\;!lib\;!*.local;!*.identcache;!*.dcu;!__history\;!*.dsk;!*.~*;!*.stat;!*.drc
This is the regular Folder Comparison Filter – the bold above is the addition and the link contains an explanation of the filter syntax:
!*.pdb;!*.obj;!*.dll;!*.exe;!*.res;!*.resources;!*.cache;!*.ilk;!*.ncb;!obj\;!objd\;!bin\
Hope this helps some of you in reducing the amount of clutter in the resulting comparisons :-)
–jeroen
Posted in .NET, C#, Delphi, Development, Software Development, Source Code Management, TFS (Team Foundation System) | 3 Comments »
Posted by jpluimers on 2009/05/15
I have edited the Conferences, seminars and other public appearances/ page and extended the list of conferences I have attended in the past including many sessions.
Topics covered in these sessions have been C#, Delphi, Databases, Linux, Kylix, debugging, Compact Framework, and much much more.
Let me know which sessions you’d like to see online first.
The list is far from complete, but it is another step into getting the list more accurate.
–jeroen
Posted in .NET, C#, C# 2.0, Component Development, Conferences, Database Development, Delphi, Designer Development, Development, Event, Firebird, InterBase, Package Development, Software Development, SQL Server, Visual Studio and tools, XML, XML/XSD | Leave a Comment »
Posted by jpluimers on 2009/05/15
Masoud Kamali just notified that 2 of my sessions got accepted for the German BASTA! 2009 – .NET Everywhere! conference that is being held from September 21 til 25 in the Rheingoldhalle (which is in Mainz right in between the river Rhine and the city centre).
These are the sessions I’m going to do:
- WPF multi-media: smart client with audio, photos and video
- .NET gems – small pieces of code that make your day
It’s gonna be fun!
Posted in C#, C# 2.0, Conferences, Development, Event, Software Development | Leave a Comment »
Posted by jpluimers on 2009/05/06
On 20090504, Atozed announced Crosstalk: a technology that allows native Delphi code to consume .NET assemblies in a really intuitive and transparent way.
The announcement contains a FAQ.
It is a promising technology, not only because it is dead easy to use, but also because it is backed by Atozed: a team of people that have made complex technology like Web Apps easy to use by creating IntraWeb.
Expect demos soon (maybe even at Delphi Live!).
Here is a short example:
Read the rest of this entry »
Posted in .NET, Delphi, Development, Software Development | 3 Comments »
Posted by jpluimers on 2009/04/28
I like enums. Maybe because of my Turbo Pascal and Delphi background. They are descriptive. Makes code easier to read.
public enum TrafficLightColors
{
Red,
Yellow,
Green
}
But using them in C# foreach loops is a bit of a pain, not so much in the loop itself, but more in getting the list of values to loop over.
Read the rest of this entry »
Posted in .NET, C# 2.0, Delphi, Development, Software Development | Leave a Comment »