codekingpro commited on
Commit
f7a88ba
·
verified ·
1 Parent(s): a48938a

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. dotnet/sdk/9.0.313/Roslyn/Microsoft.Build.Tasks.CodeAnalysis.deps.json +318 -0
  2. dotnet/sdk/9.0.313/Roslyn/Microsoft.CSharp.Core.targets +202 -0
  3. dotnet/sdk/9.0.313/Roslyn/Microsoft.Managed.Core.CurrentVersions.targets +5 -0
  4. dotnet/sdk/9.0.313/Roslyn/Microsoft.Managed.Core.targets +357 -0
  5. dotnet/sdk/9.0.313/Roslyn/Microsoft.VisualBasic.Core.targets +167 -0
  6. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/Sdk/Sdk.props +28 -0
  7. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/Sdk/Sdk.targets +20 -0
  8. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/BlazorWasm.web.config +44 -0
  9. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets +707 -0
  10. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets +182 -0
  11. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.props +42 -0
  12. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets +53 -0
  13. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.ServiceWorkerAssetsManifest.5_0.targets +170 -0
  14. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net472/Microsoft.NET.Sdk.BlazorWebAssembly.Tasks.dll +0 -0
  15. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net9.0/Microsoft.NET.Sdk.BlazorWebAssembly.Tool.deps.json +100 -0
  16. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net9.0/Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll +0 -0
  17. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net9.0/Microsoft.NET.Sdk.BlazorWebAssembly.Tool.runtimeconfig.json +14 -0
  18. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/Sdk/Sdk.props +21 -0
  19. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/Sdk/Sdk.targets +17 -0
  20. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/ComputeTargets/Microsoft.NET.Sdk.Publish.ComputeFiles.targets +62 -0
  21. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/CopyTargets/Microsoft.NET.Sdk.Publish.CopyFiles.targets +157 -0
  22. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/CopyTargets/Microsoft.NET.Sdk.Publish.FilterFiles.targets +37 -0
  23. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/DotNetCLIToolTargets/Microsoft.NET.Sdk.DotNetCLITool.targets +129 -0
  24. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/Microsoft.NET.Sdk.Publish.props +18 -0
  25. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/Microsoft.NET.Sdk.Publish.targets +198 -0
  26. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/Default.pubxml +12 -0
  27. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultContainer.pubxml +6 -0
  28. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultMSDeploy.pubxml +11 -0
  29. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultMSDeployPackage.pubxml +10 -0
  30. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultOneDeploy.pubxml +13 -0
  31. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultWebJobOneDeploy.pubxml +15 -0
  32. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultZipDeploy.pubxml +13 -0
  33. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.Container.targets +17 -0
  34. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.Docker.targets +52 -0
  35. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.FileSystem.targets +101 -0
  36. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.Kudu.targets +60 -0
  37. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.MSDeploy.targets +375 -0
  38. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.MSDeployPackage.targets +325 -0
  39. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.OneDeploy.targets +68 -0
  40. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.ZipDeploy.targets +67 -0
  41. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/TransformTargets/Microsoft.NET.Sdk.Publish.TransformFiles.targets +261 -0
  42. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/TransformTargets/Transforms/EnvironmentNoLocation.transform +8 -0
  43. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/TransformTargets/Transforms/EnvironmentWithLocation.transform +10 -0
  44. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  45. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/Microsoft.Web.Deployment.Tracing.dll +0 -0
  46. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/Microsoft.Web.XmlTransform.dll +0 -0
  47. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.Buffers.dll +0 -0
  48. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.IO.Pipelines.dll +0 -0
  49. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  50. dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.Security.Cryptography.ProtectedData.dll +0 -0
