简体   繁体   English

在Windows 10 UWP WinJS App中,如何确定将哪些文件包含在构建中?

[英]In a Windows 10 UWP WinJS App, how can I decide which files get included in the build?

I'm building a UWP app with javascript and in a subfolder, I have a node_modules folder and a bunch of files that are there for compilation and debugging, but should not be in the final build. 我正在使用javascript构建UWP应用,并且在子文件夹中,我有一个node_modules文件夹和一堆文件,可用于编译和调试,但不应在最终版本中。

I don't know how to include or exclude folders from the build, but it's important that I am able to keep them visible in the project. 我不知道如何在构建中包括或排除文件夹,但重要的是我必须使它们在项目中可见。

I don't know how to include or exclude folders from the build. 我不知道如何在构建中包括或排除文件夹。

When you build a project that contains several files, you can list each file separately in the project file, or you can use wildcards to include all the files in one directory or a nested set of directories. 构建包含多个文件的项目时,可以在项目文件中单独列出每个文件,也可以使用通配符将所有文件包括在一个目录或一组嵌套目录中。 And you can explicitly exclude that file or directory from the list of inputs. 您可以从输入列表中明确排除该文件或目录。 There may also be a file in a project that you only want to include under certain conditions. 在某些情况下,项目中也可能只包含一个文件。 You can explicitly declare the conditions under which a file is included in a build. 您可以明确声明在构建中包含文件的条件。 For more detail you could refer MSBuild Items official document. 有关更多详细信息,请参阅MSBuild Items官方文档。

I have a node_modules folder and a bunch of files that are there for compilation and debugging, but should not be in the final build. 我有一个node_modules文件夹和一堆文件,可用于编译和调试,但不应在最终版本中。

Please refer the following screenshot, if you have set file Package Action as Content the file will be selected to build. 如果您已将文件Package Action设置为Content ,请参考以下屏幕截图,将选择要构建的文件。 You could check if the value is correct. 您可以检查该值是否正确。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我的开发操作系统为Windows 10 Home时,如何在Windows 10 Mobile上测试UWP应用? - How can I test my UWP app on Windows 10 Mobile when my dev OS is Windows 10 Home? 如何启动与我在UWP Windows 10中创建的IBackgroundTask关联的应用程序 - How to start the app that is associated to the IBackgroundTask I've created in UWP Windows 10 如何在Windows 10上构建Cordova应用程序(通用) - How to build a Cordova app to windows 10 (universal) 如何在Win 8.1模拟器上测试我的UWP应用(在VStudio 2015和Win10中创建)? - How can I test my UWP app (created in VStudio 2015 & Win10) on a Win 8.1 emulator? Cordova Windows 10 UWP应用程序中的黑屏 - Black screen in Cordova Windows 10 UWP app 如何使msbuild / VS创建包含在构建中的链接的文件的物理副本? - How can I make msbuild/VS create physical copies of files included as links on a build? Visual Studio 2015无法构建Windows 10通用应用程序? - Visual Studio 2015 can't build Windows 10 universal app? 如何使用 UWP 应用检测由另一个应用触发的 Windows 10 Toast 通知 - How to detect windows 10 toast notification triggered by another app using a UWP app 在Windows 10上使用Visual Studio 2015时,是否可以构建和提交与Windows Phone 8.1兼容的UWP应用? - Can you build and submit UWP apps that are compatible with Windows Phone 8.1, when using Visual Studio 2015 on Windows 10? UWP,Windows App:无法手动添加文件 - UWP, Windows App: Cannot add Files manually
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM