Specifies the contents of the package being created so that the application can be deployed.
|Binaries ||The package that is created contains the compiled and executable code of the application, along with any necessary dependencies or libraries.|
|Sources ||The package being created contains the source code for the application, along with any necessary configuration files or static files, etc.|
Generators: .NET, Java
Level: Deploy Target Options
The Package Type property is typically used in software development and deployment processes to distinguish between packages containing source code and those containing compiled code. It helps to determine how the package can be used and what steps may be required to use it.
If you simply want to run the application, a package containing the binaries will suffice. Thus, you should configure the property with the Binaries value.
If you need to modify the application code or upload the generated code to a version control system, you will need a package containing the source code. Then you must configure the property with the Sources value.
This property applies only at design time.
In this case, a package containing the source code of the application is usually created. This package is uploaded to GitHub, where other developers can access the code. In this scenario, the Package Type property would be set to 'Sources'. This is because the package contains the source code for the application, which can be used to build the application later. It can then be built for a specific platform, such as Linux or Windows. More information in SAC #52557.
When an organization wants to integrate the build process of a software application into its existing deployment pipeline, it usually creates a package containing the source code of the application along with the necessary build scripts or configuration files. This package is then integrated into the organization's build process, where it can be compiled, tested, and deployed. In addition, the organization may have certain quality standards and static code analysis as part of its build process that the application must meet before being deployed. In this case, the Package Type property would be set to 'Sources'.
Packaging Java sources
Packaging .NET sources