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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil <schellap@microsoft.com>2016-01-21 07:45:27 +0300
committerSenthil <schellap@microsoft.com>2016-01-29 13:05:09 +0300
commite8cc957fcf728e168d73e99dabe97d32a2965125 (patch)
tree6ac8b5c868987f26dab65158a37bd8816244e8ed /dir.props
parentf60bc0fe53f88907ec554b558f974e54cf5dd241 (diff)
Fix project.json syntax for dotnet restore
Diffstat (limited to 'dir.props')
-rw-r--r--dir.props18
1 files changed, 16 insertions, 2 deletions
diff --git a/dir.props b/dir.props
index 63c96bf04..5991e7812 100644
--- a/dir.props
+++ b/dir.props
@@ -1,4 +1,4 @@
-<Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="CheckRoslyn" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="CheckRoslyn;OverrideBuildTools" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Condition="Exists('..\dir.props') And '$(RepoLocalBuild)'!='true'" Project="..\dir.props" />
<!--
@@ -151,7 +151,6 @@
<!-- list of directories to perform batch restore -->
<ItemGroup>
<DnuRestoreDir Include="&quot;$(MSBuildProjectDirectory)\src&quot;" />
- <DnuRestoreDir Include="&quot;$(ToolsDir)&quot;" />
</ItemGroup>
<PropertyGroup>
@@ -296,4 +295,19 @@
<Warning Condition="!Exists('$(RoslynPropsFile)')"
Text="The Roslyn targets do not exist- Roslyn will not be used for this build, but the package should be restored if you build again." />
</Target>
+
+
+ <Target Name="OverrideBuildTools">
+ <Error Condition="'$(BuildToolsVersion)'!='1.0.25-prerelease-00111'" Text="Confirm below project.json overrides are still compatibile with this version."></Error>
+ <PropertyGroup>
+ <!--
+ These overrides are for $(PackagesDir)\Microsoft.DotNet.BuildTools.1.0.25-prerelease-00111\lib\tool-runtime\project.json and test-runtime\project.json
+ This is similar to how CoreFX handles these files.
+ -->
+ <TestRuntimeProjectJson>$(ProjectDir)src/packaging/buildtools/test-runtime/project.json</TestRuntimeProjectJson>
+ <TestRuntimeProjectLockJson>$(ProjectDir)src/packaging/buildtools/test-runtime/project.lock.json</TestRuntimeProjectLockJson>
+ <ToolRuntimeProjectJson>$(ProjectDir)src/packaging/buildtools/tool-runtime/project.json</ToolRuntimeProjectJson>
+ <ToolRuntimeProjectLockJson>$(ProjectDir)src/packaging/buildtools/tool-runtime/project.lock.json</ToolRuntimeProjectLockJson>
+ </PropertyGroup>
+ </Target>
</Project>