diff options
author | Eric St. John <ericstj@microsoft.com> | 2017-02-02 02:58:41 +0300 |
---|---|---|
committer | Eric St. John <ericstj@microsoft.com> | 2017-02-02 05:28:02 +0300 |
commit | 926c91253ad52a9e36e1bb689f980d3ecf54b81b (patch) | |
tree | 561f62b71f4a61d75718a78d58aace2055d9a745 /dir.props | |
parent | 7223eab1c15822cabf3624c7b85089221f684c9a (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.props | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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> |