From 3b67abecbfc9933d73bf26c8b88bd7167cf471b9 Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Baaskaran Date: Thu, 10 Jan 2019 17:34:25 -0800 Subject: [PATCH] Add an MSBuild target to set MsBuild.exe path (#6401) * Add an MSBuild target to set MsBuild.exe path * Added a warning message * Don't build Razor.Tasks twice * Compile include inside the target --- .../Microsoft.AspNetCore.Razor.Design.csproj | 3 +- ...rosoft.AspNetCore.Razor.Design.Test.csproj | 29 ++++++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/Razor/Razor.Design/src/Microsoft.AspNetCore.Razor.Design.csproj b/src/Razor/Razor.Design/src/Microsoft.AspNetCore.Razor.Design.csproj index e7281a385b..f23d5997d8 100644 --- a/src/Razor/Razor.Design/src/Microsoft.AspNetCore.Razor.Design.csproj +++ b/src/Razor/Razor.Design/src/Microsoft.AspNetCore.Razor.Design.csproj @@ -35,7 +35,6 @@ - _BuildDependencyProjects;$(GenerateNuspecDependsOn) _BuildDependencyProjects;$(BuildDependsOn) @@ -92,7 +91,7 @@ - + diff --git a/src/Razor/Razor.Design/test/IntegrationTests/Microsoft.AspNetCore.Razor.Design.Test.csproj b/src/Razor/Razor.Design/test/IntegrationTests/Microsoft.AspNetCore.Razor.Design.Test.csproj index ed52a3b2b6..b27dca6270 100644 --- a/src/Razor/Razor.Design/test/IntegrationTests/Microsoft.AspNetCore.Razor.Design.Test.csproj +++ b/src/Razor/Razor.Design/test/IntegrationTests/Microsoft.AspNetCore.Razor.Design.Test.csproj @@ -13,12 +13,10 @@ true $(MSBuildProjectDirectory)\obj\BuildVariables.generated.cs - EnsureBuildVariablesGeneratedFile;$(CompileDependsOn) - @@ -35,8 +33,31 @@ - - + + + + + +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests +{ + internal static partial class BuildVariables + { + static partial void InitializeVariables() + { + _msBuildPath = @"$(MSBuildBinPath)\MSBuild.exe"%3B + } + } +} + + + + + +