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>2017-02-02 02:58:41 +0300
committerEric St. John <ericstj@microsoft.com>2017-02-02 05:28:02 +0300
commit926c91253ad52a9e36e1bb689f980d3ecf54b81b (patch)
tree561f62b71f4a61d75718a78d58aace2055d9a745 /dir.props
parent7223eab1c15822cabf3624c7b85089221f684c9a (diff)
Make ReferenceFromRuntime use project reference
ReferenceFromRuntime for src projects isn't safe. It allows any source project to reference the output of another source project without properly sequencing the build. This fixes that by changing ReferenceFromRuntime to instead use a ProjectReference to the runtime project for the building configuration and filter that to just the files requested. I also completely block the use of ReferenceFromRuntime in test projects
Diffstat (limited to 'dir.props')
-rw-r--r--dir.props3
1 files changed, 3 insertions, 0 deletions
diff --git a/dir.props b/dir.props
index 5b13996baa..f07560c075 100644
--- a/dir.props
+++ b/dir.props
@@ -255,6 +255,9 @@
<NetStandardRefPath>$(RefRootPath)netstandard/</NetStandardRefPath>
<NetFxRefPath>$(RefRootPath)netfx/</NetFxRefPath>
+ <!-- project file to use when resolving ReferenceFromRuntime items -->
+ <RuntimeProjectFile Condition="'$(RuntimeProjectFile)' == ''">$(ProjectDir)\external\runtime\runtime.depproj</RuntimeProjectFile>
+
<!-- Paths to binplace package content -->
<NETCoreAppPackageRefPath>$(BinDir)netcoreapp\pkg\ref</NETCoreAppPackageRefPath>
<NETCoreAppPackageRuntimePath>$(BinDir)netcoreapp\pkg\lib</NETCoreAppPackageRuntimePath>