This command has the options /target, /delaysign, and /keyfile. These options are described in the following sections.
/target
Syntax: Publicize.exe /target:[value] input-assembly
The /target option causes the generated assembly to be built to run on a specific platform. The possible values for /target are as follows:
Desktop: Generates a standard CLR private accessor. Desktop is the default value for the target: option.
WebSite: Generates a private accessor that is compatible with a Web site.
Note: |
|---|
Use the WebSite option only for testing code in a Web site that you have created in Visual Studio by selecting Web Site on the File menu. |
Device: Generates a private accessor that is compatible with smart devices.
/delaysign
Syntax: Publicize.exe /delaysign input-assembly
Use the /delaysign option to indicate that you do not want to sign the assembly at the current time. Space is reserved in the output assembly so that a digital signature can be added later.
By using /delaysign, you can continue with your testing after you run publicize.exe. A temporary public key token is used, and you can sign the assembly later.
If you use the /delaysign option, you must also use the /keyfile option. The file that you specify with the /keyfile option must contain a public key; optionally, it can also contain a private key.
/delaysign is also a .NET compiler option. For more information, see Creating and Using Strong-Named Assemblies and Delay Signing an Assembly.
/keyfile
Syntax: Publicize.exe /keyfile<key file> input-assembly
Use the /keyfile option to sign an assembly when you run publicize.exe. Use the <key file> term to specify the name of an existing file that contains a cryptographic key. The <key file> term can include an absolute or a relative path to the key file.
If you use the /keyfile option, you have the option to also use the /delaysign option. If you use /keyfile without also using /delaysign, the file that you specify with the /keyfile option must contain both a public key and a private key.
/keyfile is also a .NET compiler option. For more information, see Creating and Using Strong-Named Assemblies.