Hi Rob.
I hear you. But I think you sit more or less with the same problem as with
large software projects in general and that is the question of "what else is
there?"
In other words, how do I know what tools are already available so that I don't
accidently reinvent the wheel? Extension methods require you to know the name
space first and fortunately visual studio takes care of the rest.
I'm happy to use helper methods if extension methods are going to be a problem.
Also I'm working on the main branch, is that for version 4?
Thanks
Regards,
Dandre Rob Mensching <r...@robmensching.com> wrote:In general, I'd say we wait
for WiX v4.0 to start doing such changes. WiX v4.0 will standardize on .NET
Framework 4.0 and we'll do things to remove many of the .NET Framework v1.1
concepts.
That said, I'm not terribly excited about adding a significant number of
extension methods. They make the code more readable at the expense of creating
a custom lingo (the extensions) that you have to learn to understand to read
the code. It's a balance.
On Sat, May 18, 2013 at 12:41 AM, Dandre <dandre...@gmail.com> wrote:
Hi Rob (and whom else it may concern)
Are there any coding conventions with regards to writing C# code in some
of the C# code bases that would allow for new language features? I know
that you are trying to keep WiX backward compatible with older versions
of .NET and that's why I'm asking. For instance, here I see this code:
bool hasFiles = false;
foreach (GenericItemWrapper item in buildOutputFiles)
{
hasFiles = true;
break;
}
With some of the new extension methods I can simplify it as:
bool hasFiles = buildOutputFiles.Any();
Would that be a problem? If so, where could we keep a collection of libs
where we can write similar methods (more helper like) to help make WiX
code more readable? Should we just start of within the project file
itself and then see the need for common projects later?
I hope my question makes sense.
Regards,
Dandre
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs