File tree Expand file tree Collapse file tree 5 files changed +21
-4
lines changed
Workspaces/Core/MSBuild.BuildHost Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 3434 <PackageVersion Include =" Microsoft.Build" Version =" 17.3.4" />
3535 <PackageVersion Include =" Microsoft.Build.Framework" Version =" 17.3.4" />
3636 <PackageVersion Include =" Microsoft.Build.Tasks.Core" Version =" 17.3.4" />
37+ <PackageVersion Include =" Microsoft.Build.Utilities.Core" Version =" 17.3.4" />
3738 </ItemGroup >
3839
3940 <ItemGroup Condition =" '$(DotnetBuildFromSource)' != 'true' and '$(TargetFramework)' != 'net472'" >
4041 <PackageVersion Include =" Microsoft.Build" Version =" 17.7.2" />
4142 <PackageVersion Include =" Microsoft.Build.Framework" Version =" 17.7.2" />
4243 <PackageVersion Include =" Microsoft.Build.Tasks.Core" Version =" 17.7.2" />
44+ <PackageVersion Include =" Microsoft.Build.Utilities.Core" Version =" 17.7.2" />
4345 </ItemGroup >
4446
4547 <ItemGroup Condition =" '$(DotnetBuildFromSource)' != 'true' and '$(TargetFramework)' == 'net472'" >
4648 <PackageVersion Include =" Microsoft.Build" Version =" 17.10.4" />
4749 <PackageVersion Include =" Microsoft.Build.Framework" Version =" 17.10.4" />
4850 <PackageVersion Include =" Microsoft.Build.Tasks.Core" Version =" 17.10.4" />
51+ <PackageVersion Include =" Microsoft.Build.Utilities.Core" Version =" 17.10.4" />
4952 </ItemGroup >
5053
5154 <ItemGroup >
Original file line number Diff line number Diff line change 66 https://devdiv.pkgs.visualstudio.com/_packaging/Engineering/nuget/v3/index.json;
77 https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;
88 </RestoreSources >
9+ <RestoreSources >
10+ $(RestoreSources);
11+ https://pkgs.dev.azure.com/devdiv/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json
12+ </RestoreSources >
913 </PropertyGroup >
1014
11- <ItemGroup >
12- <!-- Add explicit Newtonsoft.Json dependency to override the implicit 10.0.1 version brought in by Microsoft.DevDiv.Optimization.Data.PowerShell -->
13- <PackageReference Include =" Newtonsoft.Json" Version =" $(NewtonsoftJsonVersion)" Condition =" '$(UsingToolVisualStudioIbcTraining)' == 'true'" />
14- <PackageReference Include =" Microsoft.DevDiv.Optimization.Data.PowerShell" Version =" $(MicrosoftDevDivOptimizationDataPowerShellVersion)" ExcludeAssets =" all" Condition =" '$(UsingToolVisualStudioIbcTraining)' == 'true'" />
15+ <ItemGroup Condition =" '$(UsingToolVisualStudioIbcTraining)' == 'true'" >
16+ <!-- Add explicit top-level dependencies to override the implicit versions brought in by Microsoft.DevDiv.Optimization.Data.PowerShell -->
17+ <PackageReference Include =" Newtonsoft.Json" Version =" $(NewtonsoftJsonVersion)" />
18+ <PackageReference Include =" Microsoft.IdentityModel.JsonWebTokens" Version =" $(MicrosoftIdentityModelJsonWebTokensVersion)" />
19+ <PackageReference Include =" Microsoft.DevDiv.Optimization.Data.PowerShell" Version =" $(MicrosoftDevDivOptimizationDataPowerShellVersion)" ExcludeAssets =" all" />
1520 </ItemGroup >
1621
1722</Project >
Original file line number Diff line number Diff line change 1515 <Reference Include =" System.Xml" />
1616 <Reference Include =" System.Xml.Linq" />
1717 <Reference Include =" WindowsBase" />
18+ <PackageReference Include =" Microsoft.Build" ExcludeAssets =" Runtime" PrivateAssets =" All" />
19+ <PackageReference Include =" Microsoft.Build.Framework" ExcludeAssets =" Runtime" PrivateAssets =" All" />
20+ <PackageReference Include =" Microsoft.Build.Tasks.Core" ExcludeAssets =" Runtime" PrivateAssets =" All" />
21+ <PackageReference Include =" Microsoft.Build.Locator" PrivateAssets =" All" />
22+ <PackageReference Include =" Microsoft.Build.Utilities.Core" ExcludeAssets =" Runtime" PrivateAssets =" All" />
1823 <PackageReference Include =" Newtonsoft.Json" />
1924 <PackageReference Include =" System.Collections.Immutable" />
2025 <PackageReference Include =" System.Reflection.Metadata" />
Original file line number Diff line number Diff line change 88using System . Collections . Generic ;
99using System . IO ;
1010using System . Linq ;
11+ using Microsoft . Build . Locator ;
1112using Mono . Options ;
1213
1314namespace BuildBoss
@@ -30,6 +31,8 @@ internal static int Main(string[] args)
3031
3132 private static bool MainCore ( string [ ] args )
3233 {
34+ VisualStudioInstance instance = MSBuildLocator . RegisterDefaults ( ) ;
35+ Console . WriteLine ( $ "Version: { instance . Version } ") ;
3336 string repositoryDirectory = null ;
3437 string configuration = "Debug" ;
3538 string primarySolution = null ;
Original file line number Diff line number Diff line change 2727 <PackageReference Include =" Microsoft.Build" VersionOverride =" 17.3.4" ExcludeAssets =" Runtime" PrivateAssets =" All" />
2828 <PackageReference Include =" Microsoft.Build.Framework" VersionOverride =" 17.3.4" ExcludeAssets =" Runtime" />
2929 <PackageReference Include =" Microsoft.Build.Tasks.Core" VersionOverride =" 17.3.4" ExcludeAssets =" Runtime" PrivateAssets =" All" />
30+ <PackageReference Include =" Microsoft.Build.Utilities.Core" VersionOverride =" 17.3.4" ExcludeAssets =" Runtime" PrivateAssets =" All" />
3031 <PackageReference Include =" Microsoft.Build.Locator" PrivateAssets =" All" />
3132 <PackageReference Include =" System.Text.Json" />
3233 <PackageReference Include =" System.CommandLine" />
You can’t perform that action at this time.
0 commit comments