Skip to content

Commit 9516962

Browse files
authored
Merge pull request #401 from microsoft/bsonnino/add-ai-capability
Add AI Capability
2 parents d0e40ec + 133ae96 commit 9516962

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

AIDevGallery/AIDevGallery.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<ApplicationIcon>Assets\AppIcon\Icon.ico</ApplicationIcon>
2626
<AssemblyTitle>AI Dev Gallery</AssemblyTitle>
2727
<WinMLDeployMSIXToOutput>true</WinMLDeployMSIXToOutput>
28+
<AppxOSMinVersionReplaceManifestVersion>false</AppxOSMinVersionReplaceManifestVersion>
29+
<AppxOSMaxVersionTestedReplaceManifestVersion>false</AppxOSMaxVersionTestedReplaceManifestVersion>
2830
</PropertyGroup>
2931

3032
<PropertyGroup Condition="'$(IsWindowsAppSDKPreRelease)' == 'true'">

AIDevGallery/Package.appxmanifest

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
66
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
77
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
8-
IgnorableNamespaces="uap rescap">
8+
xmlns:systemai="http://schemas.microsoft.com/appx/manifest/systemai/windows10"
9+
IgnorableNamespaces="uap rescap systemai">
910

1011
<Identity
1112
Name="e7af07c0-77d2-43e5-ab82-9cdb9daa11b3"
@@ -21,8 +22,8 @@
2122
</Properties>
2223

2324
<Dependencies>
24-
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
25-
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
25+
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26226.0" />
26+
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26226.0" />
2627
</Dependencies>
2728

2829
<Resources>
@@ -60,5 +61,6 @@
6061

6162
<Capabilities>
6263
<rescap:Capability Name="runFullTrust" />
64+
<systemai:Capability Name="systemAIModels"/>
6365
</Capabilities>
6466
</Package>

AIDevGallery/ProjectGenerator/Template/Package-managed.appxmanifest

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
66
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
77
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
8-
IgnorableNamespaces="uap rescap">
8+
xmlns:systemai="http://schemas.microsoft.com/appx/manifest/systemai/windows10"
9+
IgnorableNamespaces="uap rescap systemai">
910

1011
<Identity
1112
Name="$guid9$"
@@ -21,8 +22,8 @@
2122
</Properties>
2223

2324
<Dependencies>
24-
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
25-
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
25+
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26226.0" />
26+
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26226.0" />
2627
</Dependencies>
2728

2829
<Resources>
@@ -47,5 +48,6 @@
4748

4849
<Capabilities>
4950
<rescap:Capability Name="runFullTrust" />
51+
<systemai:Capability Name="systemAIModels"/>
5052
</Capabilities>
5153
</Package>

AIDevGallery/ProjectGenerator/Template/ProjectTemplate.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<EnableMsixTooling>true</EnableMsixTooling>
1313
<Nullable>enable</Nullable>
1414
<LangVersion>preview</LangVersion>
15+
<AppxOSMinVersionReplaceManifestVersion>false</AppxOSMinVersionReplaceManifestVersion>
16+
<AppxOSMaxVersionTestedReplaceManifestVersion>false</AppxOSMaxVersionTestedReplaceManifestVersion>
1517
</PropertyGroup>
1618

1719
<ItemGroup>

0 commit comments

Comments
 (0)