dotnet/sdk/9.0.313/Roslyn/Microsoft.Build.Tasks.CodeAnalysis.deps.json ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v9.0",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v9.0": {
9
+ "Microsoft.Build.Tasks.CodeAnalysis/4.14.0-3.26064.1": {
10
+ "dependencies": {
11
+ "Microsoft.Build.Framework": "17.7.2",
12
+ "Microsoft.Build.Tasks.Core": "17.7.2",
13
+ "Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0-preview.23468.1",
14
+ "Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers": "3.3.4-beta1.22504.1",
15
+ "Microsoft.DotNet.XliffTasks": "9.0.0-beta.25626.6",
16
+ "Microsoft.VisualStudio.Threading.Analyzers": "17.13.2",
17
+ "Roslyn.Diagnostics.Analyzers": "3.11.0-beta1.24081.1"
18
+ },
19
+ "runtime": {
20
+ "Microsoft.Build.Tasks.CodeAnalysis.dll": {}
21
+ },
22
+ "resources": {
23
+ "cs/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
24
+ "locale": "cs"
25
+ },
26
+ "de/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
27
+ "locale": "de"
28
+ },
29
+ "es/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
30
+ "locale": "es"
31
+ },
32
+ "fr/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
33
+ "locale": "fr"
34
+ },
35
+ "it/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
36
+ "locale": "it"
37
+ },
38
+ "ja/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
39
+ "locale": "ja"
40
+ },
41
+ "ko/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
42
+ "locale": "ko"
43
+ },
44
+ "pl/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
45
+ "locale": "pl"
46
+ },
47
+ "pt-BR/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
48
+ "locale": "pt-BR"
49
+ },
50
+ "ru/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
51
+ "locale": "ru"
52
+ },
53
+ "tr/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
54
+ "locale": "tr"
55
+ },
56
+ "zh-Hans/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
57
+ "locale": "zh-Hans"
58
+ },
59
+ "zh-Hant/Microsoft.Build.Tasks.CodeAnalysis.resources.dll": {
60
+ "locale": "zh-Hant"
61
+ }
62
+ }
63
+ },
64
+ "Microsoft.Build.Framework/17.7.2": {
65
+ "dependencies": {
66
+ "System.Security.Permissions": "9.0.0"
67
+ }
68
+ },
69
+ "Microsoft.Build.Tasks.Core/17.7.2": {
70
+ "dependencies": {
71
+ "Microsoft.Build.Framework": "17.7.2",
72
+ "Microsoft.Build.Utilities.Core": "17.7.2",
73
+ "Microsoft.NET.StringTools": "17.7.2",
74
+ "Microsoft.VisualStudio.Setup.Configuration.Interop": "3.2.2146",
75
+ "System.CodeDom": "7.0.0",
76
+ "System.Collections.Immutable": "9.0.0",
77
+ "System.Configuration.ConfigurationManager": "9.0.0",
78
+ "System.Resources.Extensions": "9.0.0",
79
+ "System.Security.Cryptography.Pkcs": "7.0.2",
80
+ "System.Security.Cryptography.Xml": "7.0.1",
81
+ "System.Security.Permissions": "9.0.0"
82
+ }
83
+ },
84
+ "Microsoft.Build.Utilities.Core/17.7.2": {
85
+ "dependencies": {
86
+ "Microsoft.Build.Framework": "17.7.2",
87
+ "Microsoft.NET.StringTools": "17.7.2",
88
+ "Microsoft.VisualStudio.Setup.Configuration.Interop": "3.2.2146",
89
+ "System.Collections.Immutable": "9.0.0",
90
+ "System.Configuration.ConfigurationManager": "9.0.0",
91
+ "System.Security.Permissions": "9.0.0"
92
+ }
93
+ },
94
+ "Microsoft.CodeAnalysis.BannedApiAnalyzers/3.11.0-beta1.24081.1": {},
95
+ "Microsoft.CodeAnalysis.NetAnalyzers/8.0.0-preview.23468.1": {},
96
+ "Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers/3.3.4-beta1.22504.1": {},
97
+ "Microsoft.CodeAnalysis.PublicApiAnalyzers/3.11.0-beta1.24081.1": {},
98
+ "Microsoft.DotNet.XliffTasks/9.0.0-beta.25626.6": {},
99
+ "Microsoft.NET.StringTools/17.7.2": {},
100
+ "Microsoft.VisualStudio.Setup.Configuration.Interop/3.2.2146": {},
101
+ "Microsoft.VisualStudio.Threading.Analyzers/17.13.2": {},
102
+ "Roslyn.Diagnostics.Analyzers/3.11.0-beta1.24081.1": {
103
+ "dependencies": {
104
+ "Microsoft.CodeAnalysis.BannedApiAnalyzers": "3.11.0-beta1.24081.1",
105
+ "Microsoft.CodeAnalysis.PublicApiAnalyzers": "3.11.0-beta1.24081.1"
106
+ }
107
+ },
108
+ "System.CodeDom/7.0.0": {},
109
+ "System.Collections.Immutable/9.0.0": {},
110
+ "System.Configuration.ConfigurationManager/9.0.0": {
111
+ "dependencies": {
112
+ "System.Diagnostics.EventLog": "9.0.0",
113
+ "System.Security.Cryptography.ProtectedData": "9.0.0"
114
+ }
115
+ },
116
+ "System.Diagnostics.EventLog/9.0.0": {},
117
+ "System.Formats.Asn1/7.0.0": {},
118
+ "System.Formats.Nrbf/9.0.0": {},
119
+ "System.Resources.Extensions/9.0.0": {
120
+ "dependencies": {
121
+ "System.Formats.Nrbf": "9.0.0"
122
+ }
123
+ },
124
+ "System.Security.Cryptography.Pkcs/7.0.2": {
125
+ "dependencies": {
126
+ "System.Formats.Asn1": "7.0.0"
127
+ }
128
+ },
129
+ "System.Security.Cryptography.ProtectedData/9.0.0": {},
130
+ "System.Security.Cryptography.Xml/7.0.1": {
131
+ "dependencies": {
132
+ "System.Security.Cryptography.Pkcs": "7.0.2"
133
+ }
134
+ },
135
+ "System.Security.Permissions/9.0.0": {
136
+ "dependencies": {
137
+ "System.Windows.Extensions": "9.0.0"
138
+ }
139
+ },
140
+ "System.Windows.Extensions/9.0.0": {}
141
+ }
142
+ },
143
+ "libraries": {
144
+ "Microsoft.Build.Tasks.CodeAnalysis/4.14.0-3.26064.1": {
145
+ "type": "project",
146
+ "serviceable": false,
147
+ "sha512": ""
148
+ },
149
+ "Microsoft.Build.Framework/17.7.2": {
150
+ "type": "package",
151
+ "serviceable": true,
152
+ "sha512": "sha512-F+SglYQv6ij5RK4Bmd1X4q01E2ry4M8/huTIZ/1Vk7ZoxdT2J3vmV23cnJZsA/ZLunOTv3B905TU5J1eFmWNPw==",
153
+ "path": "microsoft.build.framework/17.7.2",
154
+ "hashPath": "microsoft.build.framework.17.7.2.nupkg.sha512"
155
+ },
156
+ "Microsoft.Build.Tasks.Core/17.7.2": {
157
+ "type": "package",
158
+ "serviceable": true,
159
+ "sha512": "sha512-CmI+mDQ44GWVv0mxFcGYlvek838kK3PgNvXPo/1/Q5/Tc97tajO611uZAj2wNfwJ1kjsCef2Mza4d+SVSyd3Mg==",
160
+ "path": "microsoft.build.tasks.core/17.7.2",
161
+ "hashPath": "microsoft.build.tasks.core.17.7.2.nupkg.sha512"
162
+ },
163
+ "Microsoft.Build.Utilities.Core/17.7.2": {
164
+ "type": "package",
165
+ "serviceable": true,
166
+ "sha512": "sha512-soXfaIBW904uEP6WTDv7EbiT0vRfBdNIcqOOEOfyy27WEa8DaXVPQJYSlsDGycS7uTnYU8vlROJbbmlCTBL7hg==",
167
+ "path": "microsoft.build.utilities.core/17.7.2",
168
+ "hashPath": "microsoft.build.utilities.core.17.7.2.nupkg.sha512"
169
+ },
170
+ "Microsoft.CodeAnalysis.BannedApiAnalyzers/3.11.0-beta1.24081.1": {
171
+ "type": "package",
172
+ "serviceable": true,
173
+ "sha512": "sha512-DH6L3rsbjppLrHM2l2/NKbnMaYd0NFHx2pjZaFdrVcRkONrV3i9FHv6Id8Dp6/TmjhXQsJVJJFbhhjkpuP1xxg==",
174
+ "path": "microsoft.codeanalysis.bannedapianalyzers/3.11.0-beta1.24081.1",
175
+ "hashPath": "microsoft.codeanalysis.bannedapianalyzers.3.11.0-beta1.24081.1.nupkg.sha512"
176
+ },
177
+ "Microsoft.CodeAnalysis.NetAnalyzers/8.0.0-preview.23468.1": {
178
+ "type": "package",
179
+ "serviceable": true,
180
+ "sha512": "sha512-ZhIvyxmUCqb8OiU/VQfxfuAmIB4lQsjqhMVYKeoyxzSI+d7uR5Pzx3ZKoaIhPizQ15wa4lnyD6wg3TnSJ6P4LA==",
181
+ "path": "microsoft.codeanalysis.netanalyzers/8.0.0-preview.23468.1",
182
+ "hashPath": "microsoft.codeanalysis.netanalyzers.8.0.0-preview.23468.1.nupkg.sha512"
183
+ },
184
+ "Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers/3.3.4-beta1.22504.1": {
185
+ "type": "package",
186
+ "serviceable": true,
187
+ "sha512": "sha512-2XRlqPAzVke7Sb80+UqaC7o57OwfK+tIr+aIOxrx41RWDMeR2SBUW7kL4sd6hfLFfBNsLo3W5PT+UwfvwPaOzA==",
188
+ "path": "microsoft.codeanalysis.performancesensitiveanalyzers/3.3.4-beta1.22504.1",
189
+ "hashPath": "microsoft.codeanalysis.performancesensitiveanalyzers.3.3.4-beta1.22504.1.nupkg.sha512"
190
+ },
191
+ "Microsoft.CodeAnalysis.PublicApiAnalyzers/3.11.0-beta1.24081.1": {
192
+ "type": "package",
193
+ "serviceable": true,
194
+ "sha512": "sha512-3bYGBihvoNO0rhCOG1U9O50/4Q8suZ+glHqQLIAcKvnodSnSW+dYWYzTNb1UbS8pUS8nAUfxSFMwuMup/G5DtQ==",
195
+ "path": "microsoft.codeanalysis.publicapianalyzers/3.11.0-beta1.24081.1",
196
+ "hashPath": "microsoft.codeanalysis.publicapianalyzers.3.11.0-beta1.24081.1.nupkg.sha512"
197
+ },
198
+ "Microsoft.DotNet.XliffTasks/9.0.0-beta.25626.6": {
199
+ "type": "package",
200
+ "serviceable": true,
201
+ "sha512": "sha512-U1VVEoLaO8ByojEuhLHif4qN9H4rxLUR525R71D6uXWKE1G2B1h2xF6/OC4cMrw+X+Gqzo910Rsmb2o8Tc9q1A==",
202
+ "path": "microsoft.dotnet.xlifftasks/9.0.0-beta.25626.6",
203
+ "hashPath": "microsoft.dotnet.xlifftasks.9.0.0-beta.25626.6.nupkg.sha512"
204
+ },
205
+ "Microsoft.NET.StringTools/17.7.2": {
206
+ "type": "package",
207
+ "serviceable": true,
208
+ "sha512": "sha512-GDm2qPXJeWR4FSwY90zYZ+Wd0CN4FE+Nu2F57Vu8avatMzNQxV9WaVEBZFKbT4JLhNcXKc0CKBO50oVoRJR5BQ==",
209
+ "path": "microsoft.net.stringtools/17.7.2",
210
+ "hashPath": "microsoft.net.stringtools.17.7.2.nupkg.sha512"
211
+ },
212
+ "Microsoft.VisualStudio.Setup.Configuration.Interop/3.2.2146": {
213
+ "type": "package",
214
+ "serviceable": true,
215
+ "sha512": "sha512-gMq8uGy8zTIp0kQGTI45buZC3JOStGJyjGD8gksskk83aQISW65IESErLE/WDT7Bdy+QWbdUi7QyO1LEzUSOFA==",
216
+ "path": "microsoft.visualstudio.setup.configuration.interop/3.2.2146",
217
+ "hashPath": "microsoft.visualstudio.setup.configuration.interop.3.2.2146.nupkg.sha512"
218
+ },
219
+ "Microsoft.VisualStudio.Threading.Analyzers/17.13.2": {
220
+ "type": "package",
221
+ "serviceable": true,
222
+ "sha512": "sha512-Qcd8IlaTXZVq3wolBnzby1P7kWihdWaExtD8riumiKuG1sHa8EgjV/o70TMjTaeUMhomBbhfdC9OPwAHoZfnjQ==",
223
+ "path": "microsoft.visualstudio.threading.analyzers/17.13.2",
224
+ "hashPath": "microsoft.visualstudio.threading.analyzers.17.13.2.nupkg.sha512"
225
+ },
226
+ "Roslyn.Diagnostics.Analyzers/3.11.0-beta1.24081.1": {
227
+ "type": "package",
228
+ "serviceable": true,
229
+ "sha512": "sha512-reHqZCDKifA+DURcL8jUfYkMGL4FpgNt5LI0uWTS6IpM8kKVbu/kO8byZsqfhBu4wUzT3MBDcoMfzhZPdENIpg==",
230
+ "path": "roslyn.diagnostics.analyzers/3.11.0-beta1.24081.1",
231
+ "hashPath": "roslyn.diagnostics.analyzers.3.11.0-beta1.24081.1.nupkg.sha512"
232
+ },
233
+ "System.CodeDom/7.0.0": {
234
+ "type": "package",
235
+ "serviceable": true,
236
+ "sha512": "sha512-GLltyqEsE5/3IE+zYRP5sNa1l44qKl9v+bfdMcwg+M9qnQf47wK3H0SUR/T+3N4JEQXF3vV4CSuuo0rsg+nq2A==",
237
+ "path": "system.codedom/7.0.0",
238
+ "hashPath": "system.codedom.7.0.0.nupkg.sha512"
239
+ },
240
+ "System.Collections.Immutable/9.0.0": {
241
+ "type": "package",
242
+ "serviceable": true,
243
+ "sha512": "sha512-QhkXUl2gNrQtvPmtBTQHb0YsUrDiDQ2QS09YbtTTiSjGcf7NBqtYbrG/BE06zcBPCKEwQGzIv13IVdXNOSub2w==",
244
+ "path": "system.collections.immutable/9.0.0",
245
+ "hashPath": "system.collections.immutable.9.0.0.nupkg.sha512"
246
+ },
247
+ "System.Configuration.ConfigurationManager/9.0.0": {
248
+ "type": "package",
249
+ "serviceable": true,
250
+ "sha512": "sha512-PdkuMrwDhXoKFo/JxISIi9E8L+QGn9Iquj2OKDWHB6Y/HnUOuBouF7uS3R4Hw3FoNmwwMo6hWgazQdyHIIs27A==",
251
+ "path": "system.configuration.configurationmanager/9.0.0",
252
+ "hashPath": "system.configuration.configurationmanager.9.0.0.nupkg.sha512"
253
+ },
254
+ "System.Diagnostics.EventLog/9.0.0": {
255
+ "type": "package",
256
+ "serviceable": true,
257
+ "sha512": "sha512-qd01+AqPhbAG14KtdtIqFk+cxHQFZ/oqRSCoxU1F+Q6Kv0cl726sl7RzU9yLFGd4BUOKdN4XojXF0pQf/R6YeA==",
258
+ "path": "system.diagnostics.eventlog/9.0.0",
259
+ "hashPath": "system.diagnostics.eventlog.9.0.0.nupkg.sha512"
260
+ },
261
+ "System.Formats.Asn1/7.0.0": {
262
+ "type": "package",
263
+ "serviceable": true,
264
+ "sha512": "sha512-+nfpV0afLmvJW8+pLlHxRjz3oZJw4fkyU9MMEaMhCsHi/SN9bGF9q79ROubDiwTiCHezmK0uCWkPP7tGFP/4yg==",
265
+ "path": "system.formats.asn1/7.0.0",
266
+ "hashPath": "system.formats.asn1.7.0.0.nupkg.sha512"
267
+ },
268
+ "System.Formats.Nrbf/9.0.0": {
269
+ "type": "package",
270
+ "serviceable": true,
271
+ "sha512": "sha512-F/6tNE+ckmdFeSQAyQo26bQOqfPFKEfZcuqnp4kBE6/7jP26diP+QTHCJJ6vpEfaY6bLy+hBLiIQUSxSmNwLkA==",
272
+ "path": "system.formats.nrbf/9.0.0",
273
+ "hashPath": "system.formats.nrbf.9.0.0.nupkg.sha512"
274
+ },
275
+ "System.Resources.Extensions/9.0.0": {
276
+ "type": "package",
277
+ "serviceable": true,
278
+ "sha512": "sha512-tvhuT1D2OwPROdL1kRWtaTJliQo0WdyhvwDpd8RM997G7m3Hya5nhbYhNTS75x6Vu+ypSOgL5qxDCn8IROtCxw==",
279
+ "path": "system.resources.extensions/9.0.0",
280
+ "hashPath": "system.resources.extensions.9.0.0.nupkg.sha512"
281
+ },
282
+ "System.Security.Cryptography.Pkcs/7.0.2": {
283
+ "type": "package",
284
+ "serviceable": true,
285
+ "sha512": "sha512-xhFNJOcQSWhpiVGLLBQYoxAltQSQVycMkwaX1z7I7oEdT9Wr0HzSM1yeAbfoHaERIYd5s6EpLSOLs2qMchSKlA==",
286
+ "path": "system.security.cryptography.pkcs/7.0.2",
287
+ "hashPath": "system.security.cryptography.pkcs.7.0.2.nupkg.sha512"
288
+ },
289
+ "System.Security.Cryptography.ProtectedData/9.0.0": {
290
+ "type": "package",
291
+ "serviceable": true,
292
+ "sha512": "sha512-CJW+x/F6fmRQ7N6K8paasTw9PDZp4t7G76UjGNlSDgoHPF0h08vTzLYbLZpOLEJSg35d5wy2jCXGo84EN05DpQ==",
293
+ "path": "system.security.cryptography.protecteddata/9.0.0",
294
+ "hashPath": "system.security.cryptography.protecteddata.9.0.0.nupkg.sha512"
295
+ },
296
+ "System.Security.Cryptography.Xml/7.0.1": {
297
+ "type": "package",
298
+ "serviceable": true,
299
+ "sha512": "sha512-MCxBCtH0GrDuvU63ZODwQHQZPchb24pUAX3MfZ6b13qg246ZD10PRdOvay8C9HBPfCXkymUNwFPEegud7ax2zg==",
300
+ "path": "system.security.cryptography.xml/7.0.1",
301
+ "hashPath": "system.security.cryptography.xml.7.0.1.nupkg.sha512"
302
+ },
303
+ "System.Security.Permissions/9.0.0": {
304
+ "type": "package",
305
+ "serviceable": true,
306
+ "sha512": "sha512-H2VFD4SFVxieywNxn9/epb63/IOcPPfA0WOtfkljzNfu7GCcHIBQNuwP6zGCEIi7Ci/oj8aLPUNK9sYImMFf4Q==",
307
+ "path": "system.security.permissions/9.0.0",
308
+ "hashPath": "system.security.permissions.9.0.0.nupkg.sha512"
309
+ },
310
+ "System.Windows.Extensions/9.0.0": {
311
+ "type": "package",
312
+ "serviceable": true,
313
+ "sha512": "sha512-U9msthvnH2Fsw7xwAvIhNHOdnIjOQTwOc8Vd0oGOsiRcGMGoBFlUD6qtYawRUoQdKH9ysxesZ9juFElt1Jw/7A==",
314
+ "path": "system.windows.extensions/9.0.0",
315
+ "hashPath": "system.windows.extensions.9.0.0.nupkg.sha512"
316
+ }
317
+ }
318
+ }
dotnet/sdk/9.0.313/Roslyn/Microsoft.CSharp.Core.targets ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
3
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4
+ <Import Project="Microsoft.Managed.Core.targets"/>
5
+
6
+ <PropertyGroup>
7
+ <!-- .NETCoreApp < 3.0, .NETStandard < 2.1, or any other target framework -->
8
+ <_MaxSupportedLangVersion Condition="('$(TargetFrameworkIdentifier)' != '.NETCoreApp' OR '$(_TargetFrameworkVersionWithoutV)' &lt; '3.0') AND
9
+ ('$(TargetFrameworkIdentifier)' != '.NETStandard' OR '$(_TargetFrameworkVersionWithoutV)' &lt; '2.1')">7.3</_MaxSupportedLangVersion>
10
+
11
+ <!-- .NETCoreApp < 5.0, .NETStandard == 2.1 -->
12
+ <_MaxSupportedLangVersion Condition="(('$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(_TargetFrameworkVersionWithoutV)' &lt; '5.0') OR
13
+ ('$(TargetFrameworkIdentifier)' == '.NETStandard' AND '$(_TargetFrameworkVersionWithoutV)' == '2.1')) AND
14
+ '$(_MaxSupportedLangVersion)' == ''">8.0</_MaxSupportedLangVersion>
15
+
16
+ <!--
17
+ Automatically calculate the maximum supported C# language version based on the .NET Target Framework.
18
+ - Pattern: .NET 5.0 uses C# 9.0, .NET 6.0 uses C# 10.0, and so on.
19
+ - Starting from C# 9.0 for .NET 5.0, we add the difference between the major .NET version and 5
20
+ to determine the correct language version.
21
+ NOTE: `.Split('.')[0]` needed due to https://github.com/dotnet/msbuild/issues/9757.
22
+ -->
23
+ <_MaxSupportedLangVersion Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND
24
+ '$(_MaxSupportedLangVersion)' == ''">$([MSBuild]::Add(9, $([MSBuild]::Subtract($(_TargetFrameworkVersionWithoutV.Split('.')[0]), 5)))).0</_MaxSupportedLangVersion>
25
+
26
+ <!-- Cap _MaxSupportedLangVersion if it exceeds _MaxAvailableLangVersion -->
27
+ <_MaxAvailableLangVersion>13.0</_MaxAvailableLangVersion>
28
+ <_MaxSupportedLangVersion Condition="'$(_MaxSupportedLangVersion)' != '' AND
29
+ '$(_MaxSupportedLangVersion)' &gt; '$(_MaxAvailableLangVersion)'">$(_MaxAvailableLangVersion)</_MaxSupportedLangVersion>
30
+
31
+ <MaxSupportedLangVersion>$(_MaxSupportedLangVersion)</MaxSupportedLangVersion>
32
+ <LangVersion Condition="'$(LangVersion)' == '' AND '$(_MaxSupportedLangVersion)' != ''">$(_MaxSupportedLangVersion)</LangVersion>
33
+ </PropertyGroup>
34
+
35
+ <Target Name="CoreCompile"
36
+ Inputs="$(MSBuildAllProjects);
37
+ @(Compile);
38
+ @(_CoreCompileResourceInputs);
39
+ $(ApplicationIcon);
40
+ $(KeyOriginatorFile);
41
+ @(ReferencePathWithRefAssemblies);
42
+ @(CompiledLicenseFile);
43
+ @(LinkResource);
44
+ @(EmbeddedDocumentation);
45
+ $(Win32Resource);
46
+ $(Win32Manifest);
47
+ @(CustomAdditionalCompileInputs);
48
+ $(ResolvedCodeAnalysisRuleSet);
49
+ @(AdditionalFiles);
50
+ @(EmbeddedFiles);
51
+ @(Analyzer);
52
+ @(EditorConfigFiles);
53
+ $(SourceLink)"
54
+ Outputs="@(DocFileItem);
55
+ @(IntermediateAssembly);
56
+ @(IntermediateRefAssembly);
57
+ @(_DebugSymbolsIntermediatePath);
58
+ $(NonExistentFile);
59
+ @(CustomAdditionalCompileOutputs)"
60
+ Returns="@(CscCommandLineArgs)"
61
+ DependsOnTargets="$(CoreCompileDependsOn);_BeforeVBCSCoreCompile">
62
+ <!-- These two compiler warnings are raised when a reference is bound to a different version
63
+ than specified in the assembly reference version number. MSBuild raises the same warning in this case,
64
+ so the compiler warning would be redundant. -->
65
+ <PropertyGroup Condition="('$(TargetFrameworkVersion)' != 'v1.0') and ('$(TargetFrameworkVersion)' != 'v1.1')">
66
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
67
+ </PropertyGroup>
68
+
69
+ <PropertyGroup>
70
+ <!-- To match historical behavior, when inside VS11+ disable the warning from csc.exe indicating that no sources were passed in-->
71
+ <NoWarn Condition="'$(BuildingInsideVisualStudio)' == 'true' AND '$(VisualStudioVersion)' != '' AND '$(VisualStudioVersion)' &gt; '10.0'">$(NoWarn);2008</NoWarn>
72
+ </PropertyGroup>
73
+
74
+ <PropertyGroup>
75
+ <!-- If the user has specified AppConfigForCompiler, we'll use it. If they have not, but they set UseAppConfigForCompiler,
76
+ then we'll use AppConfig -->
77
+ <AppConfigForCompiler Condition="'$(AppConfigForCompiler)' == '' AND '$(UseAppConfigForCompiler)' == 'true'">$(AppConfig)</AppConfigForCompiler>
78
+
79
+ <!-- If we are targeting winmdobj we want to specifically the pdbFile property since we do not want it to collide with the output of winmdexp-->
80
+ <PdbFile Condition="'$(PdbFile)' == '' AND '$(OutputType)' == 'winmdobj' AND '$(_DebugSymbolsProduced)' == 'true'">$(IntermediateOutputPath)$(TargetName).compile.pdb</PdbFile>
81
+ </PropertyGroup>
82
+
83
+ <!-- Condition is to filter out the _CoreCompileResourceInputs so that it doesn't pass in culture resources to the compiler -->
84
+ <Csc Condition="'%(_CoreCompileResourceInputs.WithCulture)' != 'true'"
85
+ AdditionalLibPaths="$(AdditionalLibPaths)"
86
+ AddModules="@(AddModules)"
87
+ AdditionalFiles="@(AdditionalFiles)"
88
+ AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
89
+ AnalyzerConfigFiles="@(EditorConfigFiles)"
90
+ Analyzers="@(Analyzer)"
91
+ ApplicationConfiguration="$(AppConfigForCompiler)"
92
+ BaseAddress="$(BaseAddress)"
93
+ CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
94
+ ChecksumAlgorithm="$(ChecksumAlgorithm)"
95
+ CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)"
96
+ CodePage="$(CodePage)"
97
+ DebugType="$(DebugType)"
98
+ DefineConstants="$(DefineConstants)"
99
+ DelaySign="$(DelaySign)"
100
+ DisabledWarnings="$(NoWarn)"
101
+ DisableSdkPath="$(DisableSdkPath)"
102
+ DocumentationFile="@(DocFileItem)"
103
+ EmbedAllSources="$(EmbedAllSources)"
104
+ EmbeddedFiles="@(EmbeddedFiles)"
105
+ EmitDebugInformation="$(DebugSymbols)"
106
+ EnvironmentVariables="$(CscEnvironment)"
107
+ ErrorEndLocation="$(ErrorEndLocation)"
108
+ ErrorLog="$(ErrorLog)"
109
+ ErrorReport="$(ErrorReport)"
110
+ Features="$(Features)"
111
+ InterceptorsNamespaces="$(InterceptorsNamespaces)"
112
+ InterceptorsPreviewNamespaces="$(InterceptorsPreviewNamespaces)"
113
+ FileAlignment="$(FileAlignment)"
114
+ GeneratedFilesOutputPath="$(CompilerGeneratedFilesOutputPath)"
115
+ GenerateFullPaths="$(GenerateFullPaths)"
116
+ HighEntropyVA="$(HighEntropyVA)"
117
+ Instrument="$(Instrument)"
118
+ KeyContainer="$(KeyContainerName)"
119
+ KeyFile="$(KeyOriginatorFile)"
120
+ LangVersion="$(LangVersion)"
121
+ LinkResources="@(LinkResource)"
122
+ MainEntryPoint="$(StartupObject)"
123
+ ModuleAssemblyName="$(ModuleAssemblyName)"
124
+ NoConfig="true"
125
+ NoLogo="$(NoLogo)"
126
+ NoStandardLib="$(NoCompilerStandardLib)"
127
+ NoWin32Manifest="$(NoWin32Manifest)"
128
+ Nullable="$(Nullable)"
129
+ Optimize="$(Optimize)"
130
+ Deterministic="$(Deterministic)"
131
+ PublicSign="$(PublicSign)"
132
+ OutputAssembly="@(IntermediateAssembly)"
133
+ OutputRefAssembly="@(IntermediateRefAssembly)"
134
+ PdbFile="$(PdbFile)"
135
+ Platform="$(PlatformTarget)"
136
+ Prefer32Bit="$(Prefer32Bit)"
137
+ PreferredUILang="$(PreferredUILang)"
138
+ ProjectName="$(MSBuildProjectName)"
139
+ ProvideCommandLineArgs="$(ProvideCommandLineArgs)"
140
+ References="@(ReferencePathWithRefAssemblies)"
141
+ RefOnly="$(ProduceOnlyReferenceAssembly)"
142
+ ReportAnalyzer="$(ReportAnalyzer)"
143
+ ReportIVTs="$(ReportIVTs)"
144
+ Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)"
145
+ ResponseFiles="$(CompilerResponseFile)"
146
+ RuntimeMetadataVersion="$(RuntimeMetadataVersion)"
147
+ SharedCompilationId="$(SharedCompilationId)"
148
+ SkipAnalyzers="$(_SkipAnalyzers)"
149
+ SkipCompilerExecution="$(SkipCompilerExecution)"
150
+ Sources="@(Compile)"
151
+ SubsystemVersion="$(SubsystemVersion)"
152
+ TargetType="$(OutputType)"
153
+ TargetFramework="$(TargetFramework)"
154
+ ToolExe="$(CscToolExe)"
155
+ ToolPath="$(CscToolPath)"
156
+ TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
157
+ UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
158
+ UseSharedCompilation="$(UseSharedCompilation)"
159
+ Utf8Output="$(Utf8Output)"
160
+ VsSessionGuid="$(VsSessionGuid)"
161
+ WarningLevel="$(WarningLevel)"
162
+ WarningsAsErrors="$(WarningsAsErrors)"
163
+ WarningsNotAsErrors="$(WarningsNotAsErrors)"
164
+ Win32Icon="$(ApplicationIcon)"
165
+ Win32Manifest="$(Win32Manifest)"
166
+ Win32Resource="$(Win32Resource)"
167
+ PathMap="$(PathMap)"
168
+ SourceLink="$(SourceLink)">
169
+ <Output TaskParameter="CommandLineArgs" ItemName="CscCommandLineArgs" />
170
+ </Csc>
171
+
172
+ <ItemGroup>
173
+ <_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" />
174
+ </ItemGroup>
175
+
176
+ <CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''" />
177
+ </Target>
178
+
179
+ <!-- When we load a project in Visual Studio, the project system first does an evaluation pass of the
180
+ project, and hands the resulting list of <Compile> items to the language service. It then does an
181
+ execution pass executing CoreCompile passing SkipCompilerExecution=true and ProvideCommandLineArgs=true,
182
+ that resulting command line string is where we get our compiler switches. The execution pass is much
183
+ slower than the evaluation pass, so there's a window of time where we have a list of files, but not
184
+ any options yet.
185
+
186
+ Because there's a gap, that means there's a time where we are parsing source files with the default
187
+ parse options. We'll then have to reparse them a second time which isn't great. It also means any
188
+ cache lookups we do won't have the right options either, so the cache lookups might miss.
189
+
190
+ To help this, we'll have properties for the evaluation pass which is an "approximation" of the
191
+ options that would come out of CoreCompile, but only the ones that are required to be specified
192
+ and we don't expect them to change after evaluation phase or those that matter for parsing.
193
+
194
+ It's acceptable for the options that affect parsing to be imperfect: once the execution pass is complete we'll use those options instead,
195
+ so any behaviors here that don't match the real command line generation will only be temporary, and
196
+ probably won't be any worse than having no options at all. -->
197
+ <PropertyGroup>
198
+ <CommandLineArgsForDesignTimeEvaluation>-langversion:$(LangVersion)</CommandLineArgsForDesignTimeEvaluation>
199
+ <CommandLineArgsForDesignTimeEvaluation Condition="'$(ChecksumAlgorithm)' != ''">$(CommandLineArgsForDesignTimeEvaluation) -checksumalgorithm:$(ChecksumAlgorithm)</CommandLineArgsForDesignTimeEvaluation>
200
+ <CommandLineArgsForDesignTimeEvaluation Condition="'$(DefineConstants)' != ''">$(CommandLineArgsForDesignTimeEvaluation) -define:$(DefineConstants)</CommandLineArgsForDesignTimeEvaluation>
201
+ </PropertyGroup>
202
+ </Project>
dotnet/sdk/9.0.313/Roslyn/Microsoft.Managed.Core.CurrentVersions.targets ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ <Project>
2
+ <PropertyGroup>
3
+ <CompilerApiVersion>roslyn4.14</CompilerApiVersion>
4
+ </PropertyGroup>
5
+ </Project>
dotnet/sdk/9.0.313/Roslyn/Microsoft.Managed.Core.targets ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
3
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4
+ <!--
5
+ Common targets for managed compilers.
6
+ -->
7
+ <UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.MapSourceRoots" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.Tasks.CodeAnalysis.dll" />
8
+
9
+ <Import Project="Microsoft.Managed.Core.CurrentVersions.targets" />
10
+
11
+ <Target Name="ShimReferencePathsWhenCommonTargetsDoesNotUnderstandReferenceAssemblies"
12
+ BeforeTargets="CoreCompile"
13
+ Condition="'@(ReferencePathWithRefAssemblies)' == ''">
14
+ <!--
15
+ FindReferenceAssembliesForReferences target in Common targets populate this item
16
+ since dev15.3. The compiler targets may be used (via NuGet package) on earlier MSBuilds.
17
+ If the ReferencePathWithRefAssemblies item is not populated, just use ReferencePaths
18
+ (implementation assemblies) as they are.
19
+
20
+ Since XAML inner build runs CoreCompile directly (instead of Compile target),
21
+ it also doesn't invoke FindReferenceAssembliesForReferences listed in CompileDependsOn.
22
+ In that case we also populate ReferencePathWithRefAssemblies with implementation assemblies.
23
+ -->
24
+ <ItemGroup>
25
+ <ReferencePathWithRefAssemblies Include="@(ReferencePath)" />
26
+ </ItemGroup>
27
+ </Target>
28
+
29
+ <Target Name="_BeforeVBCSCoreCompile"
30
+ DependsOnTargets="ShimReferencePathsWhenCommonTargetsDoesNotUnderstandReferenceAssemblies">
31
+
32
+ <ItemGroup Condition="'$(TargetingClr2Framework)' == 'true'">
33
+ <ReferencePathWithRefAssemblies>
34
+ <EmbedInteropTypes />
35
+ </ReferencePathWithRefAssemblies>
36
+ </ItemGroup>
37
+
38
+ <!-- Prefer32Bit was introduced in .NET 4.5. Set it to false if we are targeting 4.0 -->
39
+ <PropertyGroup Condition="('$(TargetFrameworkVersion)' == 'v4.0')">
40
+ <Prefer32Bit>false</Prefer32Bit>
41
+ </PropertyGroup>
42
+
43
+ <!-- TODO: Remove this ItemGroup once it has been moved to "_GenerateCompileInputs" target in Microsoft.Common.CurrentVersion.targets.
44
+ https://github.com/dotnet/roslyn/issues/12223 -->
45
+ <ItemGroup Condition="('$(AdditionalFileItemNames)' != '')">
46
+ <AdditionalFileItems Include="$(AdditionalFileItemNames)" />
47
+ <AdditionalFiles Include="@(%(AdditionalFileItems.Identity))" />
48
+ </ItemGroup>
49
+
50
+ <PropertyGroup Condition="'$(UseSharedCompilation)' == ''">
51
+ <UseSharedCompilation>true</UseSharedCompilation>
52
+ </PropertyGroup>
53
+ </Target>
54
+
55
+ <!--
56
+ ========================
57
+ SkipAnalyzers Support
58
+ ========================
59
+
60
+ -->
61
+ <UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.ShowMessageForImplicitlySkipAnalyzers" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.Tasks.CodeAnalysis.dll" />
62
+
63
+ <Target Name="_ComputeSkipAnalyzers" BeforeTargets="CoreCompile">
64
+ <!-- First, force clear non-user facing properties '_SkipAnalyzers' and '_ImplicitlySkipAnalyzers'. -->
65
+ <PropertyGroup>
66
+ <_SkipAnalyzers></_SkipAnalyzers>
67
+ <_ImplicitlySkipAnalyzers></_ImplicitlySkipAnalyzers>
68
+ </PropertyGroup>
69
+
70
+ <!--
71
+ Then, determine if '_SkipAnalyzers' needs to be 'true' based on user facing property 'RunAnalyzers'.
72
+ If 'RunAnalyzers' is not set, then fallback to user facing property 'RunAnalyzersDuringBuild'.
73
+ Latter property allows users to disable analyzers only for non-design time builds.
74
+ Design time builds are background builds inside Visual Studio,
75
+ see details here: https://github.com/dotnet/project-system/blob/main/docs/design-time-builds.md.
76
+ Setting 'RunAnalyzersDuringBuild' to false, without setting 'RunAnalyzers', allows users to
77
+ continue running analyzers in the background in Visual Studio while typing (i.e. intellisense),
78
+ while disabling analyzer execution on explicitly invoked non-design time builds.
79
+ -->
80
+ <PropertyGroup Condition="'$(RunAnalyzers)' == 'false' or
81
+ ('$(RunAnalyzers)' == '' and '$(RunAnalyzersDuringBuild)' == 'false')">
82
+ <_SkipAnalyzers>true</_SkipAnalyzers>
83
+ </PropertyGroup>
84
+
85
+ <!-- PERF: For builds which are indirectly triggered inside Visual Studio from commands
86
+ such as from 'Run Tests' or 'Start Debugging', we implicitly skip analyzers and nullable analysis to speed up the build.
87
+ We only do so by default when 'TreatWarningsAsErrors' is not 'true'. For the scenario where
88
+ 'TreatWarningsAsErrors' is 'true', users can explicitly enable this functionality by setting
89
+ 'OptimizeImplicitlyTriggeredBuild' to 'true'.
90
+ NOTE: This feature is currently supported only for SDK-style projects, i.e. UsingMicrosoftNETSdk = true.
91
+ -->
92
+ <PropertyGroup Condition="'$(_SkipAnalyzers)' == '' and
93
+ '$(IsImplicitlyTriggeredBuild)' == 'true' and
94
+ '$(UsingMicrosoftNETSdk)' == 'true' and
95
+ '$(OptimizeImplicitlyTriggeredBuild)' != 'false' and
96
+ ('$(TreatWarningsAsErrors)' != 'true' or '$(OptimizeImplicitlyTriggeredBuild)' == 'true')">
97
+ <_ImplicitlySkipAnalyzers>true</_ImplicitlySkipAnalyzers>
98
+ <_SkipAnalyzers>true</_SkipAnalyzers>
99
+ <Features>run-nullable-analysis=never;$(Features)</Features>
100
+ </PropertyGroup>
101
+
102
+ <!-- Display a message to inform the users about us implicitly skipping analyzers for speeding up indirect builds. -->
103
+ <ShowMessageForImplicitlySkipAnalyzers Condition="'$(_ImplicitlySkipAnalyzers)' == 'true'"/>
104
+
105
+ <!-- Semaphore file to indicate the time stamp for last build with skipAnalyzers flag. -->
106
+ <PropertyGroup>
107
+ <_LastBuildWithSkipAnalyzers>$(IntermediateOutputPath)$(MSBuildProjectFile).BuildWithSkipAnalyzers</_LastBuildWithSkipAnalyzers>
108
+ </PropertyGroup>
109
+
110
+ <!-- '_LastBuildWithSkipAnalyzers' semaphore file, if exists, is passed as custom additional file input to builds without skipAnalyzers flag to ensure correct incremental builds.
111
+ Additionally, we need to pass this file as an 'UpToDateCheckInput' item with 'Kind = ImplicitBuild' for project system's fast-upto-date check to work correctly.
112
+ See https://github.com/dotnet/project-system/issues/7290 for details.
113
+ -->
114
+ <ItemGroup Condition="Exists('$(_LastBuildWithSkipAnalyzers)') and '$(_SkipAnalyzers)' != 'true'">
115
+ <CustomAdditionalCompileInputs Include="$(_LastBuildWithSkipAnalyzers)"/>
116
+ <UpToDateCheckInput Include="$(_LastBuildWithSkipAnalyzers)" Kind="ImplicitBuild"/>
117
+ </ItemGroup>
118
+ </Target>
119
+
120
+ <!-- We touch and create a semaphore file after build to indicate the time stamp for last build with skipAnalyzers flag. -->
121
+ <Target Name="_TouchLastBuildWithSkipAnalyzers" Condition="'$(_SkipAnalyzers)' == 'true'" AfterTargets="CoreCompile">
122
+ <Touch AlwaysCreate="true" Files="$(_LastBuildWithSkipAnalyzers)"/>
123
+ </Target>
124
+
125
+ <!--
126
+ ========================
127
+ .editorconfig Support
128
+ ========================
129
+
130
+ -->
131
+ <ItemGroup>
132
+ <_AllDirectoriesAbove Include="@(Compile->GetPathsOfAllDirectoriesAbove())" Condition="'$(DiscoverEditorConfigFiles)' != 'false' or '$(DiscoverGlobalAnalyzerConfigFiles)' != 'false'" />
133
+ <!-- Work around a GetPathsOfAllDirectoriesAbove() bug where it can return multiple equivalent paths when the
134
+ compilation includes linked files with relative paths - https://github.com/microsoft/msbuild/issues/4392 -->
135
+ <PotentialEditorConfigFiles Include="@(_AllDirectoriesAbove->'%(FullPath)'->Distinct()->Combine('.editorconfig'))" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" />
136
+ <EditorConfigFiles Include="@(PotentialEditorConfigFiles->Exists())" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" />
137
+
138
+ <GlobalAnalyzerConfigFiles Include="@(_AllDirectoriesAbove->'%(FullPath)'->Distinct()->Combine('.globalconfig'))" Condition="'$(DiscoverGlobalAnalyzerConfigFiles)' != 'false'" />
139
+ <EditorConfigFiles Include="@(GlobalAnalyzerConfigFiles->Exists())" Condition="'$(DiscoverGlobalAnalyzerConfigFiles)' != 'false'" />
140
+ </ItemGroup>
141
+
142
+ <!--
143
+ ========================
144
+ Property/metadata global .editorconfig Support
145
+ ========================
146
+
147
+ Generates a global editor config that contains the evaluation of requested MSBuild properties and item metadata
148
+
149
+ Requested properties/items are requested via item groups like:
150
+
151
+ <CompilerVisibleProperty Include="PropertyNameToEval" />
152
+ <CompilerVisibleItemMetadata Include="ItemType" MetadataName="MetadataToRetrieve" />
153
+ -->
154
+ <UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.GenerateMSBuildEditorConfig" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.Tasks.CodeAnalysis.dll" />
155
+
156
+ <Target Name="GenerateMSBuildEditorConfigFile"
157
+ BeforeTargets="BeforeCompile;CoreCompile"
158
+ DependsOnTargets="PrepareForBuild;GenerateMSBuildEditorConfigFileShouldRun;GenerateMSBuildEditorConfigFileCore" />
159
+
160
+ <Target Name="GenerateMSBuildEditorConfigFileShouldRun">
161
+ <PropertyGroup>
162
+ <GeneratedMSBuildEditorConfigFile Condition="'$(GeneratedMSBuildEditorConfigFile)' == ''">$(IntermediateOutputPath)$(MSBuildProjectName).GeneratedMSBuildEditorConfig.editorconfig</GeneratedMSBuildEditorConfigFile>
163
+ <GenerateMSBuildEditorConfigFile Condition="'$(GenerateMSBuildEditorConfigFile)' == ''">true</GenerateMSBuildEditorConfigFile>
164
+ <_GeneratedEditorConfigHasItems Condition="'@(CompilerVisibleItemMetadata->Count())' != '0'">true</_GeneratedEditorConfigHasItems>
165
+ <_GeneratedEditorConfigShouldRun Condition="'$(GenerateMSBuildEditorConfigFile)' == 'true' and ('$(_GeneratedEditorConfigHasItems)' == 'true' or '@(CompilerVisibleProperty->Count())' != '0')">true</_GeneratedEditorConfigShouldRun>
166
+ </PropertyGroup>
167
+ </Target>
168
+
169
+ <Target Name="GenerateMSBuildEditorConfigFileCore"
170
+ Condition="'$(_GeneratedEditorConfigShouldRun)' == 'true'"
171
+ Outputs="$(GeneratedMSBuildEditorConfigFile)">
172
+
173
+ <ItemGroup>
174
+ <!-- Collect requested properties, and eval their value -->
175
+ <_GeneratedEditorConfigProperty Include="@(CompilerVisibleProperty)">
176
+ <Value>$(%(CompilerVisibleProperty.Identity))</Value>
177
+ </_GeneratedEditorConfigProperty>
178
+
179
+ <!-- Collect the requested items and remember which metadata is wanted -->
180
+ <_GeneratedEditorConfigMetadata Include="@(%(CompilerVisibleItemMetadata.Identity))" Condition="'$(_GeneratedEditorConfigHasItems)' == 'true'">
181
+ <ItemType>%(Identity)</ItemType>
182
+ <MetadataName>%(CompilerVisibleItemMetadata.MetadataName)</MetadataName>
183
+ </_GeneratedEditorConfigMetadata>
184
+
185
+ <!-- Record that we'll write a file, and add it to the analyzerconfig inputs -->
186
+ <FileWrites Include="$(GeneratedMSBuildEditorConfigFile)" />
187
+ <EditorConfigFiles Include="$(GeneratedMSBuildEditorConfigFile)" />
188
+ </ItemGroup>
189
+
190
+ <!-- Transform the collected properties and items into an editor config file -->
191
+ <GenerateMSBuildEditorConfig
192
+ PropertyItems="@(_GeneratedEditorConfigProperty)"
193
+ MetadataItems="@(_GeneratedEditorConfigMetadata)"
194
+ FileName="$(GeneratedMSBuildEditorConfigFile)">
195
+ </GenerateMSBuildEditorConfig>
196
+
197
+ </Target>
198
+
199
+ <!--
200
+ ========================
201
+ DeterministicSourcePaths
202
+ ========================
203
+
204
+ Unless specified otherwise enable deterministic source root (PathMap) when building deterministically on CI server, but not for local builds.
205
+ In order for the debugger to find source files when debugging a locally built binary the PDB must contain original, unmapped local paths.
206
+ -->
207
+ <PropertyGroup>
208
+ <DeterministicSourcePaths Condition="'$(DeterministicSourcePaths)' == '' and '$(Deterministic)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'">true</DeterministicSourcePaths>
209
+ </PropertyGroup>
210
+
211
+ <!--
212
+ ==========
213
+ SourceRoot
214
+ ==========
215
+
216
+ All source files of the project are expected to be located under one of the directories specified by SourceRoot item group.
217
+ This target collects all SourceRoots from various sources.
218
+
219
+ This target calculates final local path for each SourceRoot and sets SourceRoot.MappedPath metadata accordingly.
220
+ The final path is a path with deterministic prefix when DeterministicSourcePaths is true, and the original path otherwise.
221
+ In addition, the target validates and deduplicates the SourceRoot items.
222
+
223
+ InitializeSourceControlInformation is an msbuild target that ensures the SourceRoot items are populated from source control.
224
+ The target is available only if SourceControlInformationFeatureSupported is true.
225
+
226
+ A consumer of SourceRoot.MappedPath metadata, such as Source Link generator, shall depend on this target.
227
+ -->
228
+
229
+ <Target Name="InitializeSourceRootMappedPaths"
230
+ DependsOnTargets="_InitializeSourceRootMappedPathsFromSourceControl"
231
+ Returns="@(SourceRoot)">
232
+
233
+ <ItemGroup Condition="'@(_MappedSourceRoot)' != ''">
234
+ <_MappedSourceRoot Remove="@(_MappedSourceRoot)" />
235
+ </ItemGroup>
236
+
237
+ <Microsoft.CodeAnalysis.BuildTasks.MapSourceRoots SourceRoots="@(SourceRoot)" Deterministic="$(DeterministicSourcePaths)">
238
+ <Output TaskParameter="MappedSourceRoots" ItemName="_MappedSourceRoot" />
239
+ </Microsoft.CodeAnalysis.BuildTasks.MapSourceRoots>
240
+
241
+ <ItemGroup>
242
+ <SourceRoot Remove="@(SourceRoot)" />
243
+ <SourceRoot Include="@(_MappedSourceRoot)" />
244
+ </ItemGroup>
245
+ </Target>
246
+
247
+ <!--
248
+ Declare that target InitializeSourceRootMappedPaths that populates MappedPaths metadata on SourceRoot items is available.
249
+ -->
250
+ <PropertyGroup>
251
+ <SourceRootMappedPathsFeatureSupported>true</SourceRootMappedPathsFeatureSupported>
252
+ </PropertyGroup>
253
+
254
+ <!--
255
+ If InitializeSourceControlInformation target isn't supported, we just continue without invoking that synchronization target.
256
+ We'll proceed with SourceRoot (and other source control properties) provided by the user (or blank).
257
+ -->
258
+ <Target Name="_InitializeSourceRootMappedPathsFromSourceControl"
259
+ DependsOnTargets="InitializeSourceControlInformation"
260
+ Condition="'$(SourceControlInformationFeatureSupported)' == 'true'" />
261
+
262
+ <!--
263
+ =======
264
+ PathMap
265
+ =======
266
+
267
+ If DeterministicSourcePaths is true sets PathMap based on SourceRoot.MappedPaths.
268
+
269
+ This target requires SourceRoot to be initialized in order to calculate the PathMap.
270
+ If SourceRoot doesn't contain any top-level roots an error is reported.
271
+ -->
272
+
273
+ <Target Name="_SetPathMapFromSourceRoots"
274
+ DependsOnTargets="InitializeSourceRootMappedPaths"
275
+ BeforeTargets="CoreCompile"
276
+ Condition="'$(DeterministicSourcePaths)' == 'true'">
277
+
278
+ <ItemGroup>
279
+ <_TopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''">
280
+ <EscapedKey>$([MSBuild]::ValueOrDefault('%(Identity)', '').Replace(',', ',,').Replace('=', '=='))</EscapedKey>
281
+ <EscapedValue>$([MSBuild]::ValueOrDefault('%(MappedPath)', '').Replace(',', ',,').Replace('=', '=='))</EscapedValue>
282
+ </_TopLevelSourceRoot>
283
+ </ItemGroup>
284
+
285
+ <PropertyGroup Condition="'@(_TopLevelSourceRoot)' != ''">
286
+ <!--
287
+ Prepend the SourceRoot.MappedPath values to PathMap, if it already has a value.
288
+ For each emitted source path the compiler applies the first mapping that matches the path.
289
+ PathMap values set previously will thus only be applied if the mapping provided by
290
+ SourceRoot.MappedPath doesn't match. Since SourceRoot.MappedPath is also used by SourceLink
291
+ preferring it over manually set PathMap ensures that PathMap is consistent with SourceLink.
292
+ -->
293
+ <PathMap>@(_TopLevelSourceRoot->'%(EscapedKey)=%(EscapedValue)', ','),$(PathMap)</PathMap>
294
+ </PropertyGroup>
295
+ </Target>
296
+
297
+ <!--
298
+ =======
299
+ CopyAdditionalFiles
300
+ =======
301
+
302
+ If a user requests that any @(AdditionalFiles) items are copied to the output directory
303
+ we add them to the @(None) group to ensure they will be copied.
304
+ -->
305
+
306
+ <Target Name="CopyAdditionalFiles"
307
+ BeforeTargets="AssignTargetPaths">
308
+ <ItemGroup>
309
+ <None Include="@(AdditionalFiles)" Condition="'%(AdditionalFiles.CopyToOutputDirectory)' != ''" />
310
+ </ItemGroup>
311
+ </Target>
312
+
313
+ <!--
314
+ ========================
315
+ CompilerGeneratedFilesOutputPath
316
+ ========================
317
+
318
+ Controls output of generated files.
319
+
320
+ CompilerGeneratedFilesOutputPath controls the location the files will be output to.
321
+ The compiler will not emit any generated files when the path is empty, and defaults to a /generated directory in $(IntermediateOutputPath) if $(IntermediateOutputPath) has a value.
322
+ A relative path is considered relative to the project directory.
323
+
324
+ EmitCompilerGeneratedFiles allows the user to control if anything is emitted by clearing the property when not true.
325
+ When EmitCompilerGeneratedFiles is true, we ensure that CompilerGeneatedFilesOutputPath has a value and issue a warning if not.
326
+
327
+ We will create CompilerGeneratedFilesOutputPath if it does not exist.
328
+ -->
329
+ <PropertyGroup>
330
+ <EmitCompilerGeneratedFiles Condition="'$(EmitCompilerGeneratedFiles)' == ''">false</EmitCompilerGeneratedFiles>
331
+ <CompilerGeneratedFilesOutputPath Condition="'$(EmitCompilerGeneratedFiles)' != 'true'"></CompilerGeneratedFilesOutputPath>
332
+ <CompilerGeneratedFilesOutputPath Condition="'$(EmitCompilerGeneratedFiles)' == 'true' and '$(CompilerGeneratedFilesOutputPath)' == '' and '$(IntermediateOutputPath)' != ''">$(IntermediateOutputPath)/generated</CompilerGeneratedFilesOutputPath>
333
+ </PropertyGroup>
334
+
335
+ <Target Name="CreateCompilerGeneratedFilesOutputPath"
336
+ BeforeTargets="CoreCompile"
337
+ Condition="'$(EmitCompilerGeneratedFiles)' == 'true' and !('$(DesignTimeBuild)' == 'true' OR '$(BuildingProject)' != 'true')">
338
+
339
+ <Warning Condition="'$(CompilerGeneratedFilesOutputPath)' == ''"
340
+ Text="EmitCompilerGeneratedFiles was true, but no CompilerGeneratedFilesOutputPath was provided. CompilerGeneratedFilesOutputPath must be set in order to emit generated files." />
341
+
342
+ <MakeDir Condition="'$(CompilerGeneratedFilesOutputPath)' != ''"
343
+ Directories="$(CompilerGeneratedFilesOutputPath)" />
344
+ </Target>
345
+
346
+ <!--
347
+ ========================
348
+ Component Debugger Support
349
+ ========================
350
+
351
+ Add the specified VS capability if a user indicates this project supports component debugging
352
+ -->
353
+ <ItemGroup>
354
+ <ProjectCapability Include="RoslynComponent" Condition="'$(IsRoslynComponent)' == 'true'"/>
355
+ </ItemGroup>
356
+
357
+ </Project>
dotnet/sdk/9.0.313/Roslyn/Microsoft.VisualBasic.Core.targets ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
3
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4
+ <Import Project="Microsoft.Managed.Core.targets"/>
5
+
6
+ <Target Name="CoreCompile"
7
+ Inputs="$(MSBuildAllProjects);
8
+ @(Compile);
9
+ @(_CoreCompileResourceInputs);
10
+ $(ApplicationIcon);
11
+ $(KeyOriginatorFile);
12
+ @(ReferencePathWithRefAssemblies);
13
+ @(CompiledLicenseFile);
14
+ @(LinkResource);
15
+ @(EmbeddedDocumentation);
16
+ $(Win32Resource);
17
+ $(Win32Manifest);
18
+ @(CustomAdditionalCompileInputs);
19
+ $(ResolvedCodeAnalysisRuleSet);
20
+ @(AdditionalFiles);
21
+ @(EmbeddedFiles);
22
+ @(Analyzer);
23
+ @(EditorConfigFiles);
24
+ $(SourceLink)"
25
+ Outputs="@(DocFileItem);
26
+ @(IntermediateAssembly);
27
+ @(IntermediateRefAssembly);
28
+ @(_DebugSymbolsIntermediatePath);
29
+ $(NonExistentFile);
30
+ @(CustomAdditionalCompileOutputs)"
31
+ Returns="@(VbcCommandLineArgs)"
32
+ DependsOnTargets="$(CoreCompileDependsOn);_BeforeVBCSCoreCompile">
33
+ <PropertyGroup>
34
+ <_NoWarnings Condition="'$(WarningLevel)' == '0'">true</_NoWarnings>
35
+ <_NoWarnings Condition="'$(WarningLevel)' == '1'">false</_NoWarnings>
36
+ </PropertyGroup>
37
+
38
+ <PropertyGroup>
39
+ <!-- If we are targeting winmdobj we want to specifically the pdbFile property since we do not want it to collide with the output of winmdexp-->
40
+ <PdbFile Condition="'$(PdbFile)' == '' AND '$(OutputType)' == 'winmdobj' AND '$(DebugSymbols)' == 'true'">$(IntermediateOutputPath)$(TargetName).compile.pdb</PdbFile>
41
+ </PropertyGroup>
42
+
43
+ <!-- Condition is to filter out the _CoreCompileResourceInputs so that it doesn't pass in culture resources to the compiler -->
44
+ <Vbc Condition="'%(_CoreCompileResourceInputs.WithCulture)' != 'true'"
45
+ AdditionalLibPaths="$(AdditionalLibPaths)"
46
+ AddModules="@(AddModules)"
47
+ AdditionalFiles="@(AdditionalFiles)"
48
+ AnalyzerConfigFiles="@(EditorConfigFiles)"
49
+ Analyzers="@(Analyzer)"
50
+ BaseAddress="$(BaseAddress)"
51
+ ChecksumAlgorithm="$(ChecksumAlgorithm)"
52
+ CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)"
53
+ CodePage="$(CodePage)"
54
+ DebugType="$(DebugType)"
55
+ DefineConstants="$(FinalDefineConstants)"
56
+ DelaySign="$(DelaySign)"
57
+ DisableSdkPath="$(DisableSdkPath)"
58
+ DisabledWarnings="$(NoWarn)"
59
+ DocumentationFile="@(DocFileItem)"
60
+ EmbedAllSources="$(EmbedAllSources)"
61
+ EmbeddedFiles="@(EmbeddedFiles)"
62
+ EmitDebugInformation="$(DebugSymbols)"
63
+ EnvironmentVariables="$(VbcEnvironment)"
64
+ ErrorLog="$(ErrorLog)"
65
+ ErrorReport="$(ErrorReport)"
66
+ Features="$(Features)"
67
+ FileAlignment="$(FileAlignment)"
68
+ GenerateDocumentation="$(GenerateDocumentation)"
69
+ GeneratedFilesOutputPath="$(CompilerGeneratedFilesOutputPath)"
70
+ HighEntropyVA="$(HighEntropyVA)"
71
+ Imports="@(Import)"
72
+ Instrument="$(Instrument)"
73
+ KeyContainer="$(KeyContainerName)"
74
+ KeyFile="$(KeyOriginatorFile)"
75
+ LangVersion="$(LangVersion)"
76
+ LinkResources="@(LinkResource)"
77
+ MainEntryPoint="$(StartupObject)"
78
+ ModuleAssemblyName="$(ModuleAssemblyName)"
79
+ NoConfig="true"
80
+ NoStandardLib="$(NoCompilerStandardLib)"
81
+ NoVBRuntimeReference="$(NoVBRuntimeReference)"
82
+ NoWarnings="$(_NoWarnings)"
83
+ NoWin32Manifest="$(NoWin32Manifest)"
84
+ Optimize="$(Optimize)"
85
+ Deterministic="$(Deterministic)"
86
+ PublicSign="$(PublicSign)"
87
+ OptionCompare="$(OptionCompare)"
88
+ OptionExplicit="$(OptionExplicit)"
89
+ OptionInfer="$(OptionInfer)"
90
+ OptionStrict="$(OptionStrict)"
91
+ OptionStrictType="$(OptionStrictType)"
92
+ OutputAssembly="@(IntermediateAssembly)"
93
+ OutputRefAssembly="@(IntermediateRefAssembly)"
94
+ PdbFile="$(PdbFile)"
95
+ Platform="$(PlatformTarget)"
96
+ Prefer32Bit="$(Prefer32Bit)"
97
+ PreferredUILang="$(PreferredUILang)"
98
+ ProjectName="$(MSBuildProjectName)"
99
+ ProvideCommandLineArgs="$(ProvideCommandLineArgs)"
100
+ References="@(ReferencePathWithRefAssemblies)"
101
+ RefOnly="$(ProduceOnlyReferenceAssembly)"
102
+ RemoveIntegerChecks="$(RemoveIntegerChecks)"
103
+ ReportAnalyzer="$(ReportAnalyzer)"
104
+ ReportIVTs="$(ReportIVTs)"
105
+ Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)"
106
+ ResponseFiles="$(CompilerResponseFile)"
107
+ RootNamespace="$(RootNamespace)"
108
+ RuntimeMetadataVersion="$(RuntimeMetadataVersion)"
109
+ SdkPath="$(FrameworkPathOverride)"
110
+ SharedCompilationId="$(SharedCompilationId)"
111
+ SkipAnalyzers="$(_SkipAnalyzers)"
112
+ SkipCompilerExecution="$(SkipCompilerExecution)"
113
+ Sources="@(Compile)"
114
+ SubsystemVersion="$(SubsystemVersion)"
115
+ TargetCompactFramework="$(TargetCompactFramework)"
116
+ TargetType="$(OutputType)"
117
+ TargetFramework="$(TargetFramework)"
118
+ ToolExe="$(VbcToolExe)"
119
+ ToolPath="$(VbcToolPath)"
120
+ TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
121
+ UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
122
+ UseSharedCompilation="$(UseSharedCompilation)"
123
+ Utf8Output="$(Utf8Output)"
124
+ VBRuntimePath="$(VBRuntimePath)"
125
+ Verbosity="$(VbcVerbosity)"
126
+ VsSessionGuid="$(VsSessionGuid)"
127
+ WarningsAsErrors="$(WarningsAsErrors)"
128
+ WarningsNotAsErrors="$(WarningsNotAsErrors)"
129
+ Win32Icon="$(ApplicationIcon)"
130
+ Win32Manifest="$(Win32Manifest)"
131
+ Win32Resource="$(Win32Resource)"
132
+ VBRuntime="$(VBRuntime)"
133
+ PathMap="$(PathMap)"
134
+ SourceLink="$(SourceLink)">
135
+ <Output TaskParameter="CommandLineArgs" ItemName="VbcCommandLineArgs" />
136
+ </Vbc>
137
+ <ItemGroup>
138
+ <_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" />
139
+ </ItemGroup>
140
+
141
+ <CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''" />
142
+ </Target>
143
+
144
+ <!-- When we load a project in Visual Studio, the project system first does an evaluation pass of the
145
+ project, and hands the resulting list of <Compile> items to the language service. It then does an
146
+ execution pass executing CoreCompile passing SkipCompilerExecution=true and ProvideCommandLineArgs=true,
147
+ that resulting command line string is where we get our compiler switches. The execution pass is much
148
+ slower than the evaluation pass, so there's a window of time where we have a list of files, but not
149
+ any options yet.
150
+
151
+ Because there's a gap, that means there's a time where we are parsing source files with the default
152
+ parse options. We'll then have to reparse them a second time which isn't great. It also means any
153
+ cache lookups we do won't have the right options either, so the cache lookups might miss.
154
+
155
+ To help this, we'll have properties for the evaluation pass which is an "approximation" of the
156
+ options that would come out of CoreCompile, but only the ones that are required to be specified
157
+ and we don't expect them to change after evaluation phase or those that matter for parsing.
158
+
159
+ It's acceptable for the options that affect parsing to be imperfect: once the execution pass is complete we'll use those options instead,
160
+ so any behaviors here that don't match the real command line generation will only be temporary, and
161
+ probably won't be any worse than having no options at all. -->
162
+ <PropertyGroup>
163
+ <CommandLineArgsForDesignTimeEvaluation>-langversion:$(LangVersion)</CommandLineArgsForDesignTimeEvaluation>
164
+ <CommandLineArgsForDesignTimeEvaluation Condition="'$(ChecksumAlgorithm)' != ''">$(CommandLineArgsForDesignTimeEvaluation) -checksumalgorithm:$(ChecksumAlgorithm)</CommandLineArgsForDesignTimeEvaluation>
165
+ <CommandLineArgsForDesignTimeEvaluation Condition="'$(FinalDefineConstants)' != ''">$(CommandLineArgsForDesignTimeEvaluation) -define:$(FinalDefineConstants)</CommandLineArgsForDesignTimeEvaluation>
166
+ </PropertyGroup>
167
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/Sdk/Sdk.props ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Sdk.props
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0">
13
+ <PropertyGroup>
14
+ <UsingMicrosoftNETSdkBlazorWebAssembly>true</UsingMicrosoftNETSdkBlazorWebAssembly>
15
+ </PropertyGroup>
16
+
17
+ <PropertyGroup>
18
+ <_BlazorWebAssemblyPropsFile Condition="'$(_BlazorWebAssemblyPropsFile)' == ''">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.BlazorWebAssembly.Current.props</_BlazorWebAssemblyPropsFile>
19
+ </PropertyGroup>
20
+
21
+ <Import Project="$(_BlazorWebAssemblyPropsFile)" />
22
+
23
+ <ItemGroup Condition="'$(Language)' == 'C#' AND ('$(ImplicitUsings)' == 'true' or '$(ImplicitUsings)' == 'enable')">
24
+ <Using Include="Microsoft.Extensions.Configuration" />
25
+ <Using Include="Microsoft.Extensions.DependencyInjection" />
26
+ <Using Include="Microsoft.Extensions.Logging" />
27
+ </ItemGroup>
28
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/Sdk/Sdk.targets ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Sdk.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0">
13
+
14
+ <PropertyGroup>
15
+ <_BlazorWebAssemblyTargetsFile Condition="'$(_BlazorWebAssemblyTargetsFile)' == ''">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets</_BlazorWebAssemblyTargetsFile>
16
+ </PropertyGroup>
17
+
18
+ <Import Project="$(_BlazorWebAssemblyTargetsFile)" />
19
+
20
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/BlazorWasm.web.config ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <configuration>
3
+ <system.webServer>
4
+ <staticContent>
5
+ <remove fileExtension=".blat" />
6
+ <remove fileExtension=".dat" />
7
+ <remove fileExtension=".dll" />
8
+ <remove fileExtension=".webcil" />
9
+ <remove fileExtension=".json" />
10
+ <remove fileExtension=".wasm" />
11
+ <remove fileExtension=".woff" />
12
+ <remove fileExtension=".woff2" />
13
+ <mimeMap fileExtension=".blat" mimeType="application/octet-stream" />
14
+ <mimeMap fileExtension=".dll" mimeType="application/octet-stream" />
15
+ <mimeMap fileExtension=".webcil" mimeType="application/octet-stream" />
16
+ <mimeMap fileExtension=".dat" mimeType="application/octet-stream" />
17
+ <mimeMap fileExtension=".json" mimeType="application/json" />
18
+ <mimeMap fileExtension=".wasm" mimeType="application/wasm" />
19
+ <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
20
+ <mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
21
+ </staticContent>
22
+ <httpCompression>
23
+ <dynamicTypes>
24
+ <add mimeType="application/octet-stream" enabled="true" />
25
+ <add mimeType="application/wasm" enabled="true" />
26
+ </dynamicTypes>
27
+ </httpCompression>
28
+ <rewrite>
29
+ <rules>
30
+ <rule name="Serve subdir">
31
+ <match url=".*" />
32
+ <action type="Rewrite" url="wwwroot\{R:0}" />
33
+ </rule>
34
+ <rule name="SPA fallback routing" stopProcessing="true">
35
+ <match url=".*" />
36
+ <conditions logicalGrouping="MatchAll">
37
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
38
+ </conditions>
39
+ <action type="Rewrite" url="wwwroot\" />
40
+ </rule>
41
+ </rules>
42
+ </rewrite>
43
+ </system.webServer>
44
+ </configuration>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets ADDED
@@ -0,0 +1,707 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.BlazorWebAssembly.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0">
13
+ <PropertyGroup>
14
+ <EnableDefaultContentItems Condition=" '$(EnableDefaultContentItems)' == '' ">true</EnableDefaultContentItems>
15
+
16
+ <!-- Trimmer defaults that depend on user-definable settings.
17
+ This must be configured before it's initialized in the .NET SDK targets (which are imported by the Razor SDK). -->
18
+ <SuppressTrimAnalysisWarnings Condition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings>
19
+ </PropertyGroup>
20
+
21
+ <!--
22
+ Targets supporting Razor MSBuild integration. Contain support for generating C# code using Razor
23
+ and including the generated code in the project lifecycle, including compiling, publishing and producing
24
+ nuget packages.
25
+ -->
26
+
27
+ <PropertyGroup>
28
+ <!-- Paths to tools, tasks, and extensions are calculated relative to the BlazorWebAssemblySdkDirectoryRoot. This can be modified to test a local build. -->
29
+ <BlazorWebAssemblySdkDirectoryRoot Condition="'$(BlazorWebAssemblySdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\</BlazorWebAssemblySdkDirectoryRoot>
30
+ <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0</_BlazorWebAssemblySdkTasksTFM>
31
+ <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' != 'Core'">net472</_BlazorWebAssemblySdkTasksTFM>
32
+ <_BlazorWebAssemblySdkTasksAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\$(_BlazorWebAssemblySdkTasksTFM)\Microsoft.NET.Sdk.BlazorWebAssembly.Tasks.dll</_BlazorWebAssemblySdkTasksAssembly>
33
+ <_BlazorWebAssemblySdkToolAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\net9.0\Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll</_BlazorWebAssemblySdkToolAssembly>
34
+ </PropertyGroup>
35
+
36
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.GenerateBlazorWebAssemblyBootJson50" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
37
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.UpgradeLegacyWasmStaticWebAssets" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
38
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.BlazorWriteSatelliteAssemblyFile" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
39
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.BlazorReadSatelliteAssemblyFile" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
40
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.BrotliCompress" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
41
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.GzipCompress" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
42
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.CreateBlazorTrimmerRootDescriptorFile" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
43
+
44
+ <PropertyGroup>
45
+ <SelfContained>true</SelfContained>
46
+ <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
47
+
48
+ <!-- Runtime feature defaults to trim unnecessary code -->
49
+ <InvariantGlobalization Condition="'$(InvariantGlobalization)' == ''">false</InvariantGlobalization>
50
+ <EventSourceSupport Condition="'$(EventSourceSupport)' == ''">false</EventSourceSupport>
51
+ <UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">true</UseSystemResourceKeys>
52
+ <EnableUnsafeUTF7Encoding Condition="'$(EnableUnsafeUTF7Encoding)' == ''">false</EnableUnsafeUTF7Encoding>
53
+ <HttpActivityPropagationSupport Condition="'$(HttpActivityPropagationSupport)' == ''">false</HttpActivityPropagationSupport>
54
+ <DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(Configuration)' != 'Debug'">false</DebuggerSupport>
55
+
56
+ <StaticWebAssetBasePath Condition="'$(StaticWebAssetBasePath)' == ''">/</StaticWebAssetBasePath>
57
+ <BlazorCacheBootResources Condition="'$(BlazorCacheBootResources)' == ''">true</BlazorCacheBootResources>
58
+
59
+ <!-- Turn off parts of the build that do not apply to WASM projects -->
60
+ <GenerateDependencyFile>false</GenerateDependencyFile>
61
+ <GenerateRuntimeConfigurationFiles>false</GenerateRuntimeConfigurationFiles>
62
+ <PreserveCompilationContext>false</PreserveCompilationContext>
63
+ <PreserveCompilationReferences>false</PreserveCompilationReferences>
64
+ <IsWebConfigTransformDisabled>true</IsWebConfigTransformDisabled>
65
+
66
+ <!-- Don't generate a NETSDK1151 error if a non self-contained Exe references a Blazor Exe -->
67
+ <ShouldBeValidatedAsExecutableReference>false</ShouldBeValidatedAsExecutableReference>
68
+
69
+ <!-- Internal properties -->
70
+ <_BlazorOutputPath>wwwroot\_framework\</_BlazorOutputPath>
71
+
72
+ <_TargetingNET60OrLater Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '6.0'))">true</_TargetingNET60OrLater>
73
+ </PropertyGroup>
74
+
75
+ <ItemGroup>
76
+ <!-- Configuration for the platform compatibility analyzer. See https://github.com/dotnet/designs/blob/main/accepted/2020/platform-exclusion/platform-exclusion.md#build-configuration-for-platforms -->
77
+ <SupportedPlatform Remove="@(SupportedPlatform)" />
78
+ <SupportedPlatform Include="browser" />
79
+ </ItemGroup>
80
+
81
+ <Import Project="Microsoft.NET.Sdk.BlazorWebAssembly.ServiceWorkerAssetsManifest.5_0.targets" Condition="'$(ServiceWorkerAssetsManifest)' != ''" />
82
+
83
+ <Target Name="_ScrambleDotnetJsFileName" AfterTargets="ResolveRuntimePackAssets">
84
+ <!--
85
+ We want the dotnet.js file output to have a version to better work with caching. We'll append the runtime version to the file name as soon as file has been discovered.
86
+ -->
87
+ <ItemGroup>
88
+ <_DotNetJsItem Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.DestinationSubPath)' == 'dotnet.js' AND '%(ReferenceCopyLocalPaths.AssetType)' == 'native'" />
89
+ </ItemGroup>
90
+
91
+ <PropertyGroup>
92
+ <_DotNetJsVersion>%(_DotNetJsItem.NuGetPackageVersion)</_DotNetJsVersion>
93
+ <_BlazorDotnetJsFileName>dotnet.$(_DotNetJsVersion).js</_BlazorDotnetJsFileName>
94
+ <_BlazorDotNetJsFilePath>$(IntermediateOutputPath)$(_BlazorDotnetJsFileName)</_BlazorDotNetJsFilePath>
95
+ </PropertyGroup>
96
+
97
+ <Copy
98
+ SourceFiles="@(_DotNetJsItem)"
99
+ DestinationFiles="$(_BlazorDotNetJsFilePath)"
100
+ SkipUnchangedFiles="true"
101
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" />
102
+
103
+ <ItemGroup Condition="'@(_DotNetJsItem->Count())' != '0'">
104
+ <ReferenceCopyLocalPaths
105
+ Include="$(_BlazorDotNetJsFilePath)"
106
+ AssetType="native"
107
+ CopyLocal="true"
108
+ DestinationSubPath="$(_BlazorDotnetJsFileName)" />
109
+
110
+ <ReferenceCopyLocalPaths Remove="@(_DotNetJsItem)" />
111
+ </ItemGroup>
112
+ </Target>
113
+
114
+ <Target Name="_ResolveBlazorWasmOutputs" DependsOnTargets="ResolveReferences;PrepareResourceNames;ComputeIntermediateSatelliteAssemblies">
115
+ <!--
116
+ Calculates the outputs and the paths for Blazor WASM. This target is invoked frequently and should perform minimal work.
117
+ -->
118
+
119
+ <PropertyGroup>
120
+ <_BlazorSatelliteAssemblyCacheFile>$(IntermediateOutputPath)blazor.satelliteasm.props</_BlazorSatelliteAssemblyCacheFile>
121
+ <!-- Workaround for https://github.com/dotnet/sdk/issues/12114-->
122
+ <PublishDir Condition="'$(AppendRuntimeIdentifierToOutputPath)' != 'true' AND '$(PublishDir)' == '$(OutputPath)$(RuntimeIdentifier)\$(PublishDirName)\'">$(OutputPath)$(PublishDirName)\</PublishDir>
123
+
124
+ <_BlazorWebAssemblyLoadAllGlobalizationData>$(BlazorWebAssemblyLoadAllGlobalizationData)</_BlazorWebAssemblyLoadAllGlobalizationData>
125
+ <_BlazorWebAssemblyLoadAllGlobalizationData Condition="'$(_BlazorWebAssemblyLoadAllGlobalizationData)' == ''">false</_BlazorWebAssemblyLoadAllGlobalizationData>
126
+ </PropertyGroup>
127
+
128
+ <ItemGroup>
129
+ <_BlazorJSFile Include="$(BlazorWebAssemblyJSPath)" />
130
+ <_BlazorJSFile Include="$(BlazorWebAssemblyJSMapPath)" Condition="Exists('$(BlazorWebAssemblyJSMapPath)')" />
131
+
132
+ <_BlazorConfigFile Include="wwwroot\appsettings*.json" />
133
+
134
+ <!-- Clear out temporary build artifacts that the runtime packages -->
135
+ <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.a'" />
136
+
137
+ <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"
138
+ Condition="'$(BlazorEnableTimeZoneSupport)' == 'false' AND '%(ReferenceCopyLocalPaths.FileName)%(ReferenceCopyLocalPaths.Extension)' == 'dotnet.timezones.blat'" />
139
+
140
+ <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"
141
+ Condition="'$(InvariantGlobalization)' == 'true' AND '%(ReferenceCopyLocalPaths.Extension)' == '.dat' AND $([System.String]::Copy('%(ReferenceCopyLocalPaths.FileName)').StartsWith('icudt'))" />
142
+
143
+ <!--
144
+ ReferenceCopyLocalPaths includes satellite assemblies from referenced projects but are inexpicably missing
145
+ any metadata that might allow them to be differentiated. We'll explicitly add those
146
+ to _BlazorOutputWithTargetPath so that satellite assemblies from packages, the current project and referenced project
147
+ are all treated the same.
148
+ -->
149
+
150
+ <_BlazorCopyLocalPath
151
+ Include="@(ReferenceCopyLocalPaths)"
152
+ Exclude="@(ReferenceSatellitePaths)"/>
153
+
154
+ <_BlazorCopyLocalPath Include="@(IntermediateSatelliteAssembliesWithTargetPath)">
155
+ <DestinationSubDirectory>%(IntermediateSatelliteAssembliesWithTargetPath.Culture)\</DestinationSubDirectory>
156
+ </_BlazorCopyLocalPath>
157
+
158
+ <_BlazorOutputWithTargetPath Include="
159
+ @(_BlazorCopyLocalPath);
160
+ @(IntermediateAssembly);
161
+ @(_DebugSymbolsIntermediatePath);
162
+ @(_BlazorJSFile)" />
163
+
164
+ <_BlazorOutputWithTargetPath Include="@(ReferenceSatellitePaths)">
165
+ <Culture>$([System.String]::Copy('%(ReferenceSatellitePaths.DestinationSubDirectory)').Trim('\').Trim('/'))</Culture>
166
+ </_BlazorOutputWithTargetPath>
167
+ </ItemGroup>
168
+
169
+ <!--
170
+ BuildingProject=false is typically set for referenced projects when building inside VisualStudio.
171
+
172
+ When building with BuildingProject=false, satellite assemblies do not get resolved (the ones for the current project and the one for
173
+ referenced project). Satellite assemblies from packages get resolved.
174
+ To workaround this, we'll cache metadata during a regular build, and rehydrate from it when BuildingProject=false.
175
+ -->
176
+ <BlazorReadSatelliteAssemblyFile
177
+ ReadFile="$(_BlazorSatelliteAssemblyCacheFile)"
178
+ Condition="'$(BuildingProject)' != 'true' AND EXISTS('$(_BlazorSatelliteAssemblyCacheFile)')">
179
+ <Output TaskParameter="SatelliteAssembly" ItemName="_BlazorReadSatelliteAssembly" />
180
+ </BlazorReadSatelliteAssemblyFile>
181
+
182
+ <ItemGroup>
183
+ <!-- We've imported a previously Cacheed file. Let's turn in to a _BlazorOutputWithTargetPath -->
184
+ <_BlazorOutputWithTargetPath
185
+ Include="@(_BlazorReadSatelliteAssembly)"
186
+ Exclude="@(_BlazorOutputWithTargetPath)"
187
+ Condition="'@(_BlazorReadSatelliteAssembly->Count())' != '0'" />
188
+
189
+ <!-- Calculate the target path -->
190
+ <_BlazorOutputWithTargetPath
191
+ TargetPath="$(_BlazorOutputPath)%(_BlazorOutputWithTargetPath.DestinationSubDirectory)%(FileName)%(Extension)"
192
+ Condition="'%(__BlazorOutputWithTargetPath.TargetPath)' == ''" />
193
+ </ItemGroup>
194
+ </Target>
195
+
196
+ <Target Name="_ProcessBlazorWasmOutputs" DependsOnTargets="_ResolveBlazorWasmOutputs">
197
+ <PropertyGroup>
198
+ <_BlazorBuildGZipCompressDirectory>$(IntermediateOutputPath)build-gz\</_BlazorBuildGZipCompressDirectory>
199
+ </PropertyGroup>
200
+
201
+ <!--
202
+ Compress referenced binaries using GZip during build. This skips files such as the project's assemblies
203
+ that change from build to build. Runtime assets contribute to the bulk of the download size. Compressing it
204
+ has the most benefit while avoiding any ongoing costs to the dev inner loop.
205
+ -->
206
+ <ItemGroup>
207
+ <_GzipFileToCompressForBuild
208
+ Include="@(ReferenceCopyLocalPaths)"
209
+ RelativePath="$(_BlazorOutputPath)%(ReferenceCopyLocalPaths.DestinationSubDirectory)%(FileName)%(Extension)"
210
+ Condition="'%(Extension)' == '.dll' or '%(ReferenceCopyLocalPaths.AssetType)' == 'native'" />
211
+ </ItemGroup>
212
+
213
+ <GZipCompress
214
+ FilesToCompress="@(_GzipFileToCompressForBuild)"
215
+ OutputDirectory="$(_BlazorBuildGZipCompressDirectory)">
216
+
217
+ <Output TaskParameter="CompressedFiles" ItemName="_BlazorBuildGZipCompressedFile" />
218
+ <Output TaskParameter="CompressedFiles" ItemName="FileWrites" />
219
+ </GZipCompress>
220
+
221
+ <ItemGroup>
222
+ <_BlazorWriteSatelliteAssembly Include="@(_BlazorOutputWithTargetPath->HasMetadata('Culture'))" />
223
+
224
+ <!-- Retarget ReferenceCopyLocalPaths to copy to the wwwroot directory -->
225
+ <ReferenceCopyLocalPaths DestinationSubDirectory="$(_BlazorOutputPath)%(ReferenceCopyLocalPaths.DestinationSubDirectory)" />
226
+ </ItemGroup>
227
+
228
+ <!-- A missing blazor.webassembly.js is our packaging error. Produce an error so it's discovered early. -->
229
+ <Error
230
+ Text="Unable to find BlazorWebAssembly JS files. This usually indicates a packaging error."
231
+ Code="RAZORSDK1007"
232
+ Condition="'@(_BlazorJSFile->Count())' == '0'" />
233
+
234
+ <!--
235
+ When building with BuildingProject=false, satellite assemblies do not get resolved (the ones for the current project and the one for
236
+ referenced project). BuildingProject=false is typically set for referenced projects when building inside VisualStudio.
237
+ To workaround this, we'll cache metadata during a regular build, and rehydrate from it when BuildingProject=false.
238
+ -->
239
+
240
+ <BlazorWriteSatelliteAssemblyFile
241
+ SatelliteAssembly="@(_BlazorWriteSatelliteAssembly)"
242
+ WriteFile="$(_BlazorSatelliteAssemblyCacheFile)"
243
+ Condition="'$(BuildingProject)' == 'true' AND '@(_BlazorWriteSatelliteAssembly->Count())' != '0'" />
244
+
245
+ <Delete
246
+ Files="$(_BlazorSatelliteAssemblyCacheFile)"
247
+ Condition="'$(BuildingProject)' == 'true' AND '@(_BlazorWriteSatelliteAssembly->Count())' == '0' and EXISTS('$(_BlazorSatelliteAssemblyCacheFile)')" />
248
+
249
+ <ItemGroup>
250
+ <FileWrites Include="$(_BlazorSatelliteAssemblyCacheFile)" Condition="Exists('$(_BlazorSatelliteAssemblyCacheFile)')" />
251
+ </ItemGroup>
252
+
253
+ <GetFileHash Files="@(_BlazorOutputWithTargetPath)" Algorithm="SHA256" HashEncoding="base64">
254
+ <Output TaskParameter="Items" ItemName="_BlazorOutputWithHash" />
255
+ </GetFileHash>
256
+ </Target>
257
+
258
+ <PropertyGroup>
259
+ <PrepareForRunDependsOn>
260
+ _BlazorWasmPrepareForRun;
261
+ $(PrepareForRunDependsOn)
262
+ </PrepareForRunDependsOn>
263
+
264
+ <GetCurrentProjectStaticWebAssetsDependsOn>
265
+ $(GetCurrentProjectStaticWebAssetsDependsOn);
266
+ _BlazorWasmReplaceBundle;
267
+ _BlazorWasmPrepareForRun;
268
+ </GetCurrentProjectStaticWebAssetsDependsOn>
269
+
270
+ <GetCurrentProjectStaticWebAssetsV2DependsOn>
271
+ $(GetCurrentProjectStaticWebAssetsV2DependsOn);
272
+ _UpdateBlazorWasmStaticWebAssetsForV2;
273
+ </GetCurrentProjectStaticWebAssetsV2DependsOn>
274
+ </PropertyGroup>
275
+
276
+ <Target Name="_BlazorWasmReplaceBundle">
277
+ <ItemGroup>
278
+ <StaticWebAsset Include="@(_AppBundleStaticWebAsset)" />
279
+ <Staticwebasset Remove="@(_ProjectBundleStaticWebAsset)" />
280
+ </ItemGroup>
281
+ </Target>
282
+
283
+ <Target Name="_UpdateBlazorWasmStaticWebAssetsForV2" DependsOnTargets="GetCurrentProjectStaticWebAssets">
284
+ <ItemGroup>
285
+ <_CurrentWasmProjectStaticWebAssets Include="@(_ThisProjectStaticWebAssets)" Condition="'%(SourceId)' == '$(PackageId)'" />
286
+ </ItemGroup>
287
+
288
+ <UpgradeLegacyWasmStaticWebAssets
289
+ LegacyAssets="@(_CurrentWasmProjectStaticWebAssets)"
290
+ >
291
+ <Output TaskParameter="UpgradedAssets" ItemName="_UpgradedWasmProjectStaticWebAssets" />
292
+ </UpgradeLegacyWasmStaticWebAssets>
293
+
294
+ <ItemGroup>
295
+ <_ThisProjectStaticWebAssets Remove="@(_CurrentWasmProjectStaticWebAssets)" />
296
+ <_ThisProjectStaticWebAssets Include="@(_UpgradedWasmProjectStaticWebAssets)" />
297
+ </ItemGroup>
298
+
299
+ </Target>
300
+
301
+ <Target Name="_BlazorWasmPrepareForRun" DependsOnTargets="_ProcessBlazorWasmOutputs" BeforeTargets="_RazorPrepareForRun" AfterTargets="GetCurrentProjectStaticWebAssets">
302
+ <PropertyGroup>
303
+ <_BlazorBuildBootJsonPath>$(IntermediateOutputPath)blazor.boot.json</_BlazorBuildBootJsonPath>
304
+ <_BlazorOutputContent>@(_BlazorOutputWithHash)</_BlazorOutputContent>
305
+ <_BlazorWebAssemblyLoadAllGlobalizationData Condition="'$(BlazorWebAssemblyLoadAllGlobalizationData)' == ''">false</_BlazorWebAssemblyLoadAllGlobalizationData>
306
+ </PropertyGroup>
307
+
308
+ <Error
309
+ Text="Unable to find %(BlazorWebAssemblyLazyLoad.Identity) to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project."
310
+ Code="BLAZORSDK1001"
311
+ Condition="'@(BlazorWebAssemblyLazyLoad)' != '' And !($([System.String]::Copy('$(_BlazorOutputContent)').Contains('%(BlazorWebAssemblyLazyLoad.Identity)')))" />
312
+
313
+ <GenerateBlazorWebAssemblyBootJson50
314
+ AssemblyPath="@(IntermediateAssembly)"
315
+ Resources="@(_BlazorOutputWithHash)"
316
+ DebugBuild="true"
317
+ LinkerEnabled="false"
318
+ CacheBootResources="$(BlazorCacheBootResources)"
319
+ OutputPath="$(_BlazorBuildBootJsonPath)"
320
+ ConfigurationFiles="@(_BlazorConfigFile)"
321
+ LazyLoadedAssemblies="@(BlazorWebAssemblyLazyLoad)"
322
+ InvariantGlobalization="$(InvariantGlobalization)"
323
+ LoadAllICUData="$(_BlazorWebAssemblyLoadAllGlobalizationData)" />
324
+
325
+ <ItemGroup>
326
+ <FileWrites Include="$(OutDir)$(_BlazorOutputPath)blazor.boot.json" />
327
+ </ItemGroup>
328
+
329
+ <ItemGroup>
330
+ <_BlazorWebAssemblyStaticWebAsset Include="$(_BlazorBuildBootJsonPath)">
331
+ <SourceId>$(PackageId)</SourceId>
332
+ <SourceType></SourceType>
333
+ <ContentRoot>$([MSBuild]::NormalizeDirectory('$(TargetDir)wwwroot\'))</ContentRoot>
334
+ <BasePath>$(StaticWebAssetBasePath)</BasePath>
335
+ <RelativePath>_framework/blazor.boot.json</RelativePath>
336
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
337
+ </_BlazorWebAssemblyStaticWebAsset>
338
+
339
+ <_BlazorWebAssemblyStaticWebAsset Include="@(_BlazorOutputWithHash)">
340
+ <SourceId>$(PackageId)</SourceId>
341
+ <SourceType></SourceType>
342
+ <ContentRoot>$([MSBuild]::NormalizeDirectory('$(TargetDir)wwwroot\'))</ContentRoot>
343
+ <BasePath>$(StaticWebAssetBasePath)</BasePath>
344
+ <RelativePath>$([System.String]::Copy('%(_BlazorOutputWithHash.TargetPath)').Replace('\','/').Substring(8))</RelativePath>
345
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
346
+ </_BlazorWebAssemblyStaticWebAsset>
347
+
348
+ <_BlazorWebAssemblyStaticWebAsset Include="@(_BlazorBuildGZipCompressedFile)">
349
+ <SourceId>$(PackageId)</SourceId>
350
+ <SourceType></SourceType>
351
+ <ContentRoot>$([MSBuild]::NormalizeDirectory('$(TargetDir)wwwroot\'))</ContentRoot>
352
+ <BasePath>$(StaticWebAssetBasePath)</BasePath>
353
+ <RelativePath>$([System.String]::Copy('%(_BlazorBuildGZipCompressedFile.RelativePath)').Replace('\','/').Substring(8))</RelativePath>
354
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
355
+ </_BlazorWebAssemblyStaticWebAsset>
356
+
357
+ <StaticWebAsset Include="@(_BlazorWebAssemblyStaticWebAsset)" />
358
+ <_ExternalStaticWebAsset Include="@(_BlazorWebAssemblyStaticWebAsset)" SourceType="Generated" />
359
+ </ItemGroup>
360
+ </Target>
361
+
362
+ <!-- Mimics the behavior of CopyFilesToOutputDirectory. We simply copy relevant build outputs to the wwwroot directory -->
363
+ <Target Name="_BlazorCopyFilesToOutputDirectory" AfterTargets="CopyFilesToOutputDirectory">
364
+ <Copy
365
+ SourceFiles="@(IntermediateAssembly)"
366
+ DestinationFolder="$(OutDir)$(_BlazorOutputPath)"
367
+ SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
368
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
369
+ Retries="$(CopyRetryCount)"
370
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
371
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)"
372
+ UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)"
373
+ ErrorIfLinkFails="$(ErrorIfLinkFailsForCopyFilesToOutputDirectory)"
374
+ Condition="'$(CopyBuildOutputToOutputDirectory)' == 'true' and '$(SkipCopyBuildProduct)' != 'true'">
375
+
376
+ <Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
377
+ </Copy>
378
+
379
+ <Message Importance="High" Text="$(MSBuildProjectName) (Blazor output) -&gt; $(TargetDir)wwwroot" Condition="'$(CopyBuildOutputToOutputDirectory)' == 'true' and '$(SkipCopyBuildProduct)'!='true'" />
380
+
381
+ <Copy
382
+ SourceFiles="@(_DebugSymbolsIntermediatePath)"
383
+ DestinationFolder="$(OutDir)$(_BlazorOutputPath)"
384
+ SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
385
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
386
+ Retries="$(CopyRetryCount)"
387
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
388
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)"
389
+ UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)"
390
+ ErrorIfLinkFails="$(ErrorIfLinkFailsForCopyFilesToOutputDirectory)"
391
+ Condition="'$(_DebugSymbolsProduced)'=='true' and '$(SkipCopyingSymbolsToOutputDirectory)' != 'true' and '$(CopyOutputSymbolsToOutputDirectory)'=='true'">
392
+
393
+ <Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
394
+ </Copy>
395
+
396
+ <Copy
397
+ SourceFiles="@(IntermediateSatelliteAssembliesWithTargetPath)"
398
+ DestinationFiles="@(IntermediateSatelliteAssembliesWithTargetPath->'$(OutDir)$(_BlazorOutputPath)%(Culture)\$(TargetName).resources.dll')"
399
+ SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
400
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
401
+ Retries="$(CopyRetryCount)"
402
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
403
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)"
404
+ UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)"
405
+ ErrorIfLinkFails="$(ErrorIfLinkFailsForCopyFilesToOutputDirectory)"
406
+ Condition="'@(IntermediateSatelliteAssembliesWithTargetPath)' != ''" >
407
+
408
+ <Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
409
+ </Copy>
410
+
411
+ <Copy
412
+ SourceFiles="@(_BlazorJSFile);$(_BlazorBuildBootJsonPath)"
413
+ DestinationFolder="$(OutDir)$(_BlazorOutputPath)"
414
+ SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
415
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
416
+ Retries="$(CopyRetryCount)"
417
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
418
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)"
419
+ UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)"
420
+ ErrorIfLinkFails="$(ErrorIfLinkFailsForCopyFilesToOutputDirectory)">
421
+
422
+ <Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
423
+ </Copy>
424
+
425
+ <Copy
426
+ SourceFiles="@(_BlazorBuildGZipCompressedFile)"
427
+ DestinationFiles="@(_BlazorBuildGZipCompressedFile->'$(OutDir)%(RelativePath)')"
428
+ SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
429
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
430
+ Retries="$(CopyRetryCount)"
431
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
432
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)"
433
+ UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)"
434
+ ErrorIfLinkFails="$(ErrorIfLinkFailsForCopyFilesToOutputDirectory)">
435
+
436
+ <Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
437
+ </Copy>
438
+ </Target>
439
+
440
+ <!--
441
+ This target configures special trimming for Microsoft.Extensions.* and Microsoft.AspNetCore.* assemblies.
442
+ We only need this for net5.0 projects since trimmablity is declared using assembly attributes in net6.0 and later.
443
+ -->
444
+ <Target Name="_BlazorWasmPrepareForLink" BeforeTargets="PrepareForILLink" Condition="'$(_TargetingNET60OrLater)' != 'true'">
445
+ <PropertyGroup>
446
+ <_BlazorTypeGranularTrimmerDescriptorFile>$(IntermediateOutputPath)typegranularity.trimmerdescriptor.xml</_BlazorTypeGranularTrimmerDescriptorFile>
447
+ </PropertyGroup>
448
+
449
+ <ItemGroup>
450
+ <_BlazorTypeGranularAssembly
451
+ Include="@(ManagedAssemblyToLink)"
452
+ Condition="'%(Extension)' == '.dll' AND $([System.String]::Copy('%(Filename)').StartsWith('Microsoft.AspNetCore.'))">
453
+ <Required>false</Required>
454
+ <Preserve>all</Preserve>
455
+ </_BlazorTypeGranularAssembly>
456
+
457
+ <ManagedAssemblyToLink
458
+ IsTrimmable="true"
459
+ Condition="'%(Extension)' == '.dll' AND ($([System.String]::Copy('%(Filename)').StartsWith('Microsoft.AspNetCore.')) or $([System.String]::Copy('%(Filename)').StartsWith('Microsoft.Extensions.')))" />
460
+ </ItemGroup>
461
+
462
+ <CreateBlazorTrimmerRootDescriptorFile
463
+ Assemblies="@(_BlazorTypeGranularAssembly)"
464
+ TrimmerFile="$(_BlazorTypeGranularTrimmerDescriptorFile)" />
465
+
466
+ <ItemGroup>
467
+ <TrimmerRootDescriptor Include="$(_BlazorTypeGranularTrimmerDescriptorFile)" />
468
+
469
+ <FileWrites Include="$(_BlazorTypeGranularTrimmerDescriptorFile)" />
470
+ </ItemGroup>
471
+ </Target>
472
+
473
+ <Target Name="_ProcessPublishFilesForBlazor" DependsOnTargets="_ResolveBlazorWasmOutputs" AfterTargets="ILLink">
474
+
475
+ <!--
476
+ ResolvedFileToPublish.Culture is missing for satellite assemblies from project references.
477
+ Since we need the culture to correctly generate blazor.boot.json, we cross-reference the culture we calculate as part of _ResolveBlazorWasmOutputs
478
+ -->
479
+ <JoinItems Left="@(ResolvedFileToPublish)"
480
+ Right="@(_BlazorOutputWithTargetPath->HasMetadata('Culture'))"
481
+ LeftMetadata="*"
482
+ RightMetadata="Culture"
483
+ ItemSpecToUse="Left">
484
+ <Output TaskParameter="JoinResult" ItemName="_ResolvedSatelliteToPublish" />
485
+ </JoinItems>
486
+
487
+ <PropertyGroup>
488
+ <_BlazorPublishOutputPath Condition="'$(StaticWebAssetBasePath)' != '/'">wwwroot\$(StaticWebAssetBasePath.Replace('/', '\').Trim('\'))\</_BlazorPublishOutputPath>
489
+ <_BlazorPublishOutputPath Condition="'$(StaticWebAssetBasePath)' == '/'">wwwroot\</_BlazorPublishOutputPath>
490
+ <_BlazorFrameworkPublishPath>$(_BlazorPublishOutputPath)_framework\</_BlazorFrameworkPublishPath>
491
+ </PropertyGroup>
492
+
493
+ <ItemGroup>
494
+ <ResolvedFileToPublish Remove="@(_ResolvedSatelliteToPublish)" />
495
+ <ResolvedFileToPublish Include="@(_ResolvedSatelliteToPublish)" />
496
+
497
+ <ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(Extension)' == '.a'" />
498
+
499
+ <ResolvedFileToPublish Remove="@(ResolvedFileToPublish)"
500
+ Condition="'$(BlazorEnableTimeZoneSupport)' == 'false' AND '%(ResolvedFileToPublish.FileName)%(ResolvedFileToPublish.Extension)' == 'dotnet.timezones.blat'" />
501
+
502
+ <ResolvedFileToPublish Remove="@(ResolvedFileToPublish)"
503
+ Condition="'$(InvariantGlobalization)' == 'true' AND '%(ResolvedFileToPublish.Extension)' == '.dat' AND $([System.String]::Copy('%(ResolvedFileToPublish.FileName)').StartsWith('icudt'))" />
504
+
505
+ <!-- Remove dotnet.js from publish output -->
506
+ <ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(ResolvedFileToPublish.RelativePath)' == 'dotnet.js'" />
507
+
508
+ <!-- Remove pdbs from the publish output -->
509
+ <ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'$(CopyOutputSymbolsToPublishDirectory)' != 'true' AND '%(Extension)' == '.pdb'" />
510
+
511
+ <!-- Retarget so that items are published to the wwwroot directory -->
512
+ <!--
513
+ This changes files (such as wwwroot/index.html) that are published to $(PublishDir)wwwroot\ -> $(PublishDir)wwwroot\$(StaticWebAssetBasePath)\.
514
+ Ignore any user specified web.config in the process.
515
+ -->
516
+ <ResolvedFileToPublish
517
+ RelativePath="$(_BlazorPublishOutputPath)$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('/','\').Substring(8))"
518
+ Condition="'$(StaticWebAssetBasePath)' != '/' AND $([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('/','\').StartsWith('wwwroot\'))" />
519
+
520
+ <!--
521
+ Change all remaining publish output to publish to appear under the $(PublishDir)wwwroot\$(StaticWebAssetBasePath) path.
522
+ -->
523
+ <ResolvedFileToPublish
524
+ RelativePath="$(_BlazorFrameworkPublishPath)%(ResolvedFileToPublish.RelativePath)"
525
+ Condition="'%(ResolvedFileToPublish.RelativePath)' != 'web.config' AND !$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('/','\').StartsWith('wwwroot\'))" />
526
+ </ItemGroup>
527
+
528
+ <ItemGroup Condition="'@(ResolvedFileToPublish->AnyHaveMetadataValue('RelativePath', 'web.config'))' != 'true'">
529
+ <ResolvedFileToPublish
530
+ Include="$(MSBuildThisFileDirectory)BlazorWasm.web.config"
531
+ ExcludeFromSingleFile="true"
532
+ CopyToPublishDirectory="PreserveNewest"
533
+ RelativePath="web.config" />
534
+ </ItemGroup>
535
+
536
+ <!-- Generate the publish boot json -->
537
+ <ItemGroup>
538
+ <_BlazorPublishBootResource
539
+ Include="@(ResolvedFileToPublish)"
540
+ Condition="$([System.String]::Copy('%(RelativePath)').Replace('\','/').StartsWith($(_BlazorFrameworkPublishPath.Replace('\', '/')))) AND '%(Extension)' != '.a'" />
541
+ </ItemGroup>
542
+
543
+ <GetFileHash Files="@(_BlazorPublishBootResource)" Algorithm="SHA256" HashEncoding="base64">
544
+ <Output TaskParameter="Items" ItemName="_BlazorPublishBootResourceWithHash" />
545
+ </GetFileHash>
546
+
547
+ <PropertyGroup>
548
+ <_BlazorOutputContent>@(_BlazorPublishBootResourceWithHash)</_BlazorOutputContent>
549
+ </PropertyGroup>
550
+
551
+ <Error
552
+ Text="Unable to find %(BlazorWebAssemblyLazyLoad.Identity) to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project."
553
+ Code="BLAZORSDK1001"
554
+ Condition="'@(BlazorWebAssemblyLazyLoad)' != '' And !($([System.String]::Copy('$(_BlazorOutputContent)').Contains('%(BlazorWebAssemblyLazyLoad.Identity)')))" />
555
+
556
+ <GenerateBlazorWebAssemblyBootJson50
557
+ AssemblyPath="@(IntermediateAssembly)"
558
+ Resources="@(_BlazorPublishBootResourceWithHash)"
559
+ DebugBuild="false"
560
+ LinkerEnabled="$(PublishTrimmed)"
561
+ CacheBootResources="$(BlazorCacheBootResources)"
562
+ OutputPath="$(IntermediateOutputPath)blazor.publish.boot.json"
563
+ ConfigurationFiles="@(_BlazorConfigFile)"
564
+ LazyLoadedAssemblies="@(BlazorWebAssemblyLazyLoad)"
565
+ InvariantGlobalization="$(InvariantGlobalization)"
566
+ LoadAllICUData="$(_BlazorWebAssemblyLoadAllGlobalizationData)" />
567
+
568
+ <ItemGroup>
569
+ <ResolvedFileToPublish
570
+ Include="$(IntermediateOutputPath)blazor.publish.boot.json"
571
+ RelativePath="$(_BlazorFrameworkPublishPath)blazor.boot.json" />
572
+
573
+ <ResolvedFileToPublish
574
+ Include="@(_BlazorJSFile)"
575
+ RelativePath="$(_BlazorFrameworkPublishPath)%(FileName)%(Extension)" />
576
+ </ItemGroup>
577
+ </Target>
578
+
579
+ <Target
580
+ Name="_BlazorWasmNative"
581
+ DependsOnTargets="_EnsureWasmRuntimeWorkload;_GatherWasmFilesToBuild;WasmBuildApp"
582
+ BeforeTargets="_ProcessPublishFilesForBlazor"
583
+ Condition="'$(UsingBrowserRuntimeWorkload)' == 'true'">
584
+
585
+ <!--
586
+ Native compilation produces a copy of the dotnet.js and dotnet.wasm file that are required to run the app. Replace the regular js and wams files with the AOTed version.
587
+ But first, mangle the new dotnet.js file to include the runtime version.
588
+ -->
589
+
590
+ <Copy SourceFiles="@(WasmNativeAsset)" DestinationFiles="%(RootDir)%(Directory)\dotnet.$(_DotNetJsVersion).js" Condition="%(FileName) == 'dotnet' AND %(Extension) == '.js'">
591
+ <Output TaskParameter="CopiedFiles" ItemName="_PublishNativeDotnetJsFile" />
592
+ </Copy>
593
+
594
+ <ItemGroup>
595
+ <ResolvedFileToPublish Remove="$(_BlazorDotNetJSFilePath)" Condition="'@(WasmNativeAsset->Count())' != '0'"/>
596
+ <ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="(%(FileName) == 'dotnet' AND %(Extension) == '.wasm') AND '@(WasmNativeAsset->Count())' != '0'" />
597
+
598
+ <ResolvedFileToPublish Include="@(_PublishNativeDotnetJsFile)" AssetType="native" RelativePath="%(FileName)%(Extension)" />
599
+ <ResolvedFileToPublish Include="@(WasmNativeAsset)" AssetType="native" RelativePath="dotnet.wasm" Condition="%(FileName) == 'dotnet' AND %(Extension) == '.wasm'"/>
600
+ </ItemGroup>
601
+ </Target>
602
+
603
+ <Target Name="_EnsureWasmRuntimeWorkload" Condition="'$(UsingBlazorAOTWorkloadManifest)' != 'true'">
604
+ <Error
605
+ Text="Publishing with AOT enabled requires the .NET WebAssembly AOT workload to be installed. To learn more, visit https://aka.ms/AAb4uzl."
606
+ Code="BLAZORSDK1002" />
607
+ </Target>
608
+
609
+ <Target Name="_GatherWasmFilesToBuild">
610
+ <ItemGroup>
611
+ <WasmAssembliesToBundle Include="%(ResolvedFileToPublish.FullPath)" Exclude="@(_Exclude)" Condition="%(Extension) == '.dll' AND %(FileName) != 'Microsoft.JSInterop.WebAssembly'" />
612
+ </ItemGroup>
613
+ </Target>
614
+
615
+ <Target Name="_BlazorCompressPublishFiles" AfterTargets="_ProcessPublishFilesForBlazor" Condition="'$(BlazorEnableCompression)' != 'false'">
616
+ <PropertyGroup>
617
+ <_CompressedFileOutputPath>$(IntermediateOutputPath)compress\</_CompressedFileOutputPath>
618
+ <_BlazorWebAssemblyBrotliIncremental>true</_BlazorWebAssemblyBrotliIncremental>
619
+ </PropertyGroup>
620
+
621
+ <ItemGroup>
622
+ <_FileToCompress
623
+ Include="@(ResolvedFileToPublish)"
624
+ Condition="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('\','/').StartsWith('wwwroot/'))" />
625
+ </ItemGroup>
626
+
627
+ <Message Text="Compressing Blazor WebAssembly publish artifacts. This may take a while..." Importance="High" />
628
+
629
+ <MakeDir Directories="$(_CompressedFileOutputPath)" Condition="!Exists('$(_CompressedFileOutputPath)')" />
630
+
631
+ <PropertyGroup Condition="'$(DOTNET_HOST_PATH)' == ''">
632
+ <_DotNetHostDirectory>$(NetCoreRoot)</_DotNetHostDirectory>
633
+ <_DotNetHostFileName>dotnet</_DotNetHostFileName>
634
+ <_DotNetHostFileName Condition="'$(OS)' == 'Windows_NT'">dotnet.exe</_DotNetHostFileName>
635
+ </PropertyGroup>
636
+
637
+ <BrotliCompress
638
+ OutputDirectory="$(_CompressedFileOutputPath)"
639
+ FilesToCompress="@(_FileToCompress)"
640
+ CompressionLevel="$(_BlazorBrotliCompressionLevel)"
641
+ SkipIfOutputIsNewer="$(_BlazorWebAssemblyBrotliIncremental)"
642
+ ToolAssembly="$(_BlazorWebAssemblySdkToolAssembly)"
643
+ ToolExe="$(_DotNetHostFileName)"
644
+ ToolPath="$(_DotNetHostDirectory)">
645
+
646
+ <Output TaskParameter="CompressedFiles" ItemName="_BrotliCompressedFile" />
647
+ <Output TaskParameter="CompressedFiles" ItemName="FileWrites" />
648
+ </BrotliCompress>
649
+
650
+ <GZipCompress
651
+ OutputDirectory="$(_CompressedFileOutputPath)"
652
+ FilesToCompress="@(_FileToCompress)">
653
+
654
+ <Output TaskParameter="CompressedFiles" ItemName="_BlazorPublishGZipCompressedFile" />
655
+ <Output TaskParameter="CompressedFiles" ItemName="FileWrites" />
656
+ </GZipCompress>
657
+
658
+ <ItemGroup>
659
+ <ResolvedFileToPublish Include="@(_BrotliCompressedFile)" />
660
+ <ResolvedFileToPublish Include="@(_BlazorPublishGZipCompressedFile)" />
661
+ </ItemGroup>
662
+ </Target>
663
+
664
+ <Target Name="_SetupPublishSemaphore" BeforeTargets="PrepareForPublish">
665
+ <PropertyGroup>
666
+ <!--
667
+ Add marker that indicates Blazor WASM is doing a publish. This is used to identify when GetCopyToPublishDirectoryItems
668
+ is invoked as a result of a P2P reference.
669
+ -->
670
+ <_PublishingBlazorWasmProject>true</_PublishingBlazorWasmProject>
671
+ </PropertyGroup>
672
+ </Target>
673
+
674
+ <Target Name="_GetBlazorWasmFilesForPublishInner"
675
+ DependsOnTargets="_ResolveBlazorWasmOutputs;ComputeFilesToPublish"
676
+ Returns="@(ResolvedFileToPublish)" />
677
+
678
+ <Target Name="_GetBlazorWasmFilesForPublish" BeforeTargets="GetCopyToPublishDirectoryItems">
679
+ <MSBuild
680
+ Projects="$(MSBuildProjectFullPath)"
681
+ Targets="_GetBlazorWasmFilesForPublishInner"
682
+ Properties="BuildProjectReferences=false;ResolveAssemblyReferencesFindRelatedSatellites=true;_PublishingBlazorWasmProject=true"
683
+ RemoveProperties="NoBuild;RuntimeIdentifier"
684
+ BuildInParallel="$(BuildInParallel)"
685
+ Condition="'$(_PublishingBlazorWasmProject)' != 'true'">
686
+
687
+ <Output TaskParameter="TargetOutputs" ItemName="_ResolvedFileToPublish" />
688
+ </MSBuild>
689
+
690
+ <ItemGroup>
691
+ <AllPublishItemsFullPathWithTargetPath Include="@(_ResolvedFileToPublish->'%(FullPath)')">
692
+ <TargetPath>%(RelativePath)</TargetPath>
693
+ <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
694
+ </AllPublishItemsFullPathWithTargetPath>
695
+ </ItemGroup>
696
+ </Target>
697
+
698
+ <Target Name="_BlazorApplyLinkPreferencesToContent" BeforeTargets="AssignTargetPaths;ResolveCurrentProjectStaticWebAssetsInputs;ResolveStaticWebAssetsInputs" Returns="@(Content)">
699
+ <ItemGroup>
700
+ <Content
701
+ Condition="'%(Content.Link)' != '' AND '%(Content.CopyToPublishDirectory)' == '' AND $([System.String]::Copy('%(Content.Link)').Replace('\','/').StartsWith('wwwroot/'))"
702
+ CopyToPublishDirectory="PreserveNewest" />
703
+
704
+ </ItemGroup>
705
+ </Target>
706
+
707
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.BlazorWebAssembly.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0">
13
+
14
+ <PropertyGroup>
15
+ <EnableDefaultContentItems Condition=" '$(EnableDefaultContentItems)' == '' ">true</EnableDefaultContentItems>
16
+
17
+ <!-- Trimmer defaults that depend on user-definable settings.
18
+ This must be configured before it's initialized in the .NET SDK targets (which are imported by the Razor SDK). -->
19
+ <SuppressTrimAnalysisWarnings Condition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings>
20
+
21
+ <!-- Must happen before WasmSDK import -->
22
+ <WasmNestedPublishAppDependsOn>_GatherBlazorFilesToPublish;$(WasmNestedPublishAppDependsOn)</WasmNestedPublishAppDependsOn>
23
+ </PropertyGroup>
24
+
25
+ <Import Sdk="Microsoft.NET.Sdk.WebAssembly" Project="Sdk.targets" />
26
+
27
+ <PropertyGroup>
28
+ <!-- Paths to tools, tasks, and extensions are calculated relative to the BlazorWebAssemblySdkDirectoryRoot. This can be modified to test a local build. -->
29
+ <BlazorWebAssemblySdkDirectoryRoot Condition="'$(BlazorWebAssemblySdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\</BlazorWebAssemblySdkDirectoryRoot>
30
+ <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0</_BlazorWebAssemblySdkTasksTFM>
31
+ <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' != 'Core'">net472</_BlazorWebAssemblySdkTasksTFM>
32
+ <_BlazorWebAssemblySdkTasksAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\$(_BlazorWebAssemblySdkTasksTFM)\Microsoft.NET.Sdk.BlazorWebAssembly.Tasks.dll</_BlazorWebAssemblySdkTasksAssembly>
33
+ <_BlazorWebAssemblySdkToolAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\net9.0\Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll</_BlazorWebAssemblySdkToolAssembly>
34
+ </PropertyGroup>
35
+
36
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.CreateBlazorTrimmerRootDescriptorFile" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
37
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.GenerateBlazorBootExtensionJson" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
38
+
39
+ <PropertyGroup>
40
+ <SelfContained>true</SelfContained>
41
+ <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
42
+
43
+ <!-- Runtime feature defaults to trim unnecessary code -->
44
+ <InvariantGlobalization Condition="'$(InvariantGlobalization)' == ''">false</InvariantGlobalization>
45
+ <EventSourceSupport Condition="'$(EventSourceSupport)' == ''">false</EventSourceSupport>
46
+ <UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">true</UseSystemResourceKeys>
47
+ <EnableUnsafeUTF7Encoding Condition="'$(EnableUnsafeUTF7Encoding)' == ''">false</EnableUnsafeUTF7Encoding>
48
+ <HttpActivityPropagationSupport Condition="'$(HttpActivityPropagationSupport)' == ''">false</HttpActivityPropagationSupport>
49
+ <DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(Configuration)' != 'Debug'">false</DebuggerSupport>
50
+ <BlazorCacheBootResources Condition="'$(BlazorCacheBootResources)' == ''">true</BlazorCacheBootResources>
51
+
52
+ <_TargetingNET80OrLater>$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))</_TargetingNET80OrLater>
53
+ <WasmFingerprintDotnetJs>true</WasmFingerprintDotnetJs>
54
+ <WasmFingerprintDotnetJs Condition="'$(_TargetingNET80OrLater)' == 'true'">false</WasmFingerprintDotnetJs>
55
+ <WasmEnableWebcil Condition="'$(WasmEnableWebcil)' == '' and ('$(TargetFrameworkIdentifier)' != '.NETCoreApp' or '$(_TargetingNET80OrLater)' != 'true')">false</WasmEnableWebcil>
56
+
57
+ <!-- Turn off parts of the build that do not apply to Blazor projects -->
58
+ <GenerateRuntimeConfigurationFiles>false</GenerateRuntimeConfigurationFiles>
59
+
60
+ <!-- Don't generate a NETSDK1151 error if a non self-contained Exe references a Blazor Exe -->
61
+ <ShouldBeValidatedAsExecutableReference>false</ShouldBeValidatedAsExecutableReference>
62
+
63
+ <DisableAutoWasmBuildApp>true</DisableAutoWasmBuildApp>
64
+ <DisableAutoWasmPublishApp>true</DisableAutoWasmPublishApp>
65
+ </PropertyGroup>
66
+
67
+ <!-- Wire-up static web assets -->
68
+ <PropertyGroup>
69
+ <ResolveBuildRelatedStaticWebAssetsDependsOn>
70
+ $(ResolveBuildRelatedStaticWebAssetsDependsOn);
71
+ _ResolveBlazorWasmOutputs;
72
+ </ResolveBuildRelatedStaticWebAssetsDependsOn>
73
+
74
+ <GenerateBuildWasmBootJsonDependsOn>
75
+ $(GenerateBuildWasmBootJsonDependsOn);
76
+ GenerateBuildBlazorBootExtensionJson;
77
+ </GenerateBuildWasmBootJsonDependsOn>
78
+
79
+ <GeneratePublishWasmBootJsonDependsOn>
80
+ $(GeneratePublishWasmBootJsonDependsOn);
81
+ GeneratePublishBlazorBootExtensionJson;
82
+ </GeneratePublishWasmBootJsonDependsOn>
83
+ </PropertyGroup>
84
+
85
+ <Target Name="_BlazorWasmNativeForBuild" DependsOnTargets="_GatherBlazorFilesToBuild;WasmBuildApp" Condition="'$(UsingBrowserRuntimeWorkload)' == 'true'" />
86
+
87
+ <Target Name="_GatherBlazorFilesToBuild">
88
+ <ItemGroup>
89
+ <WasmAssembliesToBundle Condition="'%(WasmAssembliesToBundle.FileName)' == 'Microsoft.JSInterop.WebAssembly'" AOT_InternalForceToInterpret="true" />
90
+ </ItemGroup>
91
+ </Target>
92
+
93
+ <Target Name="_ResolveBlazorWasmOutputs" DependsOnTargets="ResolveWasmOutputs;ResolveReferences;PrepareResourceNames;ComputeIntermediateSatelliteAssemblies;_BlazorWasmNativeForBuild" BeforeTargets="_RazorPrepareForRun">
94
+ <ItemGroup>
95
+ <_BlazorJSFile Include="$(BlazorWebAssemblyJSPath)" />
96
+ <_BlazorJSFile Include="$(BlazorWebAssemblyJSMapPath)" Condition="Exists('$(BlazorWebAssemblyJSMapPath)')" />
97
+ <_BlazorJsFile>
98
+ <RelativePath>_framework/%(Filename)%(Extension)</RelativePath>
99
+ </_BlazorJsFile>
100
+
101
+ <!-- A missing blazor.webassembly.js is our packaging error. Produce an error so it's discovered early. -->
102
+ <Error
103
+ Text="Unable to find BlazorWebAssembly JS files. This usually indicates a packaging error."
104
+ Code="RAZORSDK1007"
105
+ Condition="'@(_BlazorJSFile->Count())' == '0'" />
106
+ </ItemGroup>
107
+
108
+ <DefineStaticWebAssets
109
+ CandidateAssets="@(_BlazorJSFile)"
110
+ SourceId="$(PackageId)"
111
+ SourceType="Computed"
112
+ AssetKind="All"
113
+ AssetMergeSource="$(StaticWebAssetMergeTarget)"
114
+ AssetRole="Primary"
115
+ AssetTraitName="WasmResource"
116
+ AssetTraitValue="boot"
117
+ CopyToOutputDirectory="PreserveNewest"
118
+ CopyToPublishDirectory="PreserveNewest"
119
+ ContentRoot="$(OutputPath)wwwroot"
120
+ BasePath="$(StaticWebAssetBasePath)"
121
+ >
122
+ <Output TaskParameter="Assets" ItemName="_BlazorJSStaticWebAsset" />
123
+ </DefineStaticWebAssets>
124
+
125
+ <DefineStaticWebAssetEndpoints
126
+ CandidateAssets="@(_BlazorJSStaticWebAsset)"
127
+ ExistingEndpoints="@(StaticWebAssetEndpoint)"
128
+ ContentTypeMappings="@(StaticWebAssetContentTypeMapping)"
129
+ >
130
+ <Output TaskParameter="Endpoints" ItemName="_BlazorStaticWebAssetEndpoint" />
131
+ </DefineStaticWebAssetEndpoints>
132
+
133
+ <ItemGroup>
134
+ <StaticWebAsset Include="@(_BlazorJSStaticWebAsset)" />
135
+ <StaticWebAssetEndpoint Include="@(_BlazorStaticWebAssetEndpoint)" />
136
+ </ItemGroup>
137
+ </Target>
138
+
139
+ <!-- Just print a message here, static web assets takes care of all the copying -->
140
+ <Target Name="_BlazorCopyFilesToOutputDirectory" AfterTargets="CopyFilesToOutputDirectory">
141
+ <Message Importance="High" Text="$(MSBuildProjectName) (Blazor output) -&gt; $(TargetDir)wwwroot" Condition="'$(CopyBuildOutputToOutputDirectory)' == 'true' and '$(SkipCopyBuildProduct)'!='true'" />
142
+ </Target>
143
+
144
+ <!-- Make sure that ResolveAssemblyReferences runs early enough to ensure satellite assemblies are populated in the ResolvedFilesToPublish -->
145
+ <Target Name="_BlazorPrepareForPublish"
146
+ DependsOnTargets="PrepareResourceNames;ComputeIntermediateSatelliteAssemblies;ResolveAssemblyReferences"
147
+ BeforeTargets="PrepareForPublish" />
148
+
149
+ <Target Name="_GatherBlazorFilesToPublish">
150
+ <ItemGroup>
151
+ <WasmAssembliesToBundle Condition="'%(WasmAssembliesToBundle.FileName)' == 'Microsoft.JSInterop.WebAssembly'" AOT_InternalForceToInterpret="true" />
152
+ </ItemGroup>
153
+ </Target>
154
+
155
+ <Target Name="GenerateBuildBlazorBootExtensionJson">
156
+ <PropertyGroup>
157
+ <_BlazorBuildBootExtensionJsonPath>$(IntermediateOutputPath)blazor.build.boot-extension.json</_BlazorBuildBootExtensionJsonPath>
158
+ </PropertyGroup>
159
+
160
+ <GenerateBlazorBootExtensionJson OutputPath="$(_BlazorBuildBootExtensionJsonPath)" />
161
+
162
+ <ItemGroup>
163
+ <FileWrites Include="$(_BlazorBuildBootExtensionJsonPath)" />
164
+ <WasmBootConfigExtension Include="$(_BlazorBuildBootExtensionJsonPath)" Key="blazor" />
165
+ </ItemGroup>
166
+ </Target>
167
+
168
+ <Target Name="GeneratePublishBlazorBootExtensionJson">
169
+ <PropertyGroup>
170
+ <_BlazorPublishBootExtensionJsonPath>$(IntermediateOutputPath)blazor.publish.boot-extension.json</_BlazorPublishBootExtensionJsonPath>
171
+ </PropertyGroup>
172
+
173
+ <GenerateBlazorBootExtensionJson OutputPath="$(_BlazorPublishBootExtensionJsonPath)" />
174
+
175
+ <ItemGroup>
176
+ <FileWrites Include="$(_BlazorPublishBootExtensionJsonPath)" />
177
+ <WasmBootConfigExtension Remove="@(WasmBootConfigExtension)" Condition="'%(Key)' == 'blazor'" />
178
+ <WasmBootConfigExtension Include="$(_BlazorPublishBootExtensionJsonPath)" Key="blazor" />
179
+ </ItemGroup>
180
+ </Target>
181
+
182
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.props ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.BlazorWebAssembly.props
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0" TreatAsLocalProperty="RuntimeIdentifier">
13
+ <PropertyGroup>
14
+ <OutputType>exe</OutputType>
15
+
16
+ <RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
17
+ <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
18
+ <CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory>
19
+
20
+ <!-- Trimmer defaults -->
21
+ <PublishTrimmed Condition="'$(PublishTrimmed)' == ''">true</PublishTrimmed>
22
+ <TrimMode Condition="'$(TrimMode)' == ''">partial</TrimMode>
23
+ <TrimmerRemoveSymbols Condition="'$(TrimmerRemoveSymbols)' == ''">false</TrimmerRemoveSymbols>
24
+
25
+ <!-- Disable accelerated builds in Visual Studio -->
26
+ <AccelerateBuildsInVisualStudio>false</AccelerateBuildsInVisualStudio>
27
+
28
+ <!-- Static web assets defaults -->
29
+ <StaticWebAssetProjectMode Condition="'$(StaticWebAssetProjectMode)' == ''">Root</StaticWebAssetProjectMode>
30
+ <StaticWebAssetsAdditionalPublishProperties>$(StaticWebAssetsAdditionalPublishProperties);_PublishingBlazorWasmProject=true</StaticWebAssetsAdditionalPublishProperties>
31
+ <StaticWebAssetsAdditionalEmbeddedPublishProperties>$(StaticWebAssetsAdditionalEmbeddedPublishProperties);_PublishingBlazorWasmProject=true</StaticWebAssetsAdditionalEmbeddedPublishProperties>
32
+ <StaticWebAssetStandaloneHosting Condition="'$(StaticWebAssetStandaloneHosting)' == '' and '$(StaticWebAssetProjectMode)' == 'Root'">true</StaticWebAssetStandaloneHosting>
33
+ <StaticWebAssetMakeReferencedAssetOriginalItemSpecAbsolute Condition="'$(StaticWebAssetMakeReferencedAssetOriginalItemSpecAbsolute)' == ''">true</StaticWebAssetMakeReferencedAssetOriginalItemSpecAbsolute>
34
+ <StaticWebAssetsGetEmbeddedPublishAssetsTargets>ComputeFilesToPublish;GetCurrentProjectEmbeddedPublishStaticWebAssetItems</StaticWebAssetsGetEmbeddedPublishAssetsTargets>
35
+ </PropertyGroup>
36
+
37
+ <Import Sdk="Microsoft.NET.Sdk.Razor" Project="Sdk.props" />
38
+ <Import Sdk="Microsoft.NET.Sdk.Web.ProjectSystem" Project="Sdk.props" />
39
+ <Import Sdk="Microsoft.NET.Sdk.Publish" Project="Sdk.props" />
40
+ <Import Sdk="Microsoft.NET.Sdk.WebAssembly" Project="Sdk.props" />
41
+
42
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.BlazorWebAssembly.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0">
13
+
14
+ <PropertyGroup>
15
+ <EnableDefaultContentItems Condition=" '$(EnableDefaultContentItems)' == '' ">true</EnableDefaultContentItems>
16
+
17
+ <!-- Trimmer defaults that depend on user-definable settings.
18
+ This must be configured before it's initialized in the .NET SDK targets (which are imported by the Razor SDK). -->
19
+ <SuppressTrimAnalysisWarnings Condition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings>
20
+
21
+ <!-- Similarly these feature switches must be configured before they are initialized in imported SDKs -->
22
+ <JsonSerializerIsReflectionEnabledByDefault Condition="'$(JsonSerializerIsReflectionEnabledByDefault)' == ''">true</JsonSerializerIsReflectionEnabledByDefault>
23
+
24
+ <!-- EnableConfigurationBindingGenerator is enabled by default for trimmed apps, but Blazor WASM disables it by default -->
25
+ <EnableConfigurationBindingGenerator Condition="'$(EnableConfigurationBindingGenerator)' == ''">false</EnableConfigurationBindingGenerator>
26
+ </PropertyGroup>
27
+
28
+ <Import Sdk="Microsoft.NET.Sdk.Razor" Project="Sdk.targets" />
29
+ <Import Sdk="Microsoft.NET.Sdk.Web.ProjectSystem" Project="Sdk.targets" />
30
+ <Import Sdk="Microsoft.NET.Sdk.Publish" Project="Sdk.targets" />
31
+
32
+ <!--
33
+ Targets supporting Razor MSBuild integration. Contain support for generating C# code using Razor
34
+ and including the generated code in the project lifecycle, including compiling, publishing and producing
35
+ nuget packages.
36
+ -->
37
+
38
+ <!--
39
+ This is a hook to import a set of targets before the Blazor targets. By default this is unused.
40
+ -->
41
+ <Import Project="$(CustomBeforeBlazorWebAssemblySdkTargets)" Condition="'$(CustomBeforeBlazorWebAssemblySdkTargets)' != '' and Exists('$(CustomBeforeBlazorWebAssemblySdkTargets)')"/>
42
+
43
+ <PropertyGroup>
44
+ <_BlazorTargetingNET60OrLater Condition=" '$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '6.0')) ">true</_BlazorTargetingNET60OrLater>
45
+ <_BlazorWebAssemblyVersionedTargetsFile Condition="'$(_BlazorWebAssemblyVersionedTargetsFile)' == '' And '$(_BlazorTargetingNET60OrLater)' == 'true'">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets</_BlazorWebAssemblyVersionedTargetsFile>
46
+ <_BlazorWebAssemblyVersionedTargetsFile Condition="'$(_BlazorWebAssemblyVersionedTargetsFile)' == ''">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets</_BlazorWebAssemblyVersionedTargetsFile>
47
+ </PropertyGroup>
48
+
49
+ <Import Project="$(_BlazorWebAssemblyVersionedTargetsFile)" />
50
+
51
+ <Import Project="$(CustomAfterBlazorWebAssemblySdkTargets)" Condition="'$(CustomAfterBlazorWebAssemblySdkTargets)' != '' and Exists('$(CustomAfterBlazorWebAssemblySdkTargets)')"/>
52
+
53
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.ServiceWorkerAssetsManifest.5_0.targets ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.BlazorWebAssembly.ServiceWorkerAssetsManifest.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+
13
+ <Project>
14
+ <UsingTask TaskName="Microsoft.NET.Sdk.BlazorWebAssembly.GenerateServiceWorkerAssetsManifest" AssemblyFile="$(_BlazorWebAssemblySdkTasksAssembly)" />
15
+
16
+ <Target Name="_ComputeServiceWorkerAssets" BeforeTargets="ResolveStaticWebAssetsInputs">
17
+
18
+ <PropertyGroup>
19
+ <_ServiceWorkerAssetsManifestIntermediateOutputPath Condition="'$([System.IO.Path]::IsPathRooted($(BaseIntermediateOutputPath)))' == 'true'">obj\$(Configuration)\$(TargetFramework)\$(ServiceWorkerAssetsManifest)</_ServiceWorkerAssetsManifestIntermediateOutputPath>
20
+ <_ServiceWorkerAssetsManifestIntermediateOutputPath Condition="'$([System.IO.Path]::IsPathRooted($(BaseIntermediateOutputPath)))' != 'true'">$(IntermediateOutputPath)$(ServiceWorkerAssetsManifest)</_ServiceWorkerAssetsManifestIntermediateOutputPath>
21
+ <_ServiceWorkerAssetsManifestFullPath>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)/$(_ServiceWorkerAssetsManifestIntermediateOutputPath)'))</_ServiceWorkerAssetsManifestFullPath>
22
+ </PropertyGroup>
23
+
24
+ <ItemGroup>
25
+ <_ManifestStaticWebAsset Include="$(_ServiceWorkerAssetsManifestFullPath)">
26
+ <SourceType></SourceType>
27
+ <SourceId>$(PackageId)</SourceId>
28
+ <ContentRoot>$([MSBuild]::NormalizeDirectory('$(TargetDir)wwwroot\'))</ContentRoot>
29
+ <BasePath>$(StaticWebAssetBasePath)</BasePath>
30
+ <RelativePath>$(ServiceWorkerAssetsManifest)</RelativePath>
31
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
32
+ </_ManifestStaticWebAsset>
33
+
34
+ <!-- Figure out where we're getting the content for each @(ServiceWorker) entry, depending on whether there's a PublishedContent value -->
35
+ <_ServiceWorkerIntermediateFile Include="@(ServiceWorker->'$(IntermediateOutputPath)serviceworkers\%(Identity)')">
36
+ <ContentSourcePath Condition="'%(_ServiceWorker.PublishedContent)' != ''">%(ServiceWorker.PublishedContent)</ContentSourcePath>
37
+ <ContentSourcePath Condition="'%(_ServiceWorker.PublishedContent)' == ''">%(ServiceWorker.Identity)</ContentSourcePath>
38
+ <OriginalPath>%(ServiceWorker.Identity)</OriginalPath>
39
+ <TargetOutputPath>%(ServiceWorker.Identity)</TargetOutputPath>
40
+ <TargetOutputPath Condition="$([System.String]::Copy('%(ServiceWorker.Identity)').Replace('\','/').StartsWith('wwwroot/'))">$([System.String]::Copy('%(ServiceWorker.Identity)').Substring(8))</TargetOutputPath>
41
+ </_ServiceWorkerIntermediateFile>
42
+
43
+ <_ServiceWorkerStaticWebAsset Include="%(_ServiceWorkerIntermediateFile.FullPath)">
44
+ <SourceType></SourceType>
45
+ <SourceId>$(PackageId)</SourceId>
46
+ <ContentRoot>$([MSBuild]::NormalizeDirectory('$(TargetDir)wwwroot\'))</ContentRoot>
47
+ <BasePath>$(StaticWebAssetBasePath)</BasePath>
48
+ <RelativePath>%(TargetOutputPath)</RelativePath>
49
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
50
+ </_ServiceWorkerStaticWebAsset>
51
+
52
+ <StaticWebAsset Include="
53
+ @(_ManifestStaticWebAsset);
54
+ @(_ServiceWorkerStaticWebAsset)" />
55
+ </ItemGroup>
56
+
57
+ </Target>
58
+
59
+ <Target Name="_WriteServiceWorkerAssetsManifest"
60
+ DependsOnTargets="_ComputeServiceWorkerAssets;ResolveStaticWebAssetsInputs">
61
+
62
+ <ItemGroup>
63
+ <_ServiceWorkItem Include="@(StaticWebAsset)" Exclude="$(_ServiceWorkerAssetsManifestFullPath);@(_ServiceWorkerStaticWebAsset)">
64
+ <AssetUrl>$([System.String]::Copy('$([System.String]::Copy('%(StaticWebAsset.BasePath)').TrimEnd('/'))/%(StaticWebAsset.RelativePath)').Replace('\','/').TrimStart('/'))</AssetUrl>
65
+ </_ServiceWorkItem>
66
+ </ItemGroup>
67
+
68
+ <GenerateServiceWorkerAssetsManifest
69
+ Version="$(ServiceWorkerAssetsManifestVersion)"
70
+ Assets="@(_ServiceWorkItem)"
71
+ OutputPath="$(_ServiceWorkerAssetsManifestIntermediateOutputPath)">
72
+ <Output TaskParameter="CalculatedVersion" PropertyName="_ServiceWorkerAssetsManifestVersion" />
73
+ </GenerateServiceWorkerAssetsManifest>
74
+
75
+ <Copy
76
+ SourceFiles="%(_ServiceWorkerIntermediateFile.ContentSourcePath)"
77
+ DestinationFiles="%(_ServiceWorkerIntermediateFile.Identity)" />
78
+
79
+ <WriteLinesToFile
80
+ File="%(_ServiceWorkerIntermediateFile.Identity)"
81
+ Lines="/* Manifest version: $(_ServiceWorkerAssetsManifestVersion) */"
82
+ Condition="'$(_ServiceWorkerAssetsManifestVersion)' != ''" />
83
+
84
+ <ItemGroup>
85
+ <FileWrites Include="@(_ServiceWorkerIntermediateFile)" />
86
+ <FileWrites Include="$(_ServiceWorkerAssetsManifestIntermediateOutputPath)" />
87
+ </ItemGroup>
88
+
89
+ </Target>
90
+
91
+ <Target Name="_BlazorStaticAssetsCopyFilesToOutputDirectory" AfterTargets="CopyFilesToOutputDirectory" DependsOnTargets="_WriteServiceWorkerAssetsManifest">
92
+ <Copy
93
+ SourceFiles="@(_ManifestStaticWebAsset);@(_ServiceWorkerStaticWebAsset)"
94
+ DestinationFiles="$(OutDir)wwwroot\%(RelativePath)"
95
+ SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
96
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
97
+ Retries="$(CopyRetryCount)"
98
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
99
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)"
100
+ UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)"
101
+ ErrorIfLinkFails="$(ErrorIfLinkFailsForCopyFilesToOutputDirectory)"
102
+ Condition="Exists('%(Identity)')">
103
+
104
+ <Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
105
+ </Copy>
106
+ </Target>
107
+
108
+ <Target Name="_OmitServiceWorkerContent"
109
+ BeforeTargets="AssignTargetPaths;ResolveCurrentProjectStaticWebAssetsInputs">
110
+
111
+ <ItemGroup>
112
+ <!-- Don't emit the service worker source files to the output -->
113
+ <Content Remove="@(ServiceWorker)" />
114
+ <Content Remove="@(ServiceWorker->'%(PublishedContent)')" />
115
+ </ItemGroup>
116
+ </Target>
117
+
118
+ <Target Name="_GenerateServiceWorkerFileForPublish"
119
+ BeforeTargets="_BlazorCompressPublishFiles"
120
+ AfterTargets="_ProcessPublishFilesForBlazor">
121
+
122
+ <PropertyGroup>
123
+ <_ServiceWorkerAssetsManifestPublishIntermediateOutputPath>$(IntermediateOutputPath)publish-$(ServiceWorkerAssetsManifest)</_ServiceWorkerAssetsManifestPublishIntermediateOutputPath>
124
+ </PropertyGroup>
125
+
126
+ <ItemGroup>
127
+ <_ServiceWorkerIntermediatePublishFile Include="$(IntermediateOutputPath)serviceworkers\%(FileName).publish%(Extension)">
128
+ <ContentSourcePath Condition="'%(ServiceWorker.PublishedContent)' != ''">%(ServiceWorker.PublishedContent)</ContentSourcePath>
129
+ <ContentSourcePath Condition="'%(ServiceWorker.PublishedContent)' == ''">%(ServiceWorker.Identity)</ContentSourcePath>
130
+ <RelativePath>%(ServiceWorker.Identity)</RelativePath>
131
+ <RelativePath Condition="$([System.String]::Copy('%(ServiceWorker.Identity)').Replace('/','\').StartsWith('wwwroot\'))">$(_BlazorPublishOutputPath)$([System.String]::Copy('%(ServiceWorker.Identity)').Substring(8))</RelativePath>
132
+ </_ServiceWorkerIntermediatePublishFile>
133
+
134
+ <_ServiceWorkerPublishFile Include="@(ResolvedFileToPublish)" Condition="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('\','/').StartsWith('wwwroot/'))">
135
+ <AssetUrl>$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('\','/').TrimStart('/'))</AssetUrl>
136
+ <AssetUrl>$([System.String]::Copy('%(RelativePath)').Replace('\','/').Substring(8))</AssetUrl>
137
+ </_ServiceWorkerPublishFile>
138
+ </ItemGroup>
139
+
140
+ <GenerateServiceWorkerAssetsManifest
141
+ Version="$(ServiceWorkerAssetsManifestVersion)"
142
+ Assets="@(_ServiceWorkerPublishFile)"
143
+ OutputPath="$(_ServiceWorkerAssetsManifestPublishIntermediateOutputPath)">
144
+
145
+ <Output TaskParameter="CalculatedVersion" PropertyName="_ServiceWorkerPublishAssetsManifestVersion" />
146
+ </GenerateServiceWorkerAssetsManifest>
147
+
148
+ <Copy SourceFiles="%(_ServiceWorkerIntermediatePublishFile.ContentSourcePath)"
149
+ DestinationFiles="%(_ServiceWorkerIntermediatePublishFile.Identity)" />
150
+
151
+ <WriteLinesToFile
152
+ File="%(_ServiceWorkerIntermediatePublishFile.Identity)"
153
+ Lines="/* Manifest version: $(_ServiceWorkerPublishAssetsManifestVersion) */" />
154
+
155
+ <ItemGroup>
156
+ <ResolvedFileToPublish
157
+ Include="@(_ServiceWorkerIntermediatePublishFile)"
158
+ CopyToPublishDirectory="PreserveNewest"
159
+ RelativePath="%(_ServiceWorkerIntermediatePublishFile.RelativePath)"
160
+ ExcludeFromSingleFile="true" />
161
+
162
+ <ResolvedFileToPublish
163
+ Include="$(_ServiceWorkerAssetsManifestPublishIntermediateOutputPath)"
164
+ CopyToPublishDirectory="PreserveNewest"
165
+ RelativePath="$(_BlazorPublishOutputPath)$(ServiceWorkerAssetsManifest)"
166
+ ExcludeFromSingleFile="true" />
167
+ </ItemGroup>
168
+ </Target>
169
+
170
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net472/Microsoft.NET.Sdk.BlazorWebAssembly.Tasks.dll ADDED
Binary file (77.1 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net9.0/Microsoft.NET.Sdk.BlazorWebAssembly.Tool.deps.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v9.0",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v9.0": {
9
+ "Microsoft.NET.Sdk.BlazorWebAssembly.Tool/9.0.313-servicing.26176.3": {
10
+ "dependencies": {
11
+ "Microsoft.DiaSymReader.Pdb2Pdb": "1.1.0-beta2-19575-01",
12
+ "Microsoft.DotNet.XliffTasks": "9.0.0-beta.26152.3",
13
+ "System.CommandLine": "2.0.0-beta4.24324.3"
14
+ },
15
+ "runtime": {
16
+ "Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll": {}
17
+ }
18
+ },
19
+ "Microsoft.DiaSymReader.Pdb2Pdb/1.1.0-beta2-19575-01": {},
20
+ "Microsoft.DotNet.XliffTasks/9.0.0-beta.26152.3": {},
21
+ "System.CommandLine/2.0.0-beta4.24324.3": {
22
+ "runtime": {
23
+ "lib/net7.0/System.CommandLine.dll": {
24
+ "assemblyVersion": "2.0.0.0",
25
+ "fileVersion": "2.0.24.32403"
26
+ }
27
+ },
28
+ "resources": {
29
+ "lib/net7.0/cs/System.CommandLine.resources.dll": {
30
+ "locale": "cs"
31
+ },
32
+ "lib/net7.0/de/System.CommandLine.resources.dll": {
33
+ "locale": "de"
34
+ },
35
+ "lib/net7.0/es/System.CommandLine.resources.dll": {
36
+ "locale": "es"
37
+ },
38
+ "lib/net7.0/fr/System.CommandLine.resources.dll": {
39
+ "locale": "fr"
40
+ },
41
+ "lib/net7.0/it/System.CommandLine.resources.dll": {
42
+ "locale": "it"
43
+ },
44
+ "lib/net7.0/ja/System.CommandLine.resources.dll": {
45
+ "locale": "ja"
46
+ },
47
+ "lib/net7.0/ko/System.CommandLine.resources.dll": {
48
+ "locale": "ko"
49
+ },
50
+ "lib/net7.0/pl/System.CommandLine.resources.dll": {
51
+ "locale": "pl"
52
+ },
53
+ "lib/net7.0/pt-BR/System.CommandLine.resources.dll": {
54
+ "locale": "pt-BR"
55
+ },
56
+ "lib/net7.0/ru/System.CommandLine.resources.dll": {
57
+ "locale": "ru"
58
+ },
59
+ "lib/net7.0/tr/System.CommandLine.resources.dll": {
60
+ "locale": "tr"
61
+ },
62
+ "lib/net7.0/zh-Hans/System.CommandLine.resources.dll": {
63
+ "locale": "zh-Hans"
64
+ },
65
+ "lib/net7.0/zh-Hant/System.CommandLine.resources.dll": {
66
+ "locale": "zh-Hant"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "libraries": {
73
+ "Microsoft.NET.Sdk.BlazorWebAssembly.Tool/9.0.313-servicing.26176.3": {
74
+ "type": "project",
75
+ "serviceable": false,
76
+ "sha512": ""
77
+ },
78
+ "Microsoft.DiaSymReader.Pdb2Pdb/1.1.0-beta2-19575-01": {
79
+ "type": "package",
80
+ "serviceable": true,
81
+ "sha512": "sha512-kY6eTNkeWLHvfOjg97Q7tgQKrPpX+Y3fR6fS4nyfpgFLHBxHriLBR4v3e9t71it91gIMEeKUqOqrFJ7Pj48eHA==",
82
+ "path": "microsoft.diasymreader.pdb2pdb/1.1.0-beta2-19575-01",
83
+ "hashPath": "microsoft.diasymreader.pdb2pdb.1.1.0-beta2-19575-01.nupkg.sha512"
84
+ },
85
+ "Microsoft.DotNet.XliffTasks/9.0.0-beta.26152.3": {
86
+ "type": "package",
87
+ "serviceable": true,
88
+ "sha512": "sha512-zlt+a1Rbf/xzDRukyQ92ojlMhjlTYJrPcMpAwfZhKUzDropu7trikcw3Cl7SiRhn9AuFGF9G+C4GtOuHVPPCZQ==",
89
+ "path": "microsoft.dotnet.xlifftasks/9.0.0-beta.26152.3",
90
+ "hashPath": "microsoft.dotnet.xlifftasks.9.0.0-beta.26152.3.nupkg.sha512"
91
+ },
92
+ "System.CommandLine/2.0.0-beta4.24324.3": {
93
+ "type": "package",
94
+ "serviceable": true,
95
+ "sha512": "sha512-UddDcdPmeAbRpkYHOMBHYS74UINTL5yXhzHTbruhVN7eR79J8RPGgq1nNXlz5TH4iMK/Fn6OlSFf4Z2UxCJpXw==",
96
+ "path": "system.commandline/2.0.0-beta4.24324.3",
97
+ "hashPath": "system.commandline.2.0.0-beta4.24324.3.nupkg.sha512"
98
+ }
99
+ }
100
+ }
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net9.0/Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll ADDED
Binary file (35.1 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/tools/net9.0/Microsoft.NET.Sdk.BlazorWebAssembly.Tool.runtimeconfig.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net9.0",
4
+ "framework": {
5
+ "name": "Microsoft.NETCore.App",
6
+ "version": "9.0.15"
7
+ },
8
+ "rollForwardOnNoCandidateFx": 2,
9
+ "configProperties": {
10
+ "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
11
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
12
+ }
13
+ }
14
+ }
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/Sdk/Sdk.props ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Sdk.props
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
13
+
14
+ <PropertyGroup>
15
+ <UsingMicrosoftNETSdkPublish>true</UsingMicrosoftNETSdkPublish>
16
+ </PropertyGroup>
17
+
18
+ <Import Project="$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.Publish.props"
19
+ Condition="Exists('$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.Publish.props')" />
20
+
21
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/Sdk/Sdk.targets ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Sdk.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
13
+
14
+ <Import Project="$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.Publish.targets"
15
+ Condition="Exists('$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.Publish.targets')" />
16
+
17
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/ComputeTargets/Microsoft.NET.Sdk.Publish.ComputeFiles.targets ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.ComputeFiles.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15
+
16
+ <!-- Only the compute target relevant to the project type will be invoked. -->
17
+ <PropertyGroup>
18
+ <_DotNetPublishComputeFiles>
19
+ _DetermineProjectType;
20
+ </_DotNetPublishComputeFiles>
21
+ </PropertyGroup>
22
+
23
+
24
+ <!--***************************************************************-->
25
+ <!-- Target _DetermineProjectType -->
26
+ <!--***************************************************************-->
27
+
28
+ <Target Name="_DetermineProjectType" >
29
+ <PropertyGroup>
30
+ <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
31
+ <_PublishProjectType Condition="'$(_PublishProjectType)' == '' and '$(_IsAspNetCoreProject)' == 'true' ">AspNetCore</_PublishProjectType>
32
+ <_PublishProjectType Condition="'$(_PublishProjectType)' == '' and '$(WebJobName)' != '' and '$(WebJobType)' != ''">WebJob</_PublishProjectType>
33
+ <_PublishProjectType Condition="'$(_PublishProjectType)' == '' ">Console</_PublishProjectType>
34
+ </PropertyGroup>
35
+ </Target>
36
+
37
+ <!--********************************************************************-->
38
+ <!-- This will ensure that all values have the required metadata -->
39
+ <!--********************************************************************-->
40
+ <ItemDefinitionGroup>
41
+ <DotNetPublishFiles>
42
+ <DestinationRelativePath></DestinationRelativePath>
43
+ <Exclude>False</Exclude>
44
+ </DotNetPublishFiles>
45
+ </ItemDefinitionGroup>
46
+
47
+
48
+ <!--***************************************************************-->
49
+ <!-- Target _IncludePrePublishGeneratedContent -->
50
+ <!--***************************************************************-->
51
+
52
+ <Target Name="_IncludePrePublishGeneratedContent" BeforeTargets="GetCopyToPublishDirectoryItems" Condition=" '$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true' ">
53
+ <ItemGroup>
54
+ <!-- First, clean up previously generated content that may have been removed. -->
55
+ <ContentWithTargetPath Remove="@(ContentWithTargetPath)" Condition="!Exists('%(Identity)')" />
56
+ <!-- Next, include any newly generated content. -->
57
+ <_WebProjectGeneratedContent Include="wwwroot\**" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(_ContentIncludedByDefault)" />
58
+ <ContentWithTargetPath Include="@(_WebProjectGeneratedContent)" TargetPath="%(Identity)" CopyToPublishDirectory="PreserveNewest" />
59
+ </ItemGroup>
60
+ </Target>
61
+
62
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/CopyTargets/Microsoft.NET.Sdk.Publish.CopyFiles.targets ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.CopyFiles.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15
+
16
+ <PropertyGroup>
17
+ <_DotNetPublishCopyFiles>
18
+ _RemoveExcludeFiles;
19
+ _DeletePublishIntermediateOutputPath;
20
+ _CopyFilesToPublishIntermediateOutputPath;
21
+ _CopyAspNetCoreFilesToIntermediateOutputPath;
22
+ _CopyWebJobFilesToIntermediateOutputPath;
23
+ _CopyConsoleFilesToIntermediateOutputPath;
24
+ </_DotNetPublishCopyFiles>
25
+ </PropertyGroup>
26
+
27
+
28
+ <!--********************************************************************-->
29
+ <!-- Target _RemoveExcludeFiles -->
30
+ <!--********************************************************************-->
31
+ <Target Name="_RemoveExcludeFiles" >
32
+
33
+ <ItemGroup>
34
+ <DotNetPublishFiles Remove="@(DotNetPublishFiles)" Condition="'%(Exclude)' == 'true'" />
35
+ </ItemGroup>
36
+
37
+ </Target>
38
+
39
+ <!--********************************************************************-->
40
+ <!-- Target _DeletePublishIntermediateOutputPath -->
41
+ <!--********************************************************************-->
42
+
43
+ <Target Name="_DeletePublishIntermediateOutputPath">
44
+
45
+ <!-- Remove all the files from the temp directory first-->
46
+ <ItemGroup>
47
+ <_PublishTempFiles Include="$(PublishIntermediateOutputPath)**\*.*" />
48
+ </ItemGroup>
49
+
50
+ <Delete Files="@(_PublishTempFiles)" ContinueOnError="true" />
51
+ <RemoveDir Directories="$(PublishIntermediateOutputPath)" ContinueOnError="true" Condition="Exists('$(PublishIntermediateOutputPath)')" />
52
+ <MakeDir Directories="$(PublishIntermediateOutputPath)" Condition="!Exists('$(PublishIntermediateOutputPath)')"/>
53
+
54
+ </Target>
55
+
56
+
57
+ <!--********************************************************************-->
58
+ <!-- Target _CopyAllFilesToPublishIntermediateOutputPath -->
59
+ <!--********************************************************************-->
60
+ <Target Name="_CopyFilesToPublishIntermediateOutputPath">
61
+
62
+ <Copy
63
+ SourceFiles="@(DotNetPublishFiles)"
64
+ DestinationFiles="@(DotNetPublishFiles ->'$(PublishIntermediateOutputPath)%(DestinationRelativePath)')" />
65
+
66
+ </Target>
67
+
68
+ <!--********************************************************************-->
69
+ <!-- Target _CopyAspNetCoreFilesToIntermediateOutputPath -->
70
+ <!--********************************************************************-->
71
+ <PropertyGroup>
72
+ <_CopyAspNetCoreFilesToIntermediateOutputPathDependsOn>
73
+ $(_CopyAspNetCoreFilesToIntermediateOutputPathDependsOn);
74
+ _PrepareForAspNetCoreProjectSystemPublish;
75
+ Publish;
76
+ </_CopyAspNetCoreFilesToIntermediateOutputPathDependsOn>
77
+ </PropertyGroup>
78
+
79
+ <Target Name="_CopyAspNetCoreFilesToIntermediateOutputPath"
80
+ Condition="'$(_PublishProjectType)' == 'AspNetCore'"
81
+ DependsOnTargets="$(_CopyAspNetCoreFilesToIntermediateOutputPathDependsOn)">
82
+ </Target>
83
+
84
+ <!--********************************************************************-->
85
+ <!-- Target _PrepareForAspNetCoreProjectSystemPublish -->
86
+ <!--********************************************************************-->
87
+ <Target Name="_PrepareForAspNetCoreProjectSystemPublish">
88
+ <PropertyGroup>
89
+ <PublishDir>$(PublishIntermediateOutputPath)</PublishDir>
90
+ <Configuration>$(PublishConfiguration)</Configuration>
91
+ </PropertyGroup>
92
+ </Target>
93
+
94
+ <!--********************************************************************-->
95
+ <!-- Target _CopyWebJobFilesToIntermediateOutputPath -->
96
+ <!--********************************************************************-->
97
+ <PropertyGroup>
98
+ <_CopyWebJobFilesToIntermediateOutputPathDependsOn>
99
+ $(_CopyWebJobFilesToIntermediateOutputPathDependsOn);
100
+ _PrepareForWebJobPublish;
101
+ Publish;
102
+ </_CopyWebJobFilesToIntermediateOutputPathDependsOn>
103
+ </PropertyGroup>
104
+
105
+ <Target Name="_CopyWebJobFilesToIntermediateOutputPath"
106
+ Condition="'$(_PublishProjectType)' == 'WebJob'"
107
+ DependsOnTargets="$(_CopyWebJobFilesToIntermediateOutputPathDependsOn)">
108
+ </Target>
109
+
110
+ <!--********************************************************************-->
111
+ <!-- Target _PrepareForWebJobPublish -->
112
+ <!--********************************************************************-->
113
+ <Target Name="_PrepareForWebJobPublish">
114
+ <PropertyGroup>
115
+ <PublishDir>$(PublishIntermediateOutputPath)\app_data\Jobs\$(WebJobType)\$(WebJobName)\</PublishDir>
116
+ <PublishDir Condition="'$(WebPublishMethod)' == 'OneDeploy'">$(PublishIntermediateOutputPath)\</PublishDir>
117
+ <Configuration>$(PublishConfiguration)</Configuration>
118
+ </PropertyGroup>
119
+ </Target>
120
+
121
+ <!--********************************************************************-->
122
+ <!-- Target _CopyConsoleFilesToIntermediateOutputPath -->
123
+ <!--********************************************************************-->
124
+ <PropertyGroup>
125
+ <_CopyConsoleFilesToIntermediateOutputPathDependsOn>
126
+ $(_CopyConsoleFilesToIntermediateOutputPathDependsOn);
127
+ _PrepareForConsolePublish;
128
+ Publish;
129
+ </_CopyConsoleFilesToIntermediateOutputPathDependsOn>
130
+ </PropertyGroup>
131
+
132
+ <Target Name="_CopyConsoleFilesToIntermediateOutputPath"
133
+ Condition="'$(_PublishProjectType)' == 'Console'"
134
+ DependsOnTargets="$(_CopyConsoleFilesToIntermediateOutputPathDependsOn)">
135
+ </Target>
136
+
137
+ <!--********************************************************************-->
138
+ <!-- Target _PrepareForConsolePublish -->
139
+ <!--********************************************************************-->
140
+ <Target Name="_PrepareForConsolePublish">
141
+ <PropertyGroup>
142
+ <PublishDir>$(PublishIntermediateOutputPath)</PublishDir>
143
+ <Configuration>$(PublishConfiguration)</Configuration>
144
+ </PropertyGroup>
145
+ </Target>
146
+
147
+ <!--********************************************************************-->
148
+ <!-- This will ensure that all values have the required metadata -->
149
+ <!--********************************************************************-->
150
+ <ItemDefinitionGroup>
151
+ <DotNetPublishFiles>
152
+ <DestinationRelativePath></DestinationRelativePath>
153
+ <Exclude>False</Exclude>
154
+ </DotNetPublishFiles>
155
+ </ItemDefinitionGroup>
156
+
157
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/CopyTargets/Microsoft.NET.Sdk.Publish.FilterFiles.targets ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.FilterFiles.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15
+
16
+ <!--********************************************************************-->
17
+ <!-- Target _FilterIISAssets -->
18
+ <!--********************************************************************-->
19
+ <Target Name="_FilterIISAssets"
20
+ Condition="'$(PublishIISAssets)' == 'false'"
21
+ AfterTargets="ComputeResolvedFilesToPublishList"
22
+ BeforeTargets="CopyFilesToPublishDirectory">
23
+
24
+ <ItemGroup>
25
+ <ResolvedFileToPublish Update="@(ResolvedFileToPublish)"
26
+ Condition="'%(Filename)%(Extension)' == 'aspnetcorev2_inprocess.dll'">
27
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
28
+ </ResolvedFileToPublish>
29
+
30
+ <ResolvedFileToPublish Update="@(ResolvedFileToPublish)"
31
+ Condition="'%(Filename)%(Extension)' == 'web.config'">
32
+ <CopyToPublishDirectory>Never</CopyToPublishDirectory>
33
+ </ResolvedFileToPublish>
34
+ </ItemGroup>
35
+
36
+ </Target>
37
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/DotNetCLIToolTargets/Microsoft.NET.Sdk.DotNetCLITool.targets ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.DotNetCLITool.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15
+
16
+
17
+ <Target Name="_InitProjectCapabilityProperties">
18
+ <PropertyGroup>
19
+ <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
20
+ </PropertyGroup>
21
+ </Target>
22
+
23
+ <!--
24
+ ***********************************************************************************************
25
+ TARGET : DotNet CLI Publish Command : Pre-Publish
26
+ ***********************************************************************************************
27
+ -->
28
+
29
+ <PropertyGroup>
30
+ <_DotNetCLIPrePublishDependsOn>
31
+ _InitProjectCapabilityProperties;
32
+ _AspNetCoreProjectSystemPrePublish;
33
+ </_DotNetCLIPrePublishDependsOn>
34
+ </PropertyGroup>
35
+
36
+ <Target Name ="_DotNetCLIPrePublish"
37
+ DependsOnTargets="$(_DotNetCLIPrePublishDependsOn)"
38
+ BeforeTargets="PrepareForPublish"
39
+ Condition="'$(DeployOnBuild)' != 'true'">
40
+ </Target>
41
+
42
+ <PropertyGroup>
43
+ <_AspNetCoreProjectSystemPrePublishDependsOn>
44
+ BeforePublish;
45
+ $(_DotNetPublishComputeFiles);
46
+ </_AspNetCoreProjectSystemPrePublishDependsOn>
47
+ </PropertyGroup>
48
+
49
+ <Target Name="_AspNetCoreProjectSystemPrePublish"
50
+ Condition="'$(_IsAspNetCoreProject)' == 'true'"
51
+ DependsOnTargets="$(_AspNetCoreProjectSystemPrePublishDependsOn)">
52
+ </Target>
53
+
54
+ <!--
55
+ ***********************************************************************************************
56
+ TARGET : DotNet CLI Publish Command: Post-Publish
57
+ ***********************************************************************************************
58
+ -->
59
+ <PropertyGroup>
60
+ <_DotNetCLIPostPublishDependsOn>
61
+ _InitProjectCapabilityProperties;
62
+ _AspNetCoreProjectSystemPostPublish;
63
+ _OtherNetProjectPostPublish;
64
+ AfterPublish;
65
+ </_DotNetCLIPostPublishDependsOn>
66
+ </PropertyGroup>
67
+
68
+ <Target Name ="_DotNetCLIPostPublish"
69
+ DependsOnTargets="$(_DotNetCLIPostPublishDependsOn)"
70
+ AfterTargets="Publish"
71
+ Condition="'$(DeployOnBuild)' != 'true'">
72
+ </Target>
73
+
74
+
75
+ <PropertyGroup>
76
+ <_AspNetCoreProjectSystemPostPublishDependsOn>
77
+ _InitPublishIntermediateOutputPath;
78
+ $(_DotNetPublishTransformFiles);
79
+ _PublishFiles;
80
+ </_AspNetCoreProjectSystemPostPublishDependsOn>
81
+ </PropertyGroup>
82
+
83
+ <Target Name="_AspNetCoreProjectSystemPostPublish"
84
+ Condition="'$(_IsAspNetCoreProject)' == 'true'"
85
+ DependsOnTargets="$(_AspNetCoreProjectSystemPostPublishDependsOn)">
86
+ </Target>
87
+
88
+ <PropertyGroup>
89
+ <!-- These targets are the same as _AspNetCoreProjectSystemPostPublishDependsOn minus the
90
+ ASP.NET-specific transforms stuff that's part of $(_DotNetPublishTransformFiles).
91
+ _InitPublishIntermediateOutputPath sets up the 'absolute' publish directory,
92
+ _PublishFiles is the extensibility point for Publish Profiles -->
93
+ <_OtherNetProjectPostPublishDependsOn>
94
+ _InitPublishIntermediateOutputPath;
95
+ _PublishFiles;
96
+ </_OtherNetProjectPostPublishDependsOn>
97
+ </PropertyGroup>
98
+
99
+ <!-- For safety, we're limiting this target to Worker SDK projects only. After 8.0.100 GA we should consider
100
+ * opening this up to all project types
101
+ * consolidation with the ASP.NET version of this target
102
+ * pushing the Publish SDK down to the base .NET SDK. -->
103
+ <Target Name="_OtherNetProjectPostPublish"
104
+ DependsOnTargets="$(_OtherNetProjectPostPublishDependsOn)"
105
+ Condition="'$(UsingMicrosoftNETSdkWorker)' == 'true'">
106
+ </Target>
107
+
108
+ <Target Name="_InitPublishIntermediateOutputPath">
109
+ <ConvertToAbsolutePath Paths="$(PublishDir)">
110
+ <Output TaskParameter="AbsolutePaths" PropertyName="PublishDirFullPath"/>
111
+ </ConvertToAbsolutePath>
112
+
113
+ <PropertyGroup>
114
+ <PublishIntermediateOutputPath>$(PublishDirFullPath)</PublishIntermediateOutputPath>
115
+ </PropertyGroup>
116
+ </Target>
117
+
118
+ <PropertyGroup>
119
+ <_PublishFilesDependsOn>
120
+ $(_DotNetPublishFiles);
121
+ </_PublishFilesDependsOn>
122
+ </PropertyGroup>
123
+
124
+ <Target Name="_PublishFiles"
125
+ DependsOnTargets="$(_PublishFilesDependsOn)"
126
+ Condition="'$(PublishProtocol)' != 'FileSystem' And '$(PublishProtocol)' != ''">
127
+ </Target>
128
+
129
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/Microsoft.NET.Sdk.Publish.props ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.props
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+
9
+ Copyright (c) .NET Foundation. All rights reserved.
10
+ ***********************************************************************************************
11
+ -->
12
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
13
+
14
+ <PropertyGroup>
15
+ <EnableSdkContainerSupport Condition="'$(EnableSdkContainerSupport)' == ''">true</EnableSdkContainerSupport>
16
+ </PropertyGroup>
17
+
18
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/Microsoft.NET.Sdk.Publish.targets ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard build process to deploy web application projects.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+
15
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16
+
17
+ <!-- Properties corresponding to the tasks and targets path-->
18
+
19
+ <PropertyGroup>
20
+ <!-- We want to force this property to be true, hence not adding a condition check -->
21
+ <SupportsDeployOnBuild>true</SupportsDeployOnBuild>
22
+ <_PublishTaskFramework Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0</_PublishTaskFramework>
23
+ <_PublishTaskFramework Condition=" '$(_PublishTaskFramework)' == ''">net472</_PublishTaskFramework>
24
+ <_PublishTasksDir Condition=" '$(_PublishTasksDir)'=='' ">$(MSBuildThisFileDirectory)..\tools\$(_PublishTaskFramework)\</_PublishTasksDir>
25
+ <_PublishTaskAssemblyFullPath Condition=" '$(_PublishTaskAssemblyFullPath)'=='' ">$(_PublishTasksDir)Microsoft.NET.Sdk.Publish.Tasks.dll</_PublishTaskAssemblyFullPath>
26
+ <_CopyTargetsDir Condition=" '$(_CopyTargetsDir)' == ''">$(MSBuildThisFileDirectory)CopyTargets\</_CopyTargetsDir>
27
+ <_TransformTargetsDir Condition=" '$(_TransformTargetsDir)' == ''">$(MSBuildThisFileDirectory)TransformTargets\</_TransformTargetsDir>
28
+ <_ComputeTargetsDir Condition=" '$(_ComputeTargetsDir)'=='' ">$(MSBuildThisFileDirectory)ComputeTargets\</_ComputeTargetsDir>
29
+ <_PublishTargetsDir Condition=" '$(_PublishTargetsDir)'=='' ">$(MSBuildThisFileDirectory)PublishTargets\</_PublishTargetsDir>
30
+ <_DotNetCLIToolTargetsDir Condition=" '$(_DotNetCLIToolTargetsDir)'=='' ">$(MSBuildThisFileDirectory)DotNetCLIToolTargets\</_DotNetCLIToolTargetsDir>
31
+ <_PublishProfilesDir Condition=" '$(_PublishProfilesDir)'=='' ">$(MSBuildThisFileDirectory)PublishProfiles\</_PublishProfilesDir>
32
+
33
+ <PublishIISAssets Condition=" '$(TargetFrameworkIdentifier)' == '.NETCoreApp'
34
+ And '$(_TargetFrameworkVersionWithoutV)' != ''
35
+ AND $([MSBuild]::VersionGreaterThanOrEquals($(_TargetFrameworkVersionWithoutV), '5.0'))
36
+ And '$(RuntimeIdentifier)' != ''
37
+ And !$(RuntimeIdentifier.StartsWith('win'))
38
+ And '$(PublishIISAssets)' == ''">false</PublishIISAssets>
39
+ <PublishIISAssets Condition="'$(PublishIISAssets)' == '' and '$(PublishAot)' == 'true'">false</PublishIISAssets>
40
+ </PropertyGroup>
41
+
42
+ <!-- Extension points for BeforePublish and AfterPublish-->
43
+ <Target Name="BeforePublish" />
44
+ <Target Name="AfterPublish" />
45
+
46
+ <!--
47
+ ***********************************************************************************************
48
+ Import the Default PublishProfile if the profile is not already imported by the .NET SDK
49
+ ***********************************************************************************************
50
+ -->
51
+ <PropertyGroup Condition="'$(PublishProfileImported)' != 'true'">
52
+ <PublishProfile Condition="'$(PublishProfile)' ==''">Default</PublishProfile>
53
+ <PublishProfileName Condition="'$(PublishProfileName)' == ''">$([System.IO.Path]::GetFileNameWithoutExtension($(PublishProfile)))</PublishProfileName>
54
+ </PropertyGroup>
55
+
56
+ <Import Project="$(_PublishProfilesDir)$(PublishProfileName).pubxml" Condition="Exists('$(_PublishProfilesDir)$(PublishProfileName).pubxml') And '$(PublishProfileImported)' != 'true'" />
57
+
58
+ <!-- Mark the PublishProfile as imported if the default profile shipped with WebSDK is imported -->
59
+ <PropertyGroup Condition="'$(PublishProfileImported)' != 'true'">
60
+ <PublishProfileImported Condition="Exists('$(_PublishProfilesDir)$(PublishProfileName).pubxml')">true</PublishProfileImported>
61
+ </PropertyGroup>
62
+
63
+
64
+ <!--
65
+ ***********************************************************************************************
66
+ Set the properties based on PublishProfile properties
67
+ ***********************************************************************************************
68
+ -->
69
+
70
+ <PropertyGroup>
71
+ <!-- Properties for identifying the Publish Protocol -->
72
+ <PublishProtocol Condition="'$(PublishProtocol)' == ''">$(WebPublishMethod)</PublishProtocol>
73
+ <!-- For backward compat -->
74
+ <PublishProtocol Condition="'$(PublishProtocol)' == 'Package'">MSDeployPackage</PublishProtocol>
75
+
76
+ <!-- For Docker Support -->
77
+ <PublishProtocol Condition="'$(DockerPublish)' == 'true'">Docker</PublishProtocol>
78
+
79
+ <!-- Properties setting the publish intermediate paths -->
80
+ <PublishConfiguration Condition ="'$(PublishConfiguration)' == ''">$(LastUsedBuildConfiguration)</PublishConfiguration>
81
+ <PublishConfiguration Condition="'$(PublishConfiguration)' == ''">$(Configuration)</PublishConfiguration>
82
+ <_PublishConfigurationPath Condition="'$(_PublishConfigurationPath)' == '' And '$(PublishConfiguration)' != ''">$(PublishConfiguration)\</_PublishConfigurationPath>
83
+
84
+ <_TargetFrameworkPath Condition="'$(_TargetFrameworkPath)' == '' And '$(TargetFramework)' != ''">$(TargetFramework)\</_TargetFrameworkPath>
85
+ <_RuntimeIdentifierPath Condition="'$(_RuntimeIdentifierPath)' == '' And '$(RuntimeIdentifier)' != '' ">$(RuntimeIdentifier)\</_RuntimeIdentifierPath>
86
+
87
+ <BaseIntermediateOutputPath Condition="'$([System.IO.Path]::IsPathRooted($(BaseIntermediateOutputPath)))' == 'False'">$(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)</BaseIntermediateOutputPath>
88
+ <BaseIntermediateOutputPath Condition="!HasTrailingSlash('$(BaseIntermediateOutputPath)')">$(BaseIntermediateOutputPath)\</BaseIntermediateOutputPath>
89
+
90
+ <PublishIntermediateTempPath Condition="'$(PublishIntermediateTempPath)' == ''">$([System.IO.Path]::GetFullPath($(BaseIntermediateOutputPath)$(_PublishConfigurationPath)$(_TargetFrameworkPath)$(_RuntimeIdentifierPath)PubTmp\))</PublishIntermediateTempPath>
91
+ <PublishIntermediateOutputPath Condition="'$(PublishIntermediateOutputPath)' == ''">$(PublishIntermediateTempPath)Out\</PublishIntermediateOutputPath>
92
+ <PublishIntermediateOutputPath Condition="'$(DockerPublish)' == 'true'">obj/Docker/publish/</PublishIntermediateOutputPath>
93
+
94
+ <EFSQLScriptsFolderName Condition="$(EFSQLScriptsFolderName) == ''">EFSQLScripts</EFSQLScriptsFolderName>
95
+
96
+ <!-- Use default TrimMode for projects targeting net8.0 and above and retain TrimMode=partial for back-compat. -->
97
+ <TrimMode Condition="'$(TrimMode)' == '' And
98
+ '$(PublishTrimmed)' == 'true' And
99
+ '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And
100
+ $([MSBuild]::VersionLessThan($(_TargetFrameworkVersionWithoutV), '8.0'))">partial</TrimMode>
101
+ </PropertyGroup>
102
+
103
+ <!--
104
+ ***********************************************************************************************
105
+ Import the Compute target
106
+ ***********************************************************************************************
107
+ -->
108
+
109
+ <Import Project="$(_ComputeTargetsDir)Microsoft.NET.Sdk.Publish.ComputeFiles.targets" Condition="Exists('$(_ComputeTargetsDir)Microsoft.NET.Sdk.Publish.ComputeFiles.targets')" />
110
+
111
+ <!--
112
+ ***********************************************************************************************
113
+ Import the Filter target
114
+ ***********************************************************************************************
115
+ -->
116
+
117
+ <Import Project="$(_CopyTargetsDir)Microsoft.NET.Sdk.Publish.FilterFiles.targets" Condition="Exists('$(_CopyTargetsDir)Microsoft.NET.Sdk.Publish.FilterFiles.targets')"/>
118
+
119
+
120
+ <!--
121
+ ***********************************************************************************************
122
+ Import the Copy target
123
+ ***********************************************************************************************
124
+ -->
125
+
126
+ <Import Project="$(_CopyTargetsDir)Microsoft.NET.Sdk.Publish.CopyFiles.targets" Condition="Exists('$(_CopyTargetsDir)Microsoft.NET.Sdk.Publish.CopyFiles.targets')"/>
127
+
128
+
129
+ <!--
130
+ ***********************************************************************************************
131
+ Import the transform target
132
+ ***********************************************************************************************
133
+ -->
134
+
135
+ <Import Project="$(_TransformTargetsDir)Microsoft.NET.Sdk.Publish.TransformFiles.targets" Condition="Exists('$(_TransformTargetsDir)Microsoft.NET.Sdk.Publish.TransformFiles.targets')"/>
136
+
137
+ <!--
138
+ ***********************************************************************************************
139
+ Import the Protocol target
140
+ ***********************************************************************************************
141
+ -->
142
+
143
+ <Import Project="$(_PublishTargetsDir)Microsoft.NET.Sdk.Publish.$(PublishProtocol).targets" Condition="Exists('$(_PublishTargetsDir)Microsoft.NET.Sdk.Publish.$(PublishProtocol).targets')"/>
144
+
145
+ <!--
146
+ ***********************************************************************************************
147
+ Import the DotNetCLITool target
148
+ ***********************************************************************************************
149
+ -->
150
+
151
+ <Import Project="$(_DotNetCLIToolTargetsDir)Microsoft.NET.Sdk.DotNetCLITool.targets" Condition="Exists('$(_DotNetCLIToolTargetsDir)Microsoft.NET.Sdk.DotNetCLITool.targets')"/>
152
+
153
+ <!--
154
+ ***********************************************************************************************
155
+ TARGET : DotNetPublish
156
+ ***********************************************************************************************
157
+ -->
158
+
159
+ <PropertyGroup>
160
+ <DotNetPublishDependsOn>
161
+ BeforePublish;
162
+ CorePublish;
163
+ AfterPublish;
164
+ </DotNetPublishDependsOn>
165
+ </PropertyGroup>
166
+
167
+ <Target Name="DotNetPublish"
168
+ DependsOnTargets="$(DotNetPublishDependsOn)"
169
+ AfterTargets="Build"
170
+ Condition=" '$(DeployOnBuild)' == 'true' " >
171
+ </Target>
172
+
173
+ <PropertyGroup>
174
+ <CorePublishDependsOn>
175
+ $(_DotNetPublishComputeFiles);
176
+ $(_DotNetPublishCopyFiles);
177
+ $(_DotNetPublishTransformFiles);
178
+ $(_DotNetPublishFiles);
179
+ </CorePublishDependsOn>
180
+ </PropertyGroup>
181
+
182
+ <!--
183
+ ***********************************************************************************************
184
+ NOTE: We have to add WebPublishProfileFile to GlobalPropertiesToRemove to prevent it to flow to
185
+ other web apps that are referenced by current web app. If we don't do that, their output paths
186
+ will be messed up with RuntimeIdentifier we pass in pubxml file.
187
+ ***********************************************************************************************
188
+ -->
189
+ <ItemDefinitionGroup>
190
+ <ProjectReference>
191
+ <GlobalPropertiesToRemove>%(GlobalPropertiesToRemove);WebPublishProfileFile</GlobalPropertiesToRemove>
192
+ </ProjectReference>
193
+ </ItemDefinitionGroup>
194
+
195
+ <Target Name="CorePublish"
196
+ DependsOnTargets="$(CorePublishDependsOn)"/>
197
+
198
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/Default.pubxml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ This file is used by the publish/package process of your Web project. You can customize the behavior of this process
4
+ by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
5
+ -->
6
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7
+ <PropertyGroup>
8
+ <WebPublishMethod>FileSystem</WebPublishMethod>
9
+ <PublishUrl Condition=" '$(PublishUrl)' == '' ">$(OutputPath)publish\</PublishUrl>
10
+ <DeleteExistingFiles>False</DeleteExistingFiles>
11
+ </PropertyGroup>
12
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultContainer.pubxml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup>
4
+ <WebPublishMethod>Container</WebPublishMethod>
5
+ </PropertyGroup>
6
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultMSDeploy.pubxml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup>
4
+ <WebPublishMethod>MSDeploy</WebPublishMethod>
5
+ <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
6
+ <LastUsedPlatform>Any CPU</LastUsedPlatform>
7
+ <SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
8
+ <MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
9
+ <EnableMSDeployBackup>True</EnableMSDeployBackup>
10
+ </PropertyGroup>
11
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultMSDeployPackage.pubxml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup>
4
+ <WebPublishMethod>Package</WebPublishMethod>
5
+ <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
6
+ <LastUsedPlatform>Any CPU</LastUsedPlatform>
7
+ <DesktopBuildPackageLocation>$(OutputPath)Publish\MSDeployPackage.zip</DesktopBuildPackageLocation>
8
+ <DeployIisAppPath>Default Web Site</DeployIisAppPath>
9
+ </PropertyGroup>
10
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultOneDeploy.pubxml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ https://go.microsoft.com/fwlink/?LinkID=208121.
4
+ -->
5
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6
+ <PropertyGroup>
7
+ <WebPublishMethod>OneDeploy</WebPublishMethod>
8
+ <PublishProvider>AzureWebSite</PublishProvider>
9
+ <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
10
+ <LastUsedPlatform>Any CPU</LastUsedPlatform>
11
+ <PublishUrl></PublishUrl>
12
+ </PropertyGroup>
13
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultWebJobOneDeploy.pubxml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ https://go.microsoft.com/fwlink/?LinkID=208121.
4
+ -->
5
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6
+ <PropertyGroup>
7
+ <WebPublishMethod>OneDeploy</WebPublishMethod>
8
+ <PublishProvider>AzureWebSite</PublishProvider>
9
+ <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
10
+ <LastUsedPlatform>Any CPU</LastUsedPlatform>
11
+ <PublishUrl></PublishUrl>
12
+ <WebJobType></WebJobType>
13
+ <WebJobName></WebJobName>
14
+ </PropertyGroup>
15
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishProfiles/DefaultZipDeploy.pubxml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ https://go.microsoft.com/fwlink/?LinkID=208121.
4
+ -->
5
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6
+ <PropertyGroup>
7
+ <WebPublishMethod>ZipDeploy</WebPublishMethod>
8
+ <PublishProvider>AzureWebSite</PublishProvider>
9
+ <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
10
+ <LastUsedPlatform>Any CPU</LastUsedPlatform>
11
+ <PublishUrl></PublishUrl>
12
+ </PropertyGroup>
13
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.Container.targets ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.Container.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+ ***********************************************************************************************
9
+ -->
10
+
11
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
+ <PropertyGroup>
13
+ <_DotNetPublishFiles>
14
+ PublishContainer;
15
+ </_DotNetPublishFiles>
16
+ </PropertyGroup>
17
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.Docker.targets ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.Docker.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard build process to deploy web application projects.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+
15
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16
+
17
+ <PropertyGroup>
18
+ <_DotNetPublishFiles>
19
+ DockerPublish;
20
+ </_DotNetPublishFiles>
21
+ </PropertyGroup>
22
+
23
+ <!--
24
+ ***********************************************************************************************
25
+ TARGET : DockerPublish
26
+ ***********************************************************************************************
27
+ -->
28
+ <PropertyGroup>
29
+ <DockerPublishDependsOn>
30
+ $(DockerPublishDependsOn);
31
+ _InitDockerComposeBuildSource;
32
+ DockerComposeBuild;
33
+ </DockerPublishDependsOn>
34
+ </PropertyGroup>
35
+
36
+ <Target Name="DockerPublish"
37
+ DependsOnTargets="$(DockerPublishDependsOn)" />
38
+
39
+ <!--
40
+ ***********************************************************************************************
41
+ TARGET : _InitDockerComposeBuildSource
42
+ ***********************************************************************************************
43
+ -->
44
+
45
+ <Target Name="_InitDockerComposeBuildSource">
46
+ <PropertyGroup>
47
+ <DockerComposeBuildSource>$(PublishIntermediateOutputPath)</DockerComposeBuildSource>
48
+ </PropertyGroup>
49
+
50
+ </Target>
51
+
52
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.FileSystem.targets ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.FileSystem.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard build process to deploy web application projects.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+
15
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16
+
17
+ <PropertyGroup>
18
+ <_DotNetPublishFiles>
19
+ FileSystemPublish;
20
+ </_DotNetPublishFiles>
21
+ </PropertyGroup>
22
+
23
+ <!--
24
+ ***********************************************************************************************
25
+ TARGET : FileSystemPublish
26
+ ***********************************************************************************************
27
+ -->
28
+ <PropertyGroup>
29
+ <FileSystemPublishDependsOn>
30
+ $(FileSystemPublishDependsOn);
31
+ _DeleteDestinationFilesIfSpecified;
32
+ _CopyEntityFrameworkScripts;
33
+ _GatherFilesFromPublishIntermediateOutputPath;
34
+ </FileSystemPublishDependsOn>
35
+ </PropertyGroup>
36
+
37
+ <Target Name="FileSystemPublish"
38
+ DependsOnTargets="$(FileSystemPublishDependsOn)"
39
+ Inputs="@(_PublishIntermediateOutputPathFiles)"
40
+ Outputs="@(_PublishIntermediateOutputPathFiles ->'$(PublishUrl)%(RecursiveDir)%(Filename)%(Extension)')">
41
+
42
+ <Copy
43
+ SourceFiles="@(_PublishIntermediateOutputPathFiles)"
44
+ DestinationFiles="@(_PublishIntermediateOutputPathFiles ->'$(PublishUrl)%(RecursiveDir)%(Filename)%(Extension)')" />
45
+
46
+ </Target>
47
+
48
+ <!--
49
+ ***********************************************************************************************
50
+ TARGET : _DeleteDestinationFilesIfSpecified
51
+ ***********************************************************************************************
52
+ -->
53
+
54
+ <Target Name="_DeleteDestinationFilesIfSpecified">
55
+ <PropertyGroup>
56
+ <PublishUrl Condition="'$(PublishUrl)' != '' And !HasTrailingSlash('$(PublishUrl)')">$(PublishUrl)\</PublishUrl>
57
+ </PropertyGroup>
58
+
59
+ <ItemGroup>
60
+ <_DestinationFiles Include="$(PublishUrl)**\*" />
61
+ </ItemGroup>
62
+
63
+ <Delete
64
+ Files="@(_DestinationFiles)"
65
+ Condition="'$(DeleteExistingFiles)' == 'true'" />
66
+
67
+ <RemoveDir
68
+ Directories="$(PublishUrl)"
69
+ Condition="'$(DeleteExistingFiles)' == 'true' And '$(PreserveDestinationFolder)' != 'true' And Exists('$(PublishUrl)')" />
70
+
71
+ <MakeDir
72
+ Directories="$(PublishUrl)"
73
+ Condition="'$(DeleteExistingFiles)' == 'true' And '$(PreserveDestinationFolder)' != 'true' And !Exists('$(PublishUrl)')"/>
74
+ </Target>
75
+
76
+ <!--
77
+ ***********************************************************************************************
78
+ TARGET : _GatherFilesFromPublishIntermediateOutputPath
79
+ ***********************************************************************************************
80
+ -->
81
+ <Target Name="_GatherFilesFromPublishIntermediateOutputPath">
82
+ <ItemGroup>
83
+ <_PublishIntermediateOutputPathFiles Include="$(PublishIntermediateOutputPath)**\*.*" />
84
+ </ItemGroup>
85
+ </Target>
86
+
87
+ <!--
88
+ ***********************************************************************************************
89
+ TARGET : _CopyEntityFrameworkScripts
90
+ ***********************************************************************************************
91
+ -->
92
+ <Target Name="_CopyEntityFrameworkScripts">
93
+
94
+ <Copy
95
+ Condition="@(_EFSQLScripts) != ''"
96
+ SourceFiles="@(_EFSQLScripts)"
97
+ DestinationFiles="@(_EFSQLScripts ->'$(PublishIntermediateOutputPath)$(EFSQLScriptsFolderName)\%(Filename)%(Extension)')"
98
+ ContinueOnError="true"/>
99
+ </Target>
100
+
101
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.Kudu.targets ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.Kudu.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard build process to deploy web application projects.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+
15
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16
+
17
+ <UsingTask TaskName="ValidateParameter" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
18
+ <UsingTask TaskName="KuduDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
19
+
20
+
21
+ <PropertyGroup>
22
+ <_DotNetPublishFiles>
23
+ KuduPublish;
24
+ </_DotNetPublishFiles>
25
+ </PropertyGroup>
26
+
27
+ <!--
28
+ ***********************************************************************************************
29
+ TARGET : KuduPublish
30
+ ***********************************************************************************************
31
+ -->
32
+ <PropertyGroup>
33
+ <KuduPublishDependsOn>
34
+ $(KuduPublishDependsOn);
35
+ </KuduPublishDependsOn>
36
+ </PropertyGroup>
37
+
38
+ <Target Name="KuduPublish" DependsOnTargets="$(KuduPublishDependsOn)">
39
+ <ValidateParameter
40
+ ParameterName="PublishSiteName"
41
+ ParameterValue="$(PublishSiteName)"/>
42
+
43
+ <ValidateParameter
44
+ ParameterName="UserName"
45
+ ParameterValue="$(UserName)"/>
46
+
47
+ <PropertyGroup>
48
+ <PublishUrl Condition=" '$(PublishUrl)'=='' ">https://{0}.scm.azurewebsites.net/api/{1}</PublishUrl>
49
+ <DeployIndividualFiles Condition=" '$(DeployIndividualFiles)' != 'true'">false</DeployIndividualFiles>
50
+ </PropertyGroup>
51
+
52
+ <KuduDeploy
53
+ PublishIntermediateOutputPath="$(PublishIntermediateOutputPath)"
54
+ PublishUrl = "$(PublishUrl)"
55
+ UserName = "$(UserName)"
56
+ Password ="$(Password)"
57
+ PublishSiteName ="$(PublishSiteName)">
58
+ </KuduDeploy>
59
+ </Target>
60
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.MSDeploy.targets ADDED
@@ -0,0 +1,375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.MSDeploy.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard build process to deploy web application projects.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+
15
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16
+
17
+ <!--
18
+ ***********************************************************************************************
19
+ Including the tasks
20
+ ***********************************************************************************************
21
+ -->
22
+ <UsingTask TaskName="MSDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
23
+ <UsingTask TaskName="VSMSDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
24
+ <UsingTask TaskName="NormalizeServiceUrl" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
25
+ <UsingTask TaskName="ValidateParameter" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
26
+ <UsingTask TaskName="CreateManifestFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
27
+ <UsingTask TaskName="ImportParameterFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
28
+ <UsingTask TaskName="CreateParameterFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
29
+ <UsingTask TaskName="GetPassword" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
30
+
31
+ <PropertyGroup>
32
+ <_DotNetPublishFiles>
33
+ MSDeployPublish;
34
+ </_DotNetPublishFiles>
35
+ </PropertyGroup>
36
+
37
+ <!--
38
+ ***********************************************************************************************
39
+ TARGET : MSDeployPublish
40
+ ***********************************************************************************************
41
+ -->
42
+ <PropertyGroup>
43
+ <MSDeployPublishDependsOn>
44
+ $(MSDeployPublishDependsOn);
45
+ _PrepareForMsDeployPublish;
46
+ _CreateManifestFiles;
47
+ _CreateParameterFiles;
48
+ </MSDeployPublishDependsOn>
49
+ </PropertyGroup>
50
+
51
+ <Target Name="MSDeployPublish" DependsOnTargets="$(MSDeployPublishDependsOn)">
52
+ <ValidateParameter
53
+ ParameterName="MsDeployServiceUrl"
54
+ ParameterValue="$(MsDeployServiceUrl)"/>
55
+
56
+ <ValidateParameter
57
+ ParameterName="DeployIisAppPath"
58
+ ParameterValue="$(DeployIisAppPath)"/>
59
+
60
+ <PropertyGroup>
61
+ <MSDeployPublishSourceType>manifest</MSDeployPublishSourceType>
62
+ <MSDeployPublishSourceRoot>$(_MsDeploySourceManifestPath)</MSDeployPublishSourceRoot>
63
+ <!--Destination is alway a manifest-->
64
+ <MSDeployPublishDestinationType>auto</MSDeployPublishDestinationType>
65
+ <MSDeployPublishDestinationRoot></MSDeployPublishDestinationRoot>
66
+ <PublishEnableLinks Condition="'$(PublishEnableLinks)' == ''"></PublishEnableLinks>
67
+ <PublishDisableLinks Condition="'$(PublishDisableLinks)' == ''">AppPoolExtension;ContentExtension;CertificateExtension</PublishDisableLinks>
68
+ <RetryAttemptsForDeployment Condition=" '$(RetryAttemptsForDeployment)' == '' ">10</RetryAttemptsForDeployment>
69
+ <RetryIntervalForDeployment Condition=" '$(RetryIntervalForDeployment)' == '' ">2000</RetryIntervalForDeployment>
70
+ <MSDeployUseChecksum Condition=" '$(MSDeployUseChecksum)' == '' ">false</MSDeployUseChecksum>
71
+ <AllowUntrustedCertificate Condition=" '$(AllowUntrustedCertificate)' == '' ">false</AllowUntrustedCertificate>
72
+ <EnableOptimisticParameterDefaultValue Condition="$(EnableOptimisticParameterDefaultValue) == ''">true</EnableOptimisticParameterDefaultValue>
73
+ <!-- Forcing File preview to be a boolean value -->
74
+ <FilePreview Condition="'$(FilePreview)' != 'true'">false</FilePreview>
75
+ <NormalizePublishSettings Condition="'$(NormalizePublishSettings)'==''">true</NormalizePublishSettings>
76
+ <AuthType Condition="'$(AuthType)'==''" >Basic</AuthType>
77
+ <!-- Supported value for $(MSDeployPublishMethod): WMSVC, RemoteAgent, InProc -->
78
+ <MSDeployPublishMethod Condition="'$(MSDeployPublishMethod)'==''" >WMSVC</MSDeployPublishMethod>
79
+ <!-- AppOffline support is enabled by default for WMSVC-->
80
+ <EnableMSDeployAppOffline Condition="'$(EnableMSDeployAppOffline)' == '' And '$(MSDeployPublishMethod)' == 'WMSVC' ">true</EnableMSDeployAppOffline>
81
+ <_UseWMSVC>false</_UseWMSVC>
82
+ <_UseWMSVC Condition="'$(MSDeployPublishMethod)'=='WMSVC'">true</_UseWMSVC>
83
+ <_UseRemoteAgent>false</_UseRemoteAgent>
84
+ <_UseRemoteAgent Condition="'$(MSDeployPublishMethod)'=='RemoteAgent'">true</_UseRemoteAgent>
85
+
86
+ <!-- UserAgent string sent to msdeploy -->
87
+ <_MSDeployUserAgentSource>CmdLine</_MSDeployUserAgentSource>
88
+ <_MSDeployUserAgent>VS$(_MSDeployUserAgentSource)</_MSDeployUserAgent>
89
+ <!-- MsDeploy Api is not supported for core yet -->
90
+ <UseMsDeployExe Condition="'$(UseMsDeployExe)' == '' And '$(MSBuildRuntimeType)' == 'Core'">true</UseMsDeployExe>
91
+ </PropertyGroup>
92
+
93
+ <CreateProperty Value="NTLM" Condition="!$(_UseWMSVC) And $(NormalizePublishSettings)">
94
+ <Output TaskParameter="Value" PropertyName="AuthType"/>
95
+ </CreateProperty>
96
+
97
+ <!-- Normalize service url such as convert a server name to format like https://<server>:8172/msdeploy.axd-->
98
+ <NormalizeServiceUrl
99
+ ServiceUrl="$(MsDeployServiceUrl)"
100
+ UseWMSVC="$(_UseWMSVC)"
101
+ UseRemoteAgent="$(_UseRemoteAgent)"
102
+ SiteName="$(DeployIisAppPath)"
103
+ Condition="$(NormalizePublishSettings) == 'true'" >
104
+ <Output TaskParameter="ResultUrl" PropertyName="MsDeployServiceUrl" />
105
+ </NormalizeServiceUrl>
106
+
107
+ <GetPassword
108
+ EncryptedPassword ="$(EncryptedPassword)"
109
+ Condition="'$(Password)' == '' And '$(IsGetPasswordEnabled)' == 'true'">
110
+ <Output TaskParameter="ClearPassword" PropertyName="Password"/>
111
+ </GetPassword>
112
+
113
+ <!-- Data Passed to MSDeploy -->
114
+ <ItemGroup>
115
+ <MsDeploySourceProviderSetting Remove="@(MsDeploySourceProviderSetting)" />
116
+ <MsDeploySourceProviderSetting Include="$(MSDeployPublishSourceType)">
117
+ <Path>$(MSDeployPublishSourceRoot)</Path>
118
+ </MsDeploySourceProviderSetting>
119
+
120
+ <MsDeployDestinationProviderSetting Remove="@(MsDeployDestinationProviderSetting)" />
121
+ <MsDeployDestinationProviderSetting Include="$(MSDeployPublishDestinationType)">
122
+ <Path>$(MSDeployPublishDestinationRoot)</Path>
123
+ <ComputerName>$(MsDeployServiceUrl)</ComputerName>
124
+ <UserName>$(UserName)</UserName>
125
+ <Password>$(Password)</Password>
126
+ <EncryptPassword>$(DeployEncryptKey)</EncryptPassword>
127
+ <IncludeAcls>False</IncludeAcls>
128
+ <AuthType>$(AuthType)</AuthType>
129
+ </MsDeployDestinationProviderSetting>
130
+ </ItemGroup>
131
+
132
+ <!-- Additional destination provider settings -->
133
+ <ItemGroup>
134
+ <MsDeployAdditionalDestinationProviderSettings Include="$(MSDeployEncryptProviderName)">
135
+ <Name>WebConfigEncryptProvider</Name>
136
+ <Value>$(MSDeployWebConfigEncryptProvider)</Value>
137
+ </MsDeployAdditionalDestinationProviderSettings>
138
+ </ItemGroup>
139
+
140
+ <VSMSDeploy
141
+ Condition="'$(UseMsdeployExe)' != 'true'"
142
+ Source="@(MsDeploySourceProviderSetting)"
143
+ Destination="@(MsDeployDestinationProviderSetting)"
144
+ DisableLink="$(PublishDisableLinks)"
145
+ EnableLink="$(PublishEnableLinks)"
146
+ AllowUntrustedCertificate="$(AllowUntrustedCertificate)"
147
+ SkipExtraFilesOnServer="$(SkipExtraFilesOnServer)"
148
+ SkipRuleItems="@(MsDeploySkipRules)"
149
+ ImportSetParametersItems="$(_MSDeployParametersFilePath)"
150
+ WhatIf="$(FilePreview)"
151
+ RetryAttempts="$(RetryAttemptsForDeployment)"
152
+ RetryInterval="$(RetryIntervalForDeployment)"
153
+ EnableMSDeployBackup="$(EnableMSDeployBackup)"
154
+ EnableMSDeployAppOffline="$(EnableMSDeployAppOffline)"
155
+ AdditionalDestinationProviderOptions="@(MsDeployAdditionalDestinationProviderSettings)"
156
+ UseChecksum="$(MSDeployUseChecksum)"
157
+ UserAgent="$(_MSDeployUserAgent)">
158
+ <Output TaskParameter="Result" PropertyName="_PublishResult" />
159
+ </VSMSDeploy>
160
+
161
+ <ItemGroup>
162
+ <_EnableRuleListItems Condition="'$(SkipExtraFilesOnServer)' == 'true'" Include="DoNotDeleteRule" />
163
+ <_EnableRuleListItems Condition="'$(EnableMSDeployAppOffline)' == 'true'" Include="AppOffline" />
164
+ <_EnableRuleListItems Condition="'$(MSDeployEnableWebConfigEncryptRule)' == 'true'" Include="EncryptWebConfig" />
165
+ </ItemGroup>
166
+
167
+ <PropertyGroup>
168
+ <_EnableRuleList>@(_EnableRuleListItems)</_EnableRuleList>
169
+ </PropertyGroup>
170
+
171
+ <MSdeploy
172
+ Condition="'$(UseMsdeployExe)' == 'true'"
173
+ Verb="sync"
174
+ WhatIf="$(FilePreview)"
175
+ Source="@(MsDeploySourceProviderSetting)"
176
+ Destination="@(MsDeployDestinationProviderSetting)"
177
+ DisableLink="$(PublishDisableLinks)"
178
+ EnableLink="$(PublishEnableLinks)"
179
+ EnableRule="$(_EnableRuleList)"
180
+ AllowUntrusted="$(AllowUntrustedCertificate)"
181
+ SkipRuleItems="@(MsDeploySkipRules)"
182
+ ImportSetParametersItems="$(_MSDeployParametersFilePath)"
183
+ RetryAttempts="$(RetryAttemptsForDeployment)"
184
+ RetryInterval="$(RetryIntervalForDeployment)"
185
+ AdditionalDestinationProviderOptions="@(MsDeployAdditionalDestinationProviderSettings)"
186
+ UseChecksum="$(MSDeployUseChecksum)"
187
+ UserAgent="$(_MSDeployUserAgent)"
188
+ ExePath="$(MSDeployPath)" />
189
+ </Target>
190
+
191
+ <!--
192
+ ***********************************************************************************************
193
+ TARGET : _PrepareForMsDeployPublish
194
+ ***********************************************************************************************
195
+ -->
196
+
197
+ <Target Name="_PrepareForMsDeployPublish">
198
+
199
+ <PropertyGroup>
200
+ <_MsDeploySourceManifestPath Condition="'$(_MsDeploySourceManifestPath)' == ''">$(PublishIntermediateTempPath)$(MSBuildProjectName).SourceManifest.xml</_MsDeploySourceManifestPath>
201
+ <_MSDeployParametersFilePath Condition="'$(_MSDeployParametersFilePath)' == ''">$(PublishIntermediateTempPath)$(MSBuildProjectName).Parameters.xml</_MSDeployParametersFilePath>
202
+ </PropertyGroup>
203
+
204
+ <ItemGroup>
205
+ <_PublishConfigFiles Include="$(_MsDeploySourceManifestPath);$(_MSDeployParametersFilePath)" />
206
+ </ItemGroup>
207
+
208
+ <MakeDir Directories="$(PublishIntermediateTempPath)" Condition="!Exists('$(PublishIntermediateTempPath)')" ContinueOnError="true"/>
209
+ <Delete Files="@(_PublishConfigFiles)" ContinueOnError="true" />
210
+ <Touch AlwaysCreate="true" Files="@(_PublishConfigFiles)" ContinueOnError="true" />
211
+ </Target>
212
+
213
+ <!--
214
+ ***********************************************************************************************
215
+ TARGET : _CreateManifestFiles
216
+ ***********************************************************************************************
217
+ -->
218
+
219
+ <Target Name="_CreateManifestFiles">
220
+
221
+ <ItemGroup>
222
+ <MsDeploySourceManifest Remove="@(MsDeploySourceManifest)" />
223
+
224
+ <MsDeploySourceManifest Include="IisApp" >
225
+ <Path>$(PublishIntermediateOutputPath)</Path>
226
+ </MsDeploySourceManifest>
227
+ </ItemGroup>
228
+
229
+ <ItemGroup Condition="'@(_EFSQLScripts)' != ''">
230
+ <MsDeploySourceManifest Include="dbfullsql" >
231
+ <Path>%(_EFSQLScripts.Identity)</Path>
232
+ </MsDeploySourceManifest>
233
+ </ItemGroup>
234
+
235
+ <CreateManifestFile
236
+ Manifests="@(MsDeploySourceManifest)"
237
+ ManifestFile="$(_MsDeploySourceManifestPath)" />
238
+ </Target>
239
+
240
+ <!--
241
+ ***********************************************************************************************
242
+ TARGET : _CreateParameterFiles
243
+ ***********************************************************************************************
244
+ -->
245
+
246
+ <Target Name="_CreateParameterFiles">
247
+
248
+ <ItemGroup>
249
+ <MsDeployDeclareParameters Remove="@(MsDeployDeclareParameters)" />
250
+
251
+ <MsDeployDeclareParameters Include="IIS Web Application Name" >
252
+ <Kind>ProviderPath</Kind>
253
+ <Scope>IisApp</Scope>
254
+ <Match>$(PublishIntermediateOutputPath)</Match>
255
+ <Description></Description>
256
+ <DefaultValue>$(DeployIisAppPath)</DefaultValue>
257
+ <Value>$(DeployIisAppPath)</Value>
258
+ <Tags>IisApp</Tags>
259
+ <Priority></Priority>
260
+ <ExcludeFromSetParameter>false</ExcludeFromSetParameter>
261
+ </MsDeployDeclareParameters>
262
+ </ItemGroup>
263
+
264
+ <ItemGroup Condition="'@(_EFSQLScripts)' != ''">
265
+ <MsDeployDeclareParameters Include="%(_EFSQLScripts.DBContext)">
266
+ <Kind>ProviderPath</Kind>
267
+ <Scope>dbfullsql</Scope>
268
+ <Match>%(_EFSQLScripts.Identity)</Match>
269
+ <Description></Description>
270
+ <DefaultValue>%(_EFSQLScripts.ConnectionString)</DefaultValue>
271
+ <Value>%(_EFSQLScripts.ConnectionString)</Value>
272
+ <Tags>dbfullsql</Tags>
273
+ <Priority></Priority>
274
+ <ExcludeFromSetParameter>false</ExcludeFromSetParameter>
275
+ </MsDeployDeclareParameters>
276
+ </ItemGroup>
277
+
278
+ <ItemGroup>
279
+ <ParametersXMLFiles Include="$(MSBuildProjectDirectory)\Parameters.xml"
280
+ Condition="Exists('$(MSBuildProjectDirectory)\Parameters.xml')"/>
281
+ </ItemGroup>
282
+
283
+ <ImportParameterFile Condition="'@(ParametersXMLFiles)' != ''"
284
+ Files="@(ParametersXMLFiles)">
285
+ <Output TaskParameter="Result"
286
+ ItemName="_ImportedMSDeployDeclareParameters" />
287
+ </ImportParameterFile>
288
+
289
+ <ItemGroup>
290
+ <MsDeployDeclareParameters Include="@(_ImportedMSDeployDeclareParameters)"
291
+ Condition="'%(_ImportedMSDeployDeclareParameters.Identity)' !=''">
292
+ <Value>%(_ImportedMSDeployDeclareParameters.DefaultValue)</Value>
293
+ <Priority></Priority>
294
+ </MsDeployDeclareParameters>
295
+ </ItemGroup>
296
+
297
+ <CreateParameterFile
298
+ Parameters="@(MsDeployDeclareParameters)"
299
+ DeclareSetParameterFile="$(_MSDeployParametersFilePath)"
300
+ IncludeDefaultValue="True"
301
+ GenerateFileEvenIfEmpty="True" />
302
+
303
+ </Target>
304
+
305
+ <!--
306
+ ***********************************************************************************************
307
+ Item Definitions
308
+ ***********************************************************************************************
309
+ -->
310
+
311
+ <ItemDefinitionGroup>
312
+ <MsDeploySourceProviderSetting>
313
+ <Path></Path>
314
+ <ComputerName></ComputerName>
315
+ <!--<Wmsvc></Wmsvc> Not supported yet-->
316
+ <UserName></UserName>
317
+ <Password></Password>
318
+ <EncryptPassword></EncryptPassword>
319
+ <IncludeAcls></IncludeAcls>
320
+ <authType></authType>
321
+ <prefetchPayload></prefetchPayload>
322
+ </MsDeploySourceProviderSetting>
323
+ </ItemDefinitionGroup>
324
+
325
+ <ItemDefinitionGroup>
326
+ <MsDeployDestinationProviderSetting>
327
+ <Path></Path>
328
+ <ComputerName></ComputerName>
329
+ <!--<Wmsvc></Wmsvc> Not supported yet-->
330
+ <UserName></UserName>
331
+ <Password></Password>
332
+ <EncryptPassword></EncryptPassword>
333
+ <IncludeAcls></IncludeAcls>
334
+ <authType></authType>
335
+ <prefetchPayload></prefetchPayload>
336
+ </MsDeployDestinationProviderSetting>
337
+ </ItemDefinitionGroup>
338
+
339
+ <!--
340
+ DeploymentSkipRule(string skipAction, string objectName, string absolutePath, string XPath);-->
341
+ <ItemDefinitionGroup>
342
+ <MsDeploySkipRules>
343
+ <SkipAction></SkipAction>
344
+ <ObjectName></ObjectName>
345
+ <AbsolutePath></AbsolutePath>
346
+ <XPath></XPath>
347
+ <KeyAttribute></KeyAttribute>
348
+ <!--Source, Destination, Both(the default)-->
349
+ <Apply></Apply>
350
+ </MsDeploySkipRules>
351
+ </ItemDefinitionGroup>
352
+
353
+ <!-- AdditionalProviderSettings denote the additionProviderSetting need to be set in the manifest files-->
354
+ <ItemDefinitionGroup>
355
+ <MsDeploySourceManifest>
356
+ <Path>Unknown</Path>
357
+ <AdditionalProviderSettings></AdditionalProviderSettings>
358
+ </MsDeploySourceManifest>
359
+ </ItemDefinitionGroup>
360
+
361
+ <!--
362
+ DeploymentParameter(string name, string type, string scope, string match, string description, string defaultValue); -->
363
+ <ItemDefinitionGroup>
364
+ <MsDeployDeclareParameters>
365
+ <Kind></Kind>
366
+ <Scope></Scope>
367
+ <Match></Match>
368
+ <Description></Description>
369
+ <DefaultValue></DefaultValue>
370
+ <Tags></Tags>
371
+ <ExcludeFromSetParameter></ExcludeFromSetParameter>
372
+ </MsDeployDeclareParameters>
373
+ </ItemDefinitionGroup>
374
+
375
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.MSDeployPackage.targets ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.MSDeployPackage.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard build process to deploy web application projects.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+
15
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16
+
17
+ <!--
18
+ ***********************************************************************************************
19
+ Including the tasks
20
+ ***********************************************************************************************
21
+ -->
22
+ <UsingTask TaskName="MSDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
23
+ <UsingTask TaskName="VSMSDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
24
+ <UsingTask TaskName="NormalizeServiceUrl" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
25
+ <UsingTask TaskName="ValidateParameter" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
26
+ <UsingTask TaskName="CreateManifestFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
27
+ <UsingTask TaskName="ImportParameterFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
28
+ <UsingTask TaskName="CreateParameterFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
29
+ <UsingTask TaskName="CreateMSDeployScript" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
30
+
31
+ <PropertyGroup>
32
+ <_DotNetPublishFiles>
33
+ MSDeployPackagePublish;
34
+ </_DotNetPublishFiles>
35
+ </PropertyGroup>
36
+
37
+ <!--
38
+ ***********************************************************************************************
39
+ TARGET : MSDeployPackagePublish
40
+ ***********************************************************************************************
41
+ -->
42
+ <PropertyGroup>
43
+ <MSDeployPackagePublishDependsOn>
44
+ $(MSDeployPackagePublishDependsOn);
45
+ _InitMSDeployPackageProperties;
46
+ _PrepareForMsDeployPublish;
47
+ _CreateManifestFiles;
48
+ _CreateParameterFiles;
49
+ _CreateMSDeployScript;
50
+ </MSDeployPackagePublishDependsOn>
51
+ </PropertyGroup>
52
+
53
+ <Target Name="MSDeployPackagePublish" DependsOnTargets="$(MSDeployPackagePublishDependsOn)">
54
+
55
+ <PropertyGroup>
56
+ <MSDeployPublishSourceType>manifest</MSDeployPublishSourceType>
57
+ <MSDeployPublishSourceRoot>$(_MsDeploySourceManifestPath)</MSDeployPublishSourceRoot>
58
+ <!--Destination is alway a manifest-->
59
+ <MSDeployPublishDestinationType>Package</MSDeployPublishDestinationType>
60
+ <MSDeployPublishDestinationRoot>$(PackageLocation)</MSDeployPublishDestinationRoot>
61
+ <RetryAttemptsForDeployment Condition=" '$(RetryAttemptsForDeployment)' == '' ">2</RetryAttemptsForDeployment>
62
+ <PublishEnableLinks Condition="'$(PublishEnableLinks)' == ''"></PublishEnableLinks>
63
+ <PublishDisableLinks Condition="'$(PublishDisableLinks)' == ''">AppPoolExtension;ContentExtension;CertificateExtension</PublishDisableLinks>
64
+ <!-- UserAgent string sent to msdeploy -->
65
+ <_MSDeployUserAgentSource>CmdLine</_MSDeployUserAgentSource>
66
+ <_MSDeployUserAgent>VS$(_MSDeployUserAgentSource)</_MSDeployUserAgent>
67
+ <!-- MsDeploy Api is not supported for core yet -->
68
+ <UseMsDeployExe Condition="'$(UseMsDeployExe)' == '' And '$(MSBuildRuntimeType)' == 'Core'">true</UseMsDeployExe>
69
+ </PropertyGroup>
70
+
71
+ <!-- Data Passed to MSDeploy -->
72
+ <ItemGroup>
73
+ <MsDeploySourceProviderSetting Remove="@(MsDeploySourceProviderSetting)" />
74
+ <MsDeploySourceProviderSetting Include="$(MSDeployPublishSourceType)">
75
+ <Path>$(MSDeployPublishSourceRoot)</Path>
76
+ </MsDeploySourceProviderSetting>
77
+
78
+ <MsDeployDestinationProviderSetting Remove="@(MsDeployDestinationProviderSetting)" />
79
+ <MsDeployDestinationProviderSetting Include="$(MSDeployPublishDestinationType)">
80
+ <Path>$(MSDeployPublishDestinationRoot)</Path>
81
+ </MsDeployDestinationProviderSetting>
82
+ </ItemGroup>
83
+
84
+ <VSMSDeploy Condition="'$(UseMsdeployExe)' != 'true'"
85
+ MSDeployVersionsToTry="$(_MSDeployVersionsToTry)"
86
+ Source="@(MsDeploySourceProviderSetting)"
87
+ Destination="@(MsDeployDestinationProviderSetting)"
88
+ DeploymentTraceLevel="$(PackageTraceLevel)"
89
+ DisableLink="$(PublishDisableLinks)"
90
+ EnableLink="$(PublishEnableLinks)"
91
+ ImportDeclareParametersItems="$(_MSDeployParametersFilePath)"
92
+ ReplaceRuleItems="@(MsDeployReplaceRules)"
93
+ RetryAttempts="$(RetryAttemptsForDeployment)">
94
+ <Output TaskParameter="Result" PropertyName="PackageResult" />
95
+ </VSMSDeploy>
96
+
97
+ <MSdeploy
98
+ Condition="'$(UseMsdeployExe)' == 'true'"
99
+ Verb="sync"
100
+ Source="@(MsDeploySourceProviderSetting)"
101
+ Destination="@(MsDeployDestinationProviderSetting)"
102
+ DisableLink="$(PublishDisableLinks)"
103
+ EnableLink="$(PublishEnableLinks)"
104
+ ImportDeclareParametersItems="$(_MSDeployParametersFilePath)"
105
+ ReplaceRuleItems="@(MsDeployReplaceRules)"
106
+ RetryAttempts="$(RetryAttemptsForDeployment)"
107
+ ExePath="$(MSDeployPath)"
108
+ />
109
+ </Target>
110
+
111
+ <!--
112
+ ***********************************************************************************************
113
+ TARGET : _InitMSDeployPackageProperties
114
+ ***********************************************************************************************
115
+ -->
116
+
117
+ <Target Name="_InitMSDeployPackageProperties">
118
+
119
+ <PropertyGroup>
120
+ <DefaultPackageFileName Condition="'$(DefaultPackageFileName)'==''">$(MSBuildProjectName).zip</DefaultPackageFileName>
121
+ <PackageLocation Condition="'$(PackageLocation)' == ''">$(DesktopBuildPackageLocation)</PackageLocation>
122
+ <PackageLocation Condition="'$(PackageLocation)' == ''">$(OutputPath)</PackageLocation>
123
+ <PackageLocation Condition="'$([System.IO.Path]::GetExtension($(PackageLocation)))' == '' And !HasTrailingSlash('$(PackageLocation)')">$(PackageLocation)\</PackageLocation>
124
+ <PackageLocation Condition="'$([System.IO.Path]::GetExtension($(PackageLocation)))' == '' ">$(PackageLocation)$(DefaultPackageFileName)</PackageLocation>
125
+ <DeployIisAppPath Condition="'$(DeployIisAppPath)' ==''">Default Web Site</DeployIisAppPath>
126
+ <EnableOptimisticParameterDefaultValue Condition="'$(EnableOptimisticParameterDefaultValue)'==''">True</EnableOptimisticParameterDefaultValue>
127
+ </PropertyGroup>
128
+
129
+ <ConvertToAbsolutePath Paths="$(PackageLocation)">
130
+ <Output TaskParameter="AbsolutePaths" PropertyName="PackageLocation"/>
131
+ </ConvertToAbsolutePath>
132
+
133
+ </Target>
134
+
135
+ <!--
136
+ ***********************************************************************************************
137
+ TARGET : _PrepareForMsDeployPackagePublish
138
+ ***********************************************************************************************
139
+ -->
140
+
141
+ <Target Name="_PrepareForMsDeployPublish">
142
+
143
+ <PropertyGroup>
144
+ <_destinationFolder Condition="'$(_destinationFolder)' == ''">$([System.IO.Path]::GetDirectoryName($(PackageLocation)))\</_destinationFolder>
145
+ <_MsDeploySourceManifestPath Condition="'$(_MsDeploySourceManifestPath)' == ''">$(_destinationFolder)$(MSBuildProjectName).SourceManifest.xml</_MsDeploySourceManifestPath>
146
+ <_MSDeployParametersFilePath Condition="'$(_MSDeployParametersFilePath)' == ''">$(_destinationFolder)$(MSBuildProjectName).Parameters.xml</_MSDeployParametersFilePath>
147
+ <_MSDeploySetParametersFilePath Condition="'$(_MSDeploySetParametersFilePath)' == ''">$(_destinationFolder)$(MSBuildProjectName).SetParameters.xml</_MSDeploySetParametersFilePath>
148
+ <_MSDeployScriptFilePath Condition="'$(_MSDeployScriptFilePath)' == ''">$(_destinationFolder)$(MSBuildProjectName).deploy.cmd</_MSDeployScriptFilePath>
149
+ <_MSDeployReadMeFilePath Condition="'$(_MSDeployReadMeFilePath)' == ''">$(_destinationFolder)$(MSBuildProjectName).deploy-readme.txt</_MSDeployReadMeFilePath>
150
+ </PropertyGroup>
151
+
152
+ <ItemGroup>
153
+ <_PublishConfigFiles Include="$(_MsDeploySourceManifestPath);$(_MSDeployParametersFilePath);$(_MSDeploySetParametersFilePath);$(_MSDeployScriptFilePath);$(_MSDeployReadMeFilePath)" />
154
+ </ItemGroup>
155
+
156
+ <MakeDir Directories="$(_destinationFolder)" Condition="!Exists('$(_destinationFolder)')" ContinueOnError="true"/>
157
+ <Delete Files="@(_PublishConfigFiles)" ContinueOnError="true" />
158
+ <Touch AlwaysCreate="true" Files="@(_PublishConfigFiles)" ContinueOnError="true" />
159
+ </Target>
160
+
161
+ <!--
162
+ ***********************************************************************************************
163
+ TARGET : _CreateManifestFiles
164
+ ***********************************************************************************************
165
+ -->
166
+
167
+ <Target Name="_CreateManifestFiles">
168
+
169
+ <ItemGroup>
170
+ <MsDeploySourceManifest Remove="@(MsDeploySourceManifest)" />
171
+
172
+ <MsDeploySourceManifest Include="IisApp" >
173
+ <Path>$(PublishIntermediateOutputPath)</Path>
174
+ </MsDeploySourceManifest>
175
+ </ItemGroup>
176
+
177
+ <ItemGroup Condition="'@(_EFSQLScripts)' != ''">
178
+ <MsDeploySourceManifest Include="dbfullsql" >
179
+ <Path>%(_EFSQLScripts.Identity)</Path>
180
+ </MsDeploySourceManifest>
181
+ </ItemGroup>
182
+
183
+ <CreateManifestFile
184
+ Manifests="@(MsDeploySourceManifest)"
185
+ ManifestFile="$(_MsDeploySourceManifestPath)" />
186
+ </Target>
187
+
188
+ <!--
189
+ ***********************************************************************************************
190
+ TARGET : _CreateMSDeployScript
191
+ ***********************************************************************************************
192
+ -->
193
+
194
+ <Target Name="_CreateMSDeployScript">
195
+
196
+ <CreateMsDeployScript
197
+ Condition="'$(IsCreateMSDeployScriptDisabled)' != 'true'"
198
+ ProjectName="$(MSBuildProjectName)"
199
+ ScriptFullPath="$(_MSDeployScriptFilePath)"
200
+ ReadMeFullPath="$(_MSDeployReadMeFilePath)"/>
201
+
202
+ </Target>
203
+
204
+ <!--
205
+ ***********************************************************************************************
206
+ TARGET : _CreateParameterFiles
207
+ ***********************************************************************************************
208
+ -->
209
+
210
+ <Target Name="_CreateParameterFiles">
211
+
212
+ <ItemGroup>
213
+ <MsDeployDeclareParameters Remove="@(MsDeployDeclareParameters)" />
214
+
215
+ <MsDeployDeclareParameters Include="IIS Web Application Name" >
216
+ <Kind>ProviderPath</Kind>
217
+ <Scope>IisApp</Scope>
218
+ <Match>$(PublishIntermediateOutputPath)</Match>
219
+ <Description></Description>
220
+ <DefaultValue>$(DeployIisAppPath)</DefaultValue>
221
+ <Value>$(DeployIisAppPath)</Value>
222
+ <Tags>IisApp</Tags>
223
+ <Priority></Priority>
224
+ <ExcludeFromSetParameter>false</ExcludeFromSetParameter>
225
+ </MsDeployDeclareParameters>
226
+ </ItemGroup>
227
+
228
+ <ItemGroup Condition="'@(_EFSQLScripts)' != ''">
229
+ <MsDeployDeclareParameters Include="%(_EFSQLScripts.DBContext)">
230
+ <Kind>ProviderPath</Kind>
231
+ <Scope>dbfullsql</Scope>
232
+ <Match>%(_EFSQLScripts.Identity)</Match>
233
+ <Description></Description>
234
+ <DefaultValue>%(_EFSQLScripts.ConnectionString)</DefaultValue>
235
+ <Value>%(_EFSQLScripts.ConnectionString)</Value>
236
+ <Tags>dbfullsql</Tags>
237
+ <Priority></Priority>
238
+ <ExcludeFromSetParameter>false</ExcludeFromSetParameter>
239
+ </MsDeployDeclareParameters>
240
+ </ItemGroup>
241
+
242
+ <ItemGroup>
243
+ <ParametersXMLFiles Include="$(MSBuildProjectDirectory)\Parameters.xml"
244
+ Condition="Exists('$(MSBuildProjectDirectory)\Parameters.xml')"/>
245
+ </ItemGroup>
246
+
247
+ <ImportParameterFile Condition="'@(ParametersXMLFiles)' != ''"
248
+ Files="@(ParametersXMLFiles)">
249
+ <Output TaskParameter="Result"
250
+ ItemName="_ImportedMSDeployDeclareParameters" />
251
+ </ImportParameterFile>
252
+
253
+ <ItemGroup>
254
+ <MsDeployDeclareParameters Include="@(_ImportedMSDeployDeclareParameters)"
255
+ Condition="'%(_ImportedMSDeployDeclareParameters.Identity)' !=''">
256
+ <Value>%(_ImportedMSDeployDeclareParameters.DefaultValue)</Value>
257
+ <Priority></Priority>
258
+ </MsDeployDeclareParameters>
259
+ </ItemGroup>
260
+
261
+ <CreateParameterFile
262
+ Parameters="@(MsDeployDeclareParameters)"
263
+ DeclareSetParameterFile="$(_MSDeployParametersFilePath)"
264
+ IncludeDefaultValue="True"
265
+ OptimisticParameterDefaultValue="$(EnableOptimisticParameterDefaultValue)"
266
+ SetParameterFile="$(_MSDeploySetParametersFilePath)"
267
+ GenerateFileEvenIfEmpty="True" />
268
+ </Target>
269
+
270
+ <!--
271
+ ***********************************************************************************************
272
+ Item Definitions
273
+ ***********************************************************************************************
274
+ -->
275
+
276
+ <ItemDefinitionGroup>
277
+ <MsDeploySourceProviderSetting>
278
+ <Path></Path>
279
+ <ComputerName></ComputerName>
280
+ <!--<Wmsvc></Wmsvc> Not supported yet-->
281
+ <UserName></UserName>
282
+ <Password></Password>
283
+ <EncryptPassword></EncryptPassword>
284
+ <IncludeAcls></IncludeAcls>
285
+ <authType></authType>
286
+ <prefetchPayload></prefetchPayload>
287
+ </MsDeploySourceProviderSetting>
288
+ </ItemDefinitionGroup>
289
+
290
+ <ItemDefinitionGroup>
291
+ <MsDeployDestinationProviderSetting>
292
+ <Path></Path>
293
+ <ComputerName></ComputerName>
294
+ <!--<Wmsvc></Wmsvc> Not supported yet-->
295
+ <UserName></UserName>
296
+ <Password></Password>
297
+ <EncryptPassword></EncryptPassword>
298
+ <IncludeAcls></IncludeAcls>
299
+ <authType></authType>
300
+ <prefetchPayload></prefetchPayload>
301
+ </MsDeployDestinationProviderSetting>
302
+ </ItemDefinitionGroup>
303
+
304
+ <!--
305
+ DeploymentSkipRule(string skipAction, string objectName, string absolutePath, string XPath);-->
306
+ <ItemDefinitionGroup>
307
+ <MsDeploySkipRules>
308
+ <SkipAction></SkipAction>
309
+ <ObjectName></ObjectName>
310
+ <AbsolutePath></AbsolutePath>
311
+ <XPath></XPath>
312
+ <KeyAttribute></KeyAttribute>
313
+ <!--Source, Destination, Both(the default)-->
314
+ <Apply></Apply>
315
+ </MsDeploySkipRules>
316
+ </ItemDefinitionGroup>
317
+
318
+ <!-- AdditionalProviderSettings denote the additionProviderSetting need to be set in the manifest files-->
319
+ <ItemDefinitionGroup>
320
+ <MsDeploySourceManifest>
321
+ <Path>Unknown</Path>
322
+ <AdditionalProviderSettings></AdditionalProviderSettings>
323
+ </MsDeploySourceManifest>
324
+ </ItemDefinitionGroup>
325
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.OneDeploy.targets ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.OneDeploy.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+ ***********************************************************************************************
9
+ -->
10
+
11
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
+ <UsingTask TaskName="OneDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
13
+ <UsingTask TaskName="CreatePackageFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
14
+ <UsingTask TaskName="GetPassword" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
15
+
16
+ <PropertyGroup>
17
+ <_DotNetPublishFiles>
18
+ OneDeploy;
19
+ </_DotNetPublishFiles>
20
+ </PropertyGroup>
21
+
22
+ <!--
23
+ ***********************************************************************************************
24
+ TARGET : CreatePackageFile
25
+ ***********************************************************************************************
26
+ -->
27
+
28
+ <Target Name="CreatePackageFile">
29
+ <MakeDir Directories="$(PublishIntermediateTempPath)"
30
+ Condition="!Exists('$(PublishIntermediateTempPath)')" />
31
+
32
+ <CreatePackageFile
33
+ ContentToPackage="$(PublishIntermediateOutputPath)"
34
+ ProjectName="$(MSBuildProjectName)"
35
+ IntermediateTempPath="$(PublishIntermediateTempPath)">
36
+ <Output TaskParameter="CreatedPackageFilePath" PropertyName="PackagedPublishContentsPath"/>
37
+ </CreatePackageFile>
38
+ </Target>
39
+
40
+ <!--
41
+ ***********************************************************************************************
42
+ TARGET : OneDeploy
43
+ ***********************************************************************************************
44
+ -->
45
+
46
+ <Target Name="OneDeploy" DependsOnTargets="CreatePackageFile">
47
+ <PropertyGroup>
48
+ <OneDeployUserAgent Condition="'$(VisualStudioVersion)' == ''">WebSdk</OneDeployUserAgent>
49
+ <OneDeployUserAgent Condition="'$(VisualStudioVersion)' != ''">WebSdk_VisualStudio_$(VisualStudioVersion)</OneDeployUserAgent>
50
+ </PropertyGroup>
51
+
52
+ <GetPassword
53
+ EncryptedPassword ="$(EncryptedPassword)"
54
+ Condition="'$(Password)' == '' And '$(IsGetPasswordEnabled)' == 'true'">
55
+ <Output TaskParameter="ClearPassword" PropertyName="Password"/>
56
+ </GetPassword>
57
+
58
+ <OneDeploy
59
+ FileToPublishPath="$(PackagedPublishContentsPath)"
60
+ PublishUrl="$(PublishUrl)"
61
+ Username="$(UserName)"
62
+ Password="$(Password)"
63
+ UserAgentVersion="$(OneDeployUserAgent)"
64
+ WebJobName="$(WebJobName)"
65
+ WebJobType="$(WebJobType)" />
66
+ </Target>
67
+
68
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/PublishTargets/Microsoft.NET.Sdk.Publish.ZipDeploy.targets ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.ZipDeploy.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your projects from the command-line or the IDE.
8
+ ***********************************************************************************************
9
+ -->
10
+
11
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
+ <UsingTask TaskName="ZipDeploy" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
13
+ <UsingTask TaskName="CreateZipFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
14
+ <UsingTask TaskName="GetPassword" AssemblyFile="$(_PublishTaskAssemblyFullPath)" />
15
+
16
+ <PropertyGroup>
17
+ <_DotNetPublishFiles>
18
+ ZipDeploy;
19
+ </_DotNetPublishFiles>
20
+ </PropertyGroup>
21
+
22
+ <!--
23
+ ***********************************************************************************************
24
+ TARGET : CreateZipFile
25
+ ***********************************************************************************************
26
+ -->
27
+
28
+ <Target Name="CreateZipFile">
29
+ <MakeDir Directories="$(PublishIntermediateTempPath)"
30
+ Condition="!Exists('$(PublishIntermediateTempPath)')" />
31
+
32
+ <CreateZipFile
33
+ FolderToZip="$(PublishIntermediateOutputPath)"
34
+ ProjectName="$(MSBuildProjectName)"
35
+ PublishIntermediateTempPath="$(PublishIntermediateTempPath)">
36
+ <Output TaskParameter="CreatedZipPath" PropertyName="ZippedPublishContentsPath"/>
37
+ </CreateZipFile>
38
+ </Target>
39
+
40
+ <!--
41
+ ***********************************************************************************************
42
+ TARGET : ZipDeploy
43
+ ***********************************************************************************************
44
+ -->
45
+
46
+ <Target Name="ZipDeploy" DependsOnTargets="CreateZipFile">
47
+ <PropertyGroup>
48
+ <ZipDeployUserAgent Condition="'$(VisualStudioVersion)' == ''">WebSdk</ZipDeployUserAgent>
49
+ <ZipDeployUserAgent Condition="'$(VisualStudioVersion)' != ''">WebSdk_VisualStudio_$(VisualStudioVersion)</ZipDeployUserAgent>
50
+ </PropertyGroup>
51
+
52
+ <GetPassword
53
+ EncryptedPassword ="$(EncryptedPassword)"
54
+ Condition="'$(Password)' == '' And '$(IsGetPasswordEnabled)' == 'true'">
55
+ <Output TaskParameter="ClearPassword" PropertyName="Password"/>
56
+ </GetPassword>
57
+
58
+ <ZipDeploy
59
+ ZipToPublishPath="$(ZippedPublishContentsPath)"
60
+ SiteName="$(DeployIisAppPath)"
61
+ PublishUrl="$(PublishUrl)"
62
+ DestinationUsername="$(UserName)"
63
+ DestinationPassword="$(Password)"
64
+ UserAgentVersion="$(ZipDeployUserAgent)"/>
65
+ </Target>
66
+
67
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/TransformTargets/Microsoft.NET.Sdk.Publish.TransformFiles.targets ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ ***********************************************************************************************
3
+ Microsoft.NET.Sdk.Publish.TransformFiles.targets
4
+
5
+ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6
+ created a backup copy. Incorrect changes to this file will make it
7
+ impossible to load or build your web deploy projects from the command-line or the IDE.
8
+
9
+ This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
10
+
11
+ Copyright (C) Microsoft Corporation. All rights reserved.
12
+ ***********************************************************************************************
13
+ -->
14
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15
+
16
+ <UsingTask TaskName="TransformWebConfig" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
17
+ <UsingTask TaskName="TransformAppSettings" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
18
+ <UsingTask TaskName="GenerateEFSQLScripts" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
19
+ <UsingTask TaskName="GenerateRunCommandFile" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
20
+ <UsingTask TaskName="TransformXml" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
21
+ <UsingTask TaskName="GenerateEnvTransform" AssemblyFile="$(_PublishTaskAssemblyFullPath)"/>
22
+
23
+ <PropertyGroup>
24
+ <_DotNetPublishTransformFiles>
25
+ _TransformWebConfig;
26
+ _TransformXml;
27
+ _TransformAppSettings;
28
+ _GenerateEFSQLScripts;
29
+ _GenerateRunCommandFile;
30
+ </_DotNetPublishTransformFiles>
31
+ </PropertyGroup>
32
+
33
+ <!--
34
+ ***********************************************************************************************
35
+ TARGET : _TransformWebConfig
36
+ ***********************************************************************************************
37
+ -->
38
+ <Target Name="_TransformWebConfig">
39
+
40
+ <PropertyGroup>
41
+ <_IsAspNetCoreProject Condition=" %(ProjectCapability.Identity) == 'AspNetCore' ">true</_IsAspNetCoreProject>
42
+ <_UseAppHost Condition=" '$(_UseAppHost)' == '' ">$(UseAppHost)</_UseAppHost>
43
+ <_UseAppHost Condition=" '$(_UseAppHost)' == '' ">$(SelfContained)</_UseAppHost>
44
+ <_UseAppHost Condition=" '$(_UseAppHost)' == '' Or '$(RuntimeIdentifier)' == '' ">false</_UseAppHost>
45
+ <_ExecutableExtension Condition=" '$(_ExecutableExtension)' == '' And $(RuntimeIdentifier.StartsWith('win')) ">.exe</_ExecutableExtension>
46
+ <_TransformWebConfigForAzure Condition=" '$(PublishProvider)' == 'AzureWebSite' Or '$(WEBSITE_SITE_NAME)' != '' Or '$(DOTNET_CONFIGURE_AZURE)' == 'true' Or '$(DOTNET_CONFIGURE_AZURE)' == '1' ">true</_TransformWebConfigForAzure>
47
+ </PropertyGroup>
48
+
49
+
50
+ <TransformWebConfig
51
+ Condition="'$(_IsAspNetCoreProject)' == 'true'
52
+ And '$(IsTransformWebConfigDisabled)' != 'true'
53
+ And '$(IsWebConfigTransformDisabled)' != 'true'
54
+ And '$(PublishIISAssets)' != 'false'"
55
+ TargetPath="$(TargetPath)"
56
+ PublishDir="$(PublishIntermediateOutputPath)"
57
+ UseAppHost="$(_UseAppHost)"
58
+ ExecutableExtension="$(_ExecutableExtension)"
59
+ IsAzure="$(_TransformWebConfigForAzure)"
60
+ ProjectGuid="$(ProjectGuid)"
61
+ IgnoreProjectGuid="$(IgnoreProjectGuid)"
62
+ ProjectFullPath="$(MSBuildProjectFullPath)"
63
+ SolutionPath="$(SolutionPath)"
64
+ AspNetCoreModuleName="$(AspNetCoreModuleName)"
65
+ AspNetCoreHostingModel="$(AspNetCoreHostingModel)"
66
+ EnvironmentName="$(EnvironmentName)"/>
67
+ </Target>
68
+
69
+
70
+ <!--
71
+ ***********************************************************************************************
72
+ TARGET : _TransformXml
73
+ ***********************************************************************************************
74
+ -->
75
+ <Target Name="_TransformXml">
76
+
77
+ <PropertyGroup>
78
+ <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
79
+ <TransformXmlStackTraceEnabled Condition="'$(TransformXmlStackTraceEnabled)' == ''">true</TransformXmlStackTraceEnabled>
80
+ <!-- Forcing the property value to be boolean -->
81
+ <TransformXmlStackTraceEnabled Condition="'$(TransformXmlStackTraceEnabled)' != 'true'">false</TransformXmlStackTraceEnabled>
82
+ <_WebConfigTransformCompleted Condition="'$(_IsAspNetCoreProject)' == 'true'
83
+ And '$(IsTransformWebConfigDisabled)' != 'true'
84
+ And '$(IsWebConfigTransformDisabled)' != 'true'
85
+ And '$(PublishIISAssets)' != 'false'">true</_WebConfigTransformCompleted>
86
+ <_WebConfigTransformCompleted Condition="'$(_WebConfigTransformCompleted)' == ''">false</_WebConfigTransformCompleted>
87
+ <RunXdt Condition="'$(RunXdt)' == ''">$(_WebConfigTransformCompleted)</RunXdt>
88
+ </PropertyGroup>
89
+
90
+ <PropertyGroup Condition="'$(WebPublishProfileFile)' !=''">
91
+ <PublishProfileName>$([System.IO.Path]::GetFileNameWithoutExtension($(WebPublishProfileFile)))</PublishProfileName>
92
+ <PublishProfileDirectory>$([System.IO.Path]::GetDirectoryName($(WebPublishProfileFile)))</PublishProfileDirectory>
93
+ </PropertyGroup>
94
+
95
+ <!-- PROJECT LEVEL TRANSFORMS -->
96
+
97
+ <!-- Run the Project transforms first i.e $(MSBuildProjectDirectory)\web.<transform>.config -->
98
+ <ItemGroup>
99
+ <!-- Run the transform at the config level e.g: web.Release.config if the configuration is Release-->
100
+ <ProjectTransforms Condition=" '$(Configuration)' != '' " Include="$(MSBuildProjectDirectory)\web.$(Configuration).config" />
101
+ <!-- Run the transform at the profile level e.g: web.FolderProfile.config if the profile name is FolderProfile -->
102
+ <ProjectTransforms Condition=" '$(PublishProfileName)' != '' " Include="$(MSBuildProjectDirectory)\web.$(PublishProfileName).config" />
103
+ <!-- Run the transform at the environment level e.g: web.staging.config if the $(EnvironmentName) passed to msbuild is staging-->
104
+ <ProjectTransforms Condition=" '$(EnvironmentName)' != '' " Include="$(MSBuildProjectDirectory)\web.$(EnvironmentName).config" />
105
+ </ItemGroup>
106
+
107
+ <TransformXml Condition=" '%(ProjectTransforms.Identity)' != ''
108
+ And Exists('%(ProjectTransforms.Identity)')
109
+ And Exists('$(PublishIntermediateOutputPath)web.config')
110
+ And '$(RunXdt)' == 'true'"
111
+ Source="$(PublishIntermediateOutputPath)web.config"
112
+ Transform="%(ProjectTransforms.Identity)"
113
+ Destination="$(PublishIntermediateOutputPath)web.config"
114
+ StackTrace="$(TransformXmlStackTraceEnabled)"
115
+ SourceRootPath="$(PublishIntermediateOutputPath)"
116
+ TransformRootPath="$(MSBuildProjectDirectory)"/>
117
+
118
+ <!-- PROFILE LEVEL TRANSFORMS -->
119
+
120
+ <!-- Run the Profile transforms next i.e $(PublishProfileDirectory)\$(PublishProfileName).transform -->
121
+ <ItemGroup>
122
+ <!-- Run the transform at the profile level e.g: Properties\PublishProfiles\FolderProfile.transform when the profile name is FolderProfile -->
123
+ <ProfileTransforms Condition=" '$(PublishProfileName)' != '' " Include="$(PublishProfileDirectory)\$(PublishProfileName).transform" />
124
+ </ItemGroup>
125
+
126
+ <TransformXml Condition=" '%(ProfileTransforms.Identity)' != ''
127
+ And Exists('%(ProfileTransforms.Identity)')
128
+ And Exists('$(PublishIntermediateOutputPath)web.config')
129
+ And '$(RunXdt)' == 'true'"
130
+ Source="$(PublishIntermediateOutputPath)web.config"
131
+ Transform="%(ProfileTransforms.Identity)"
132
+ Destination="$(PublishIntermediateOutputPath)web.config"
133
+ StackTrace="$(TransformXmlStackTraceEnabled)"
134
+ SourceRootPath="$(PublishIntermediateOutputPath)"
135
+ TransformRootPath="$(MSBuildProjectDirectory)"/>
136
+
137
+ <!-- CUSTOM TRANSFORMS -->
138
+
139
+ <!-- Run the Custom transforms next i.e $(CustomTransformFileName) in the project directory first and then run $(CustomTransformFilePath)\$(CustomTransformFileName) -->
140
+ <ItemGroup>
141
+ <!-- Run the custom transform file e.g: MyTransformFile.xml if the $(CustomTransformFileName) passed to msbuild is MyTransformFile.xml-->
142
+ <CustomTransforms Condition=" '$(CustomTransformFileName)' != '' " Include="$(MSBuildProjectDirectory)\$(CustomTransformFileName)" />
143
+ <!-- Run the custom transform file from any location e.g: c:\temp\MyTransformFile.xml if the $(CustomTransformFileName) passed to msbuild is MyTransformFile.xml
144
+ and $(CustomTransformDirectory) passed to msbuild is c:\temp\-->
145
+ <CustomTransforms Condition=" '$(CustomTransformDirectory)' != '' And '$(CustomTransformFileName)' != '' " Include="$(CustomTransformDirectory)\$(CustomTransformFileName)" />
146
+
147
+ </ItemGroup>
148
+
149
+ <TransformXml Condition=" '%(CustomTransforms.Identity)' != ''
150
+ And Exists('%(CustomTransforms.Identity)')
151
+ And Exists('$(PublishIntermediateOutputPath)web.config')
152
+ And '$(RunXdt)' == 'true'"
153
+ Source="$(PublishIntermediateOutputPath)web.config"
154
+ Transform="%(CustomTransforms.Identity)"
155
+ Destination="$(PublishIntermediateOutputPath)web.config"
156
+ StackTrace="$(TransformXmlStackTraceEnabled)"
157
+ SourceRootPath="$(PublishIntermediateOutputPath)"
158
+ TransformRootPath="$(MSBuildProjectDirectory)"/>
159
+
160
+ <!-- ENVIRONMENT TRANSFORMS -->
161
+
162
+ <!-- Transform the environment variables in the web.config with the $(WebConfigEnvironmentVariables) from publish profile or Project -->
163
+ <ItemGroup>
164
+ <EnvironmentTransforms Include="$(MSBuildThisFileDirectory)Transforms\EnvironmentWithLocation.transform;$(MSBuildThisFileDirectory)Transforms\EnvironmentNoLocation.transform" />
165
+ </ItemGroup>
166
+
167
+ <GenerateEnvTransform Condition=" '$(WebConfigEnvironmentVariables)' != '' "
168
+ WebConfigEnvironmentVariables = "$(WebConfigEnvironmentVariables)"
169
+ EnvTransformTemplatePaths="@(EnvironmentTransforms)"
170
+ PublishTempDirectory="$(PublishIntermediateTempPath)">
171
+ <Output TaskParameter="GeneratedTransformFullPaths" ItemName="_GeneratedEnvironmentTransforms" />
172
+ </GenerateEnvTransform>
173
+
174
+ <TransformXml Condition=" '%(_GeneratedEnvironmentTransforms.Identity)' != ''
175
+ And Exists('%(_GeneratedEnvironmentTransforms.Identity)')
176
+ And Exists('$(PublishIntermediateOutputPath)web.config')
177
+ And '$(RunXdt)' == 'true'"
178
+ Source="$(PublishIntermediateOutputPath)web.config"
179
+ Transform="%(_GeneratedEnvironmentTransforms.Identity)"
180
+ Destination="$(PublishIntermediateOutputPath)web.config"
181
+ StackTrace="false"
182
+ SourceRootPath="$(PublishIntermediateOutputPath)"
183
+ TransformRootPath="$(PublishIntermediateTempPath)"
184
+ IgnoreError="true"/>
185
+ </Target>
186
+
187
+ <!--
188
+ ***********************************************************************************************
189
+ TARGET : _TransformAppSettings
190
+ ***********************************************************************************************
191
+ -->
192
+
193
+ <Target Name="_TransformAppSettings">
194
+ <PropertyGroup>
195
+ <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
196
+ </PropertyGroup>
197
+
198
+ <TransformAppSettings
199
+ Condition="'$(_IsAspNetCoreProject)' == 'true' And '$(IsTransformAppSettingsDisabled)' != 'true' And @(DestinationConnectionStrings) != ''"
200
+ PublishDirectory="$(PublishIntermediateOutputPath)"
201
+ ProjectDirectory="$(MSBuildProjectDirectory)"
202
+ DestinationConnectionStrings="@(DestinationConnectionStrings)"
203
+ SourceAppSettingsName="$(SourceAppSettingsName)"
204
+ DestinationAppSettingsName ="$(DestinationAppSettingsName)"
205
+ EnvironmentName="$(EnvironmentName)"/>
206
+ </Target>
207
+
208
+ <!--
209
+ ***********************************************************************************************
210
+ TARGET : _GenerateEFSQLScripts
211
+ ***********************************************************************************************
212
+ -->
213
+
214
+ <Target Name="_GenerateEFSQLScripts">
215
+ <PropertyGroup>
216
+ <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
217
+ <_EFPublishDirectory Condition="'$(CopyEFSQLScriptsToOutputFolder)' == 'true'">$(PublishIntermediateOutputPath)</_EFPublishDirectory>
218
+ <_EFPublishDirectory Condition="'$(_EFPublishDirectory)' == ''">$(PublishIntermediateTempPath)</_EFPublishDirectory>
219
+ </PropertyGroup>
220
+
221
+ <GenerateEFSQLScripts
222
+ Condition="'$(_IsAspNetCoreProject)' == 'true' And '$(IsGenerateEFSQLScriptsDisabled)' != 'true' And @(EfMigrations) != ''"
223
+ ProjectDirectory="$(MSBuildProjectDirectory)"
224
+ EFPublishDirectory="$(_EFPublishDirectory)"
225
+ EFSQLScriptsFolderName="$(EFSQLScriptsFolderName)"
226
+ EFMigrations="@(EFMigrations)"
227
+ EFMigrationsAdditionalArgs="$(EFMigrationsAdditionalArgs)"
228
+ Configuration="$(Configuration)">
229
+ <Output TaskParameter="EFSQLScripts" ItemName="_EFSQLScripts" />
230
+ </GenerateEFSQLScripts>
231
+ </Target>
232
+
233
+
234
+ <!--
235
+ ***********************************************************************************************
236
+ TARGET : _GenerateRunCommandFile
237
+ ***********************************************************************************************
238
+ -->
239
+ <Target Name="_GenerateRunCommandFile">
240
+
241
+ <PropertyGroup>
242
+ <_IsWebJobProject Condition=" '$(_IsWebJobProject)' == '' And '$(WebJobName)' != '' And '$(WebJobType)' != '' ">true</_IsWebJobProject>
243
+ <_UseAppHost Condition=" '$(_UseAppHost)' == '' ">$(UseAppHost)</_UseAppHost>
244
+ <_UseAppHost Condition=" '$(_UseAppHost)' == '' ">$(SelfContained)</_UseAppHost>
245
+ <_UseAppHost Condition=" '$(_UseAppHost)' == '' Or '$(RuntimeIdentifier)' == '' ">false</_UseAppHost>
246
+ <_ExecutableExtension Condition=" '$(_ExecutableExtension)' == '' And $(RuntimeIdentifier.StartsWith('win')) ">.exe</_ExecutableExtension>
247
+ <_IsLinux Condition=" '$(IsLinux)' == 'True'">true</_IsLinux>
248
+ <_WebJobsDirectory>$(PublishIntermediateOutputPath)\app_data\Jobs\$(WebJobType)\$(WebJobName)\</_WebJobsDirectory>
249
+ <_WebJobsDirectory Condition="'$(WebPublishMethod)' == 'OneDeploy'">$(PublishIntermediateOutputPath)\</_WebJobsDirectory>
250
+ </PropertyGroup>
251
+
252
+ <GenerateRunCommandFile
253
+ Condition="'$(_IsWebJobProject)' == 'true' And '$(IsGenerateRunCommandFileDisabled)' != 'true'"
254
+ ProjectDirectory="$(MSBuildProjectDirectory)"
255
+ TargetPath="$(TargetPath)"
256
+ WebJobsDirectory="$(_WebJobsDirectory)"
257
+ UseAppHost="$(_UseAppHost)"
258
+ ExecutableExtension="$(_ExecutableExtension)"
259
+ IsLinux="$(_IsLinux)" />
260
+ </Target>
261
+ </Project>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/TransformTargets/Transforms/EnvironmentNoLocation.transform ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3
+     <system.webServer>
4
+     <aspNetCore>
5
+         <environmentVariables xdt:Transform="InsertIfMissing" />
6
+ </aspNetCore>
7
+ </system.webServer>
8
+ </configuration>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/targets/TransformTargets/Transforms/EnvironmentWithLocation.transform ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3
+   <location>
4
+     <system.webServer>
5
+     <aspNetCore>
6
+         <environmentVariables xdt:Transform="InsertIfMissing" />
7
+ </aspNetCore>
8
+ </system.webServer>
9
+ </location>
10
+ </configuration>
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/Microsoft.Bcl.AsyncInterfaces.dll ADDED
Binary file (26.9 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/Microsoft.Web.Deployment.Tracing.dll ADDED
Binary file (32.6 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/Microsoft.Web.XmlTransform.dll ADDED
Binary file (83 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.Buffers.dll ADDED
Binary file (20.9 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.IO.Pipelines.dll ADDED
Binary file (84.8 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.Runtime.CompilerServices.Unsafe.dll ADDED
Binary file (18 kB). View file
 
dotnet/sdk/9.0.313/Sdks/Microsoft.NET.Sdk.Publish/tools/net472/System.Security.Cryptography.ProtectedData.dll ADDED
Binary file (21.3 kB). View file