Skip to content

A Swiss Army knife for developers.

Added Runtime Directive

Etienne Baudoux05e9a3651a60
diff --git a/src/DevTools.sln b/src/DevTools.sln
index 6afed375d..12c1e1c89 100644
--- a/src/DevTools.sln
+++ b/src/DevTools.sln
@@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
+ ..\README.md = ..\README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "def", "def", "{A2C92FF9-1D2E-47C6-8D7D-975412F7F36E}"
diff --git a/src/dev/startup/DevTools/DevTools.csproj b/src/dev/startup/DevTools/DevTools.csproj
index 3f4cde4bd..d01d0ace0 100644
--- a/src/dev/startup/DevTools/DevTools.csproj
+++ b/src/dev/startup/DevTools/DevTools.csproj
@@ -106,6 +106,7 @@
<Content Include="..\DevTools.Startup\Assets\Logo\Wide310x150Logo.scale-200.png">
<Link>Assets\Logo\Wide310x150Logo.scale-200.png</Link>
</Content>
+ <Content Include="Properties\Default.rd.rd.xml" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
diff --git a/src/dev/startup/DevTools/Properties/Default.rd.rd.xml b/src/dev/startup/DevTools/Properties/Default.rd.rd.xml
new file mode 100644
index 000000000..99459feb2
--- /dev/null
+++ b/src/dev/startup/DevTools/Properties/Default.rd.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" Serialize="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.
+ -->
+ <Namespace Name="Microsoft.Xaml.Interactivity" Dynamic="Required All" />
+ <Namespace Name="Microsoft.Xaml.Interactions.Core" Dynamic="Required All" />
+ <Namespace Name="Microsoft.Toolkit.Uwp.UI.Behaviors" Dynamic="Required All" />
+ <Namespace Name="DevTools" Dynamic="Required All" />
+
+ <!-- Add your application specific runtime directives here. -->
+ </Application>
+</Directives>
\ No newline at end of file