Что такое формат файла WAPPROJ?
Файл .wapproj представляет собой проект упаковки приложений Windows - тип проекта Visual Studio, представленный Microsoft в 2017 году. Его задача - «обернуть» существующее настольное приложение (Windows Forms, WPF или классическое Win32) для сборки в пакет .msix. Это часть технологии Desktop Bridge, которая позволяет упаковывать и распространять традиционные программы Win32 как современные приложения Windows.
Файл является обычным текстовым XML в формате MSBuild. Он не содержит собственного кода приложения. Вместо этого он импортирует цели сборки Desktop Bridge и ссылается на три вещи: проект вашего настольного приложения, файл Package.appxmanifest, описывающий пакет, и визуальные ресурсы, хранящиеся в папке Images. Вы добавляете проект упаковки в решение (solution), указываете ссылку на проект приложения, которое хотите упаковать, и помечаете один исполняемый файл как точку входа, если включено несколько файлов.
Безопасность и защита
РИСК: 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.
Детали формата
в двух словахПрограммы, открывающие файлы 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. Технические подробности
глубокая спецификация| 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. |
| Выпущен | 2017 |
| Спецификация | learn.microsoft.com |
Конвертации WAPPROJ
Вопросы и ответы сообщества
спрошено пользователямиВопросов пока нет - станьте первым, кто спросит о файлах WAPPROJ.
Часто задаваемые вопросы
Как открыть файл .wapproj?
.sln), содержащее этот файл, в Visual Studio 2017 15.5 или новее. Проект упаковки загрузится автоматически. Вы также можете открыть файл в любом текстовом редакторе для просмотра его XML-кода.Почему я не вижу шаблон Windows Application Packaging Project?
Можно ли собрать .wapproj без открытия Visual Studio?
msbuild из командной строки разработчика (Developer Command Prompt) или Visual Studio Build Tools, передавая такие свойства, как /p:UapAppxPackageBuildMode и /p:AppxBundle. Вам все равно потребуются установленные инструменты сборки UWP и Windows SDK.Что на самом деле содержит файл .wapproj?
Package.appxmanifest и визуальные ресурсы. Кода приложения в нем нет.Нужен ли мне .wapproj для приложений WinUI 3?
.csproj приложения. Отдельный проект упаковки в основном нужен для объединения нескольких исполняемых файлов в один пакет.