Announcement

Collapse
No announcement yet.

Manifest ins Programm nehmen?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Manifest ins Programm nehmen?

    Hallo zusammen,
    kleine Frage, für das richtige aussehen auf Windows XP braucht man ja das software.manifest.
    Wie bekomme ich diese Datei so in meine Applikation rein das sie beim Erstellen direkt erstellt wird.

    Ich habe das Problem das, bei einem Setup Projekt die Datei beim Manuellen Kopieren ins Debug verzeichnis eine Fehlermeldung erhalte?

    Beim app.Config hab ich herausgefunden wies geht aber beim manifest nicht?

    Einer eine Idee?

    Grüsschen Andreas

  • #2
    Hallo,

    die Beschreibung dazu ist in der Hilfe zu VS .NET zu finden, wenn nach dem Begriff "Manifest and Styles" gesucht wird:

    <b>Using Windows XP Visual Styles With Controls on Windows Forms</b>

    Add the Manifest to the Executable File

    Next, open the executable file within Visual Studio to add the manifest as a resource. To add the manifest as a resource:

    1. In the Visual Studio development environment, on the File menu, point to Open, then click File.

    2. Navigate to the directory containing this Visual Studio solution. This is the directory you saved it in during Step 1 of the "Create the Project" section.

    3. Open the obj directory and then the debug or retail directory (depending on the build option you set in the development environment).

    4. Locate the executable file (it will be in the form of ProjectName.exe) and double-click it to open it with the Visual Studio environment.

    5. Right-click the executable file in the designer and choose Add Resource.

    6. In the Add Resource dialog box, click the Import button.
    Navigate to the manifest file you created, which should be located in the same directory as your solution.

    Note Be sure that the Files Of Type field in the dialog box is set to All Files (*.*) so that you can see the manifest file in the file picker.

    8. Double-click the manifest file.

    9. The Custom Resource Type dialog box opens.

    10. In the Resource Type box, type RT_MANIFEST and click OK.

    11. In the Properties window, set the ID property to 1.

    12. From the File menu, choose Save All to save the changes you have made

    Comment

    Working...
    X