Set NETCoreAppMaximumVersion to the current version in the branch
This commit is contained in:
Родитель
b46b5fa307
Коммит
3aa233dbd0
|
@ -11,5 +11,6 @@
|
|||
<BranchName>master</BranchName>
|
||||
<ContainerName>dotnet</ContainerName>
|
||||
<ChecksumContainerName>$(ContainerName)</ChecksumContainerName>
|
||||
<NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<Project>
|
||||
<Import Project="BranchInfo.props" />
|
||||
</Project>
|
|
@ -2,6 +2,7 @@ using Microsoft.DotNet.Cli.Build;
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace Microsoft.DotNet.CoreSetup.Test
|
||||
{
|
||||
|
@ -162,9 +163,15 @@ namespace Microsoft.DotNet.CoreSetup.Test
|
|||
{
|
||||
try
|
||||
{
|
||||
StringBuilder propsFile = new StringBuilder();
|
||||
|
||||
propsFile.AppendLine("<Project>");
|
||||
propsFile.AppendLine(" <Import Project=\"$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), TestProjects.props))\\TestProjects.props\" />");
|
||||
propsFile.AppendLine("</Project>");
|
||||
|
||||
// write an empty Directory.Build.props to ensure that msbuild doesn't pick up
|
||||
// the repo's root Directory.Build.props.
|
||||
File.WriteAllText(directoryBuildPropsPath, "<Project></Project>");
|
||||
File.WriteAllText(directoryBuildPropsPath, propsFile.ToString());
|
||||
}
|
||||
catch (IOException)
|
||||
{}
|
||||
|
|
Загрузка…
Ссылка в новой задаче