1dotnet-store(1) .NET Documentation dotnet-store(1)
2
3
4
6 This article applies to: ✔️ .NET Core 3.1 SDK and later versions
7
9 dotnet-store - Stores the specified assemblies in the runtime package
10 store.
11
13 dotnet store -m|--manifest <PATH_TO_MANIFEST_FILE>
14 -f|--framework <FRAMEWORK_VERSION> -r|--runtime <RUNTIME_IDENTIFIER>
15 [--framework-version <FRAMEWORK_VERSION>] [--output <OUTPUT_DIRECTORY>]
16 [--skip-optimization] [--skip-symbols] [-v|--verbosity <LEVEL>]
17 [--working-dir <WORKING_DIRECTORY>]
18
19 dotnet store -h|--help
20
22 dotnet store stores the specified assemblies in the runtime package
23 store. By default, assemblies are optimized for the target runtime and
24 framework. For more information, see the runtime package store topic.
25
26 Required options
27 • -f|--framework <FRAMEWORK>
28
29 Specifies the target framework. The target framework has to be spec‐
30 ified in the project file.
31
32 • -m|--manifest <PATH_TO_MANIFEST_FILE>
33
34 The package store manifest file is an XML file that contains the list
35 of packages to store. The format of the manifest file is compatible
36 with the SDK-style project format. So, a project file that refer‐
37 ences the desired packages can be used with the -m|--manifest option
38 to store assemblies in the runtime package store. To specify multi‐
39 ple manifest files, repeat the option and path for each file. For
40 example: --manifest packages1.csproj --manifest packages2.csproj.
41
42 • -r|--runtime <RUNTIME_IDENTIFIER>
43
44 The runtime identifier to target.
45
46 Optional options
47 • --framework-version <FRAMEWORK_VERSION>
48
49 Specifies the .NET SDK version. This option enables you to select a
50 specific framework version beyond the framework specified by the
51 -f|--framework option.
52
53 • -?|-h|--help
54
55 Prints out a description of how to use the command.
56
57 • -o|--output <OUTPUT_DIRECTORY>
58
59 Specifies the path to the runtime package store. If not specified,
60 it defaults to the store subdirectory of the user profile .NET in‐
61 stallation directory.
62
63 • --skip-optimization
64
65 Skips the optimization phase. For more information about optimiza‐
66 tion, see Preparing a runtime environment.
67
68 • --skip-symbols
69
70 Skips symbol generation. Currently, you can only generate symbols on
71 Windows and Linux.
72
73 • -v|--verbosity <LEVEL>
74
75 Sets the verbosity level of the command. Allowed values are q[uiet],
76 m[inimal], n[ormal], d[etailed], and diag[nostic]. For more informa‐
77 tion, see <xref:Microsoft.Build.Framework.LoggerVerbosity>.
78
79 • -w|--working-dir <WORKING_DIRECTORY>
80
81 The working directory used by the command. If not specified, it uses
82 the obj subdirectory of the current directory.
83
85 • Store the packages specified in the packages.csproj project file for
86 .NET 6.0.1:
87
88 dotnet store --manifest packages.csproj --framework-version 6.0.1 --framework net6.0 --runtime win-x64
89
90 • Store the packages specified in the packages.csproj without optimiza‐
91 tion:
92
93 dotnet store --manifest packages.csproj --skip-optimization --framework net6.0 --runtime linux-x64
94
96 • Runtime package store
97
98
99
100 2022-10-10 dotnet-store(1)