Skip to content

Commit b8d175f

Browse files
authored
Update msbuild for 2.1 (#382)
* Remove old msbuild patches and update build command for new msbuild changes. * Update the msbuild build command and SHA to work with msbuild updates. * Include msbuild in known-good project. * Move latest commit to its own property
1 parent 4a2377a commit b8d175f

7 files changed

+5
-1603
lines changed

patches/msbuild/0001-Add-projects-using-the-new-dotnet-sdk.patch

Lines changed: 0 additions & 1311 deletions
This file was deleted.

patches/msbuild/0002-Fix-version-information.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.

patches/msbuild/0003-Use-nuspec-to-package-Microsoft.Build.Runtime.patch

Lines changed: 0 additions & 157 deletions
This file was deleted.

patches/msbuild/0004-Remove-references-that-don-t-apply-to-NetCore-projec.patch

Lines changed: 0 additions & 90 deletions
This file was deleted.

repos/known-good.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RepositoryReference Include="standard" />
2020
<RepositoryReference Include="xliff-tasks" />
2121

22-
<!--RepositoryReference Include="msbuild" /-->
22+
<RepositoryReference Include="msbuild" />
2323
<!--RepositoryReference Include="clicommandlineparser" /-->
2424
<!--RepositoryReference Include="roslyn" /-->
2525

repos/msbuild.proj

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,12 @@
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))/dir.props" />
44
<PropertyGroup>
5-
<SolutionToBuild>$(ProjectDirectory)/NetCore.sln</SolutionToBuild>
6-
<PackagesOutput>$(ProjectDirectory)/bin/$(Configuration)/packages</PackagesOutput>
7-
<BuildCommand>$(DotnetToolCommand) pack $(SolutionToBuild) /p:Configuration=$(Configuration) /p:PackageOutputPath=$(PackagesOutput)</BuildCommand>
5+
<LatestCommit>71eedf98975925fa7f2f3e669d19ba6c81391048</LatestCommit>
6+
<PackagesOutput>$(ProjectDirectory)/artifacts/$(Configuration)/packages</PackagesOutput>
7+
<BuildCommand>$(ProjectDirectory)build/build$(ShellExtension) build -DotNetBuildFromSource -DotNetCoreSdkDir $(DotNetCliToolDir) -bootstraponly -skiptests -pack -configuration $(Configuration) /p:DisableNerdbankVersioning=true /p:GitHeadSha=$(LatestCommit)</BuildCommand>
88
<RepoApiImplemented>false</RepoApiImplemented>
99
<OrchestratedManifestBuildName>Microsoft/msbuild</OrchestratedManifestBuildName>
1010
</PropertyGroup>
1111

12-
<Target Name="RestoreSolution"
13-
BeforeTargets="Build">
14-
<Exec Command="$(DotnetToolCommand) restore $(SolutionToBuild) $(RedirectRepoOutputToLog)"
15-
WorkingDirectory="$(ProjectDirectory)"
16-
EnvironmentVariables="@(EnvironmentVariables)" />
17-
</Target>
18-
19-
<!-- patch(1) doesn't understand binary diffs so we have to copy
20-
the file ourselves -->
21-
<Target Name="CopyStrongNameKey"
22-
BeforeTargets="Build">
23-
<Copy SourceFiles="$(ToolsDir)MSFT.snk"
24-
DestinationFiles="$(ProjectDirectory)/build/MSFT.snk" />
25-
</Target>
2612
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))/dir.targets" />
2713
</Project>

src/msbuild

0 commit comments

Comments
 (0)