updating an application

  • Thread starter Thread starter Saso Zagoranski
  • Start date Start date
S

Saso Zagoranski

Hi!

I have developed an application which I'm about to distribute to my clients.
It's a pretty big project so bugs are sure to be found somewhere along the
line or updates will be needed.
What I would like to know is how are patches for applications are made.
I wouldn't like to send .dll files to clients and ask them to copy the files
in their install dir.
I've heard about versioning for assemblies, where you just send a new
assembly, which
has a higher version number? How can you then specify which assembly should
be used?

Thanks,
saso
 
That means that instead of referencing the assemblies in VS.net I would
have to manually load them at runtime?
How can I then access then access the classes from that assembly...
assembly.class?
So "using" can't be used anymore? I would have to change quite a lot of
code...

Perhaps I'll just create a project, which copies the new files over the old
ones :)
This should work as well, shouldn't it?



Mr.Tickle said:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemReflectionAssemblyClassLoadTopic.asp

Use reflection.


[C#]
using System;
using System.Reflection;

class Class1
{
public static void Main()
{
Assembly SampleAssembly;
// You must supply a valid fully qualified assembly name here.
SampleAssembly = Assembly.Load("Assembly text name, Version,
Culture, PublicKeyToken");
Type[] Types = SampleAssembly.GetTypes();
// Display all the types contained in the specified assembly.
foreach (Type oType in Types)
{
Console.WriteLine(oType.Name.ToString());
}
}
}

Saso Zagoranski said:
Hi!

I have developed an application which I'm about to distribute to my clients.
It's a pretty big project so bugs are sure to be found somewhere along the
line or updates will be needed.
What I would like to know is how are patches for applications are made.
I wouldn't like to send .dll files to clients and ask them to copy the files
in their install dir.
I've heard about versioning for assemblies, where you just send a new
assembly, which
has a higher version number? How can you then specify which assembly should
be used?

Thanks,
saso
 
Check out the updater application block at MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/updater.asp

This may address your needs.

Greetz,
-- Rob.

Saso said:
That means that instead of referencing the assemblies in VS.net I
would have to manually load them at runtime?
How can I then access then access the classes from that assembly...
assembly.class?
So "using" can't be used anymore? I would have to change quite a lot
of code...

Perhaps I'll just create a project, which copies the new files over
the old ones :)
This should work as well, shouldn't it?



http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemReflectionAssemblyClassLoadTopic.asp

Use reflection.


[C#]
using System;
using System.Reflection;

class Class1
{
public static void Main()
{
Assembly SampleAssembly;
// You must supply a valid fully qualified assembly name
here. SampleAssembly = Assembly.Load("Assembly text name,
Version,
Culture, PublicKeyToken");
Type[] Types = SampleAssembly.GetTypes();
// Display all the types contained in the specified assembly.
foreach (Type oType in Types)
{
Console.WriteLine(oType.Name.ToString());
}
}
}

Saso Zagoranski said:
Hi!

I have developed an application which I'm about to distribute to my
clients. It's a pretty big project so bugs are sure to be found
somewhere along the line or updates will be needed.
What I would like to know is how are patches for applications are
made. I wouldn't like to send .dll files to clients and ask them to
copy the files in their install dir.
I've heard about versioning for assemblies, where you just send a
new assembly, which
has a higher version number? How can you then specify which
assembly should be used?

Thanks,
saso
 
Whoa! that was a great article!!

Rob Tillie said:
Check out the updater application block at MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/updater.asp

This may address your needs.

Greetz,
-- Rob.

Saso said:
That means that instead of referencing the assemblies in VS.net I
would have to manually load them at runtime?
How can I then access then access the classes from that assembly...
assembly.class?
So "using" can't be used anymore? I would have to change quite a lot
of code...

Perhaps I'll just create a project, which copies the new files over
the old ones :)
This should work as well, shouldn't it?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemReflectionAssemblyClassLoadTopic.asp

Use reflection.


[C#]
using System;
using System.Reflection;

class Class1
{
public static void Main()
{
Assembly SampleAssembly;
// You must supply a valid fully qualified assembly name
here. SampleAssembly = Assembly.Load("Assembly text name,
Version,
Culture, PublicKeyToken");
Type[] Types = SampleAssembly.GetTypes();
// Display all the types contained in the specified assembly.
foreach (Type oType in Types)
{
Console.WriteLine(oType.Name.ToString());
}
}
}

Hi!

I have developed an application which I'm about to distribute to my
clients. It's a pretty big project so bugs are sure to be found
somewhere along the line or updates will be needed.
What I would like to know is how are patches for applications are
made. I wouldn't like to send .dll files to clients and ask them to
copy the files in their install dir.
I've heard about versioning for assemblies, where you just send a
new assembly, which
has a higher version number? How can you then specify which
assembly should be used?

Thanks,
saso
 
Back
Top