Skip to content

Commit

Permalink
Added <Optimize> property to vsimporter WinStore10 templates and sample
Browse files Browse the repository at this point in the history
projects to allow them to to pass WACK.
Added default.rd.xml to vsimporter WinStore10 templates to address
warnings when creating an appx for the Store.

VSO 5424059
  • Loading branch information
asimonov-msft authored and lemo-msft committed Nov 18, 2015
1 parent 4e32618 commit ab60acf
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions msvc/vsimporter-templates/WinStore10-App/App.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v140</PlatformToolset>
<UseDotNetNativeToolchain VSImporterConfigName="Release">true</UseDotNetNativeToolchain>
<Optimize VSImporterConfigName="Release">true</Optimize>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" VSImporterLabel="BuildExtensionProperties">
Expand Down Expand Up @@ -48,6 +49,7 @@
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<Xml Include="default.rd.xml" />
<None Include="$projectname$_TemporaryKey.pfx" />
<Image Include="Assets\LockScreenLogo.scale-200.png" />
<Image Include="Assets\SplashScreen.scale-200.png" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<Project OutputDirectory="$projectname$-WinStore10" File="App.vcxproj" TargetFileName="$projectname$.vcxproj" Platforms="Win32" ReplaceParameters="true" Deployable="true">
<ProjectItem ReplaceParameters="true" TargetFileName="$projectname$.vcxproj.filters">App.vcxproj.filters</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Package.appxmanifest">Package-native.appxmanifest</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="default.rd.xml">default.rd.xml</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="Assets\LockScreenLogo.scale-200.png">LockScreenLogo.scale-200.png</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="Assets\SplashScreen.scale-200.png">SplashScreen.scale-200.png</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="Assets\Square44x44Logo.scale-200.png">Square44x44Logo.scale-200.png</ProjectItem>
Expand Down
8 changes: 8 additions & 0 deletions msvc/vsimporter-templates/WinStore10-App/default.rd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most developers. However, you can modify these parameters to modify the behavior of the .NET Native optimizer. Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919 To fully enable reflection for App1.MyClass and all of its public/private members <Type Name="App1.MyClass" Dynamic="Required All"/> To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32 <TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" /> Using the Namespace directive to apply reflection policy to all the types in a particular namespace <Namespace Name="DataClasses.ViewModels" Seralize="All" /> -->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"><Application>
<!-- An Assembly element with Name="*Application*" applies to all assemblies in the application package. The asterisks are not wildcards. -->
<Assembly Dynamic="Required All" Name="*Application*"/>
<!-- Add your application specific runtime directives here. -->
</Application>
</Directives>
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<PlatformToolset>v140</PlatformToolset>
<TargetName>GLKitComplex</TargetName>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<PlatformToolset>v140</PlatformToolset>
<TargetName>HelloGLKit</TargetName>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<PlatformToolset>v140</PlatformToolset>
<TargetName>HelloOpenGL</TargetName>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<PlatformToolset>v140</PlatformToolset>
<TargetName>HelloUI</TargetName>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<PlatformToolset>v140</PlatformToolset>
<TargetName>WOCCatalog</TargetName>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down

0 comments on commit ab60acf

Please sign in to comment.