cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dase...@apache.org
Subject cordova-windows git commit: CB-12499 UWP: Dependent external libraries specified as resource-file not being referenced in Release mode
Date Mon, 20 Mar 2017 09:37:50 GMT
Repository: cordova-windows
Updated Branches:
  refs/heads/master a4ab7ccb5 -> d5ddcb4c4


CB-12499 UWP: Dependent external libraries specified as resource-file not being referenced
in Release mode

Adds Default.rd.xml to Windows 10 project template making an app metadata to be available
for reflection at runtime


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/d5ddcb4c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/d5ddcb4c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/d5ddcb4c

Branch: refs/heads/master
Commit: d5ddcb4c4f546d2aa7707b57b26c5143ff42c91f
Parents: a4ab7cc
Author: daserge <v-seshak@microsoft.com>
Authored: Mon Feb 27 19:56:48 2017 +0300
Committer: daserge <v-seshak@microsoft.com>
Committed: Mon Feb 27 19:56:48 2017 +0300

----------------------------------------------------------------------
 template/CordovaApp.Windows10.jsproj |  1 +
 template/Properties/Default.rd.xml   | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/d5ddcb4c/template/CordovaApp.Windows10.jsproj
----------------------------------------------------------------------
diff --git a/template/CordovaApp.Windows10.jsproj b/template/CordovaApp.Windows10.jsproj
index d2fa1bf..541228e 100644
--- a/template/CordovaApp.Windows10.jsproj
+++ b/template/CordovaApp.Windows10.jsproj
@@ -101,6 +101,7 @@
     <Content Exclude="images\*SplashScreenPhone*;images\*.scale-240.*" Include="images\*.png"
/>
     <Content Exclude="images\*SplashScreenPhone*;images\*.scale-240.*" Include="images\*.jpg"
/>
     <Content Exclude="images\*SplashScreenPhone*;images\*.scale-240.*" Include="images\*.jpeg"
/>
+    <Content Include="Properties\Default.rd.xml" />
   </ItemGroup>
   <Import Project="CordovaApp.projitems" Label="Shared" />
   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets"
/>

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/d5ddcb4c/template/Properties/Default.rd.xml
----------------------------------------------------------------------
diff --git a/template/Properties/Default.rd.xml b/template/Properties/Default.rd.xml
new file mode 100644
index 0000000..7c40ffe
--- /dev/null
+++ b/template/Properties/Default.rd.xml
@@ -0,0 +1,31 @@
+<!--
+    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 https://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 Name="*Application*" Dynamic="Required All" />
+    
+    
+    <!-- Add your application specific runtime directives here. -->
+
+
+  </Application>
+</Directives>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message