Qu'est-ce que le format de fichier WAPPROJ ?
Un fichier .wapproj est un projet de packaging d'application Windows, un type de projet Visual Studio introduit par Microsoft en 2017. Son rôle est d'envelopper une application de bureau existante (Windows Forms, WPF ou Win32 classique) afin qu'elle puisse être compilée dans un package .msix. Cela fait partie du Desktop Bridge (Pont du Bureau), qui permet à un programme Win32 traditionnel d'être emballé et distribué comme une application Windows moderne.
Le fichier est au format XML en texte brut selon le schéma MSBuild. Il ne contient aucun code d'application en soi. Au lieu de cela, il importe les cibles de compilation du Desktop Bridge et référence trois éléments : votre projet d'application de bureau, le fichier Package.appxmanifest qui décrit le package, et les ressources visuelles conservées dans un dossier Images. Vous ajoutez le projet de packaging à une solution, pointez une référence de projet vers l'application que vous souhaitez emballer, et marquez un exécutable comme point d'entrée lorsque plusieurs sont inclus.
Sécurité et sûreté
RISQUE : LOWA .wapproj is a plain-text XML MSBuild project. It contains no executable code of its own, though like any MSBuild file it can define build targets and pre/post-build commands, so only build projects from sources you trust. The file is harmless to open and read in a text editor.
Détails du format
en brefProgrammes qui ouvrent les fichiers WAPPROJ
.wapproj loads as a Windows Application Packaging Project where you can edit the manifest, add references, and run the Create App Packages wizard. msbuild YourProject.wapproj /p:UapAppxPackageBuildMode=SideLoadOnly /p:AppxBundle=Never, with the UWP build tools and Windows SDK components installed. .wapproj as plain XML to inspect or hand-edit the MSBuild properties, imports, and project references. Détails techniques
spécifications approfondies| Encoding | UTF-8 text |
| Byte order | N/A (text file) |
| Container | MSBuild XML project |
| Typical size | 2-20 KB |
| Structure | An MSBuild project file whose root <Project> element imports the Desktop Bridge / Windows Application Packaging targets and props (for example Microsoft.DesktopBridge.props and Microsoft.DesktopBridge.targets). It declares a <ProjectGuid>, <TargetPlatformVersion> and <TargetPlatformMinVersion>, references the packaged desktop app(s) as <ProjectReference> items, and lists the Package.appxmanifest and the visual assets in the Images folder. Building it produces an MSIX/APPX package or bundle. |
| Integrity | None built into the project file; the produced MSIX/APPX package is digitally signed. |
| Platforms | Windows 10 (1607+), Windows 11 |
| Notes | The .wapproj itself contains no application code. It sits inside a Visual Studio solution (.sln) alongside the desktop app project (.csproj or .vcxproj), and its only job is to configure and generate a deployable package. Requires the desktop app to target Windows 10 Anniversary Update (10.0; Build 14393) or later. Can bundle multiple executables into one package, with one marked as the entry point. |
| Publié | 2017 |
| Spécification | learn.microsoft.com |
Conversions WAPPROJ
Q&R de la communauté
posées par les utilisateursPas encore de questions - soyez le premier à poser une question sur les fichiers WAPPROJ.
Foire aux questions
Comment ouvrir un fichier .wapproj ?
.sln) qui le contient dans Visual Studio 2017 15.5 ou version ultérieure. Le projet de packaging se charge automatiquement. Vous pouvez également ouvrir le fichier dans n'importe quel éditeur de texte pour visualiser son XML.Pourquoi ne vois-je pas le modèle de projet de packaging d'application Windows ?
Puis-je compiler un .wapproj sans ouvrir Visual Studio ?
msbuild depuis l'invite de commande développeur ou les Visual Studio Build Tools, en passant des propriétés telles que /p:UapAppxPackageBuildMode et /p:AppxBundle. Vous devez toujours avoir les outils de compilation UWP et le Windows SDK installés.Que contient réellement un fichier .wapproj ?
Package.appxmanifest et les ressources visuelles. Il ne contient aucun code d'application.Ai-je toujours besoin d'un .wapproj pour les applications WinUI 3 ?
.csproj de l'application. Un projet de packaging séparé sert principalement à combiner plusieurs exécutables dans un seul package.