Was ist das WAPPROJ-Dateiformat?
Eine .wapproj-Datei ist ein Windows Application Packaging Project, ein Visual Studio-Projekttyp, den Microsoft 2017 eingeführt hat. Seine Aufgabe ist es, eine bestehende Desktop-App (Windows Forms, WPF oder klassisches Win32) zu kapseln, damit sie in ein .msix-Paket kompiliert werden kann. Dies ist Teil der Desktop Bridge, die es ermöglicht, ein traditionelles Win32-Programm wie eine moderne Windows-App zu verpacken und zu verteilen.
Die Datei ist einfacher XML-Text im MSBuild-Format. Sie enthält selbst keinen Anwendungscode. Stattdessen importiert sie die Desktop Bridge-Build-Ziele und referenziert drei Dinge: Ihr Desktop-App-Projekt, die Package.appxmanifest, die das Paket beschreibt, und die visuellen Assets, die in einem Images-Ordner aufbewahrt werden. Sie fügen das Paketprojekt einer Projektmappe hinzu, setzen einen Projektverweis auf die App, die Sie verpacken möchten, und markieren eine ausführbare Datei als Einstiegspunkt, wenn mehrere enthalten sind.
Sicherheit
RISIKO: 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.
Formatdetails
kurz gefasstProgramme zum Öffnen von WAPPROJ-Dateien
.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. Technische Details
technische Spezifikation| 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. |
| Veröffentlicht | 2017 |
| Spezifikation | learn.microsoft.com |
WAPPROJ-Konvertierungen
Community Q&A
von Nutzern gefragtNoch keine Fragen - stellen Sie die erste Frage zu WAPPROJ-Dateien.
Häufig gestellte Fragen
Wie öffne ich eine .wapproj-Datei?
.sln), die sie enthält, in Visual Studio 2017 15.5 oder höher. Das Paketprojekt wird automatisch geladen. Sie können die Datei auch in jedem Texteditor öffnen, um ihr XML anzuzeigen.Warum sehe ich die Vorlage „Windows Application Packaging Project“ nicht?
Kann ich eine .wapproj-Datei erstellen, ohne Visual Studio zu öffnen?
msbuild über die Developer Command Prompt oder die Visual Studio Build Tools und übergeben Sie Eigenschaften wie /p:UapAppxPackageBuildMode und /p:AppxBundle. Sie müssen dennoch die UWP-Build-Tools und das Windows SDK installiert haben.Was enthält eine .wapproj-Datei eigentlich?
Package.appxmanifest und die visuellen Assets verweist. Sie enthält keinen Anwendungscode.Benötige ich für WinUI 3-Apps noch eine .wapproj-Datei?
.csproj der App integriert. Ein separates Paketprojekt dient hauptsächlich dazu, mehrere ausführbare Dateien in einem Paket zu kombinieren.