Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2016-11-28 20:22:49 +0300
committerEric St. John <ericstj@microsoft.com>2016-11-28 20:24:50 +0300
commit8d7870ad127d5b25968835ceb22a6c87eb7e73f8 (patch)
treebda7e124f05e9f8fc706341d73bbfb6fd1b4bd67 /Packaging.props
parent806c4d9bf26e91923e822f745b07daecca8d077b (diff)
Add useSharedDesignerContext.txt marker
Fixes #13934 The XAML designer needs to classify packages as safe to share and avoid reload. This is required to have reasonable performance in the designer, because reloading the entire framework is currently quite expensive due to the architecture of the designer and the fact that its running on Desktop. The designer cannot reuse all NuGet assemblies since some may register things in their static constructors (EG: dependency properties) that need to be re-registered as the designer context is refreshed. None of our assemblies do this so we're an easy target for optimization. For now we'll add a marker that helps the designer identify our packages for this optimization. In the future the plan is to remove this once the designer can be refactored to have a NETCore component that loads the user code and is fast to restart/reload.
Diffstat (limited to 'Packaging.props')
-rw-r--r--Packaging.props6
1 files changed, 6 insertions, 0 deletions
diff --git a/Packaging.props b/Packaging.props
index 18ca33e991..223cae4f16 100644
--- a/Packaging.props
+++ b/Packaging.props
@@ -59,5 +59,11 @@
Include="$(SyncInfoFile)" >
<SkipPackageFileCheck>true</SkipPackageFileCheck>
</File>
+
+ <!-- Add a marker to help the designer optimize & share .NET Core packages -->
+ <File Condition="'$(IncludeDesignerMarker)' != 'false'"
+ Include="$(ProjectDir)pkg/useSharedDesignerContext.txt">
+ <SkipPackageFileCheck>true</SkipPackageFileCheck>
+ </File>
</ItemGroup>
</Project>