|
10 | 10 | <AppDesignerFolder>Properties</AppDesignerFolder> |
11 | 11 | <RootNamespace>WindowsAppSDK.Extension</RootNamespace> |
12 | 12 | <AssemblyName Condition="'$(EnableExperimentalVSIXFeatures)'!='true'">WindowsAppSDK.Extension</AssemblyName> |
13 | | - <AssemblyName Condition="'$(EnableExperimentalVSIXFeatures)'=='true'">WindowsAppSDK.Extension.Preview</AssemblyName> |
| 13 | + <AssemblyName Condition="'$(EnableExperimentalVSIXFeatures)'=='true'">WindowsAppSDK.Extension.Experimental</AssemblyName> |
14 | 14 | <TargetFramework>net472</TargetFramework> |
15 | 15 | <!-- This project may not have any C# source files, so suppress that compiler warning. --> |
16 | 16 | <NoWarn>2008</NoWarn> |
|
263 | 263 | <!-- |
264 | 264 | Add a timestamp as part 4 of the version for uniqueness, and to ensure newer builds are newer |
265 | 265 | versions. Note that the timestamp is also included in release builds. This avoids version |
266 | | - sequencing issues between public previews and release versions that might otherwise have the same |
| 266 | + sequencing issues between experimental and stable/preview versions that might otherwise have the same |
267 | 267 | version number, since VSIX does not support preview tags or other mechanisms to distinguish. |
268 | 268 | --> |
269 | 269 | <TimeSpan>$([System.Math]::Floor($([System.DateTime]::UtcNow.Subtract($([System.DateTime]::Parse('2020-01-01T00:00Z'))).TotalSeconds)))</TimeSpan> |
|
292 | 292 | Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />"> |
293 | 293 | <Output TaskParameter="Result" PropertyName="_OriginalVsixTags" /> |
294 | 294 | </XmlPeek> |
| 295 | + <XmlPeek |
| 296 | + XmlInputPath="$(VsixManifestSource)" |
| 297 | + Query="/ns:PackageManifest/ns:Metadata/ns:Preview/text()" |
| 298 | + Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />"> |
| 299 | + <Output TaskParameter="Result" PropertyName="_OriginalVsixPreview" /> |
| 300 | + </XmlPeek> |
295 | 301 |
|
296 | | - <!-- Update the .vsixmanifest to reflect preview status if necessary --> |
| 302 | + <!-- Update the .vsixmanifest to reflect experimental status if necessary --> |
297 | 303 |
|
298 | 304 | <!-- The value set here for the Id needs to match that set for 'ExperimentalNugetRepositoryId' in |
299 | 305 | ..\Directory.Build.targets --> |
|
307 | 313 | Condition="'$(EnableExperimentalVSIXFeatures)'=='true'" |
308 | 314 | XmlInputPath="$(VsixManifestSource)" |
309 | 315 | Query="/ns:PackageManifest/ns:Metadata/ns:DisplayName" |
310 | | - Value="$(_OriginalVsixName) (Preview)" |
| 316 | + Value="$(_OriginalVsixName) (Experimental)" |
311 | 317 | Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" /> |
312 | 318 | <XmlPoke |
313 | 319 | Condition="'$(EnableExperimentalVSIXFeatures)'=='true'" |
314 | 320 | XmlInputPath="$(VsixManifestSource)" |
315 | 321 | Query="/ns:PackageManifest/ns:Metadata/ns:Tags" |
316 | 322 | Value="$(_OriginalVsixTags), UWP" |
317 | 323 | Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" /> |
| 324 | + <XmlPoke |
| 325 | + Condition="'$(EnableExperimentalVSIXFeatures)'=='true'" |
| 326 | + XmlInputPath="$(VsixManifestSource)" |
| 327 | + Query="/ns:PackageManifest/ns:Metadata/ns:Preview" |
| 328 | + Value="true" |
| 329 | + Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" /> |
318 | 330 | </Target> |
319 | 331 | <Target Name="AfterBuild"> |
320 | 332 | <PropertyGroup> |
|
339 | 351 | Query="/ns:PackageManifest/ns:Metadata/ns:Tags" |
340 | 352 | Value="$(_OriginalVsixTags)" |
341 | 353 | Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" /> |
| 354 | + <XmlPoke |
| 355 | + XmlInputPath="$(VsixManifestSource)" |
| 356 | + Query="/ns:PackageManifest/ns:Metadata/ns:Preview" |
| 357 | + Value="$(_OriginalVsixPreview)" |
| 358 | + Namespaces="<Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" /> |
342 | 359 | </Target> |
343 | 360 | </Project> |
0 commit comments