Bonjour à tous,

Je m'essaye un peu au C# avec une dll appelé AlphaVSS sous visual studio express. Je n'arrive pas à générer le projet qui se résume à ça:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using AlphaVSSwXP;
 
 
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            using (VssBackupComponents vss = new VssBackupComponents())
            {
                vss.InitializeForBackup(null);
                vss.SetBackupState(false, true, VssBackupType.Full, false);
                using (VssAsync async = vss.GatherWriterMetadata())
                    async.Wait();
                vss.StartSnapshotSet();
                vss.AddToSnapshotSet(@"c:\", Guid.Empty);
                using (VssAsync async = vss.DoSnapshotSet())
                    async.Wait();
            }
 
        }
    }
}
J'ai une erreur de type le nom ou le type d'espace de nom AlphaVSSwXP est introuvable

pourtant j'ai importé la dll dans le projet.

Quelqu'un sait-il pourquoi?

D'avance merci pour toute aide