File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
src/NerdBank.GitVersioning.Tests Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 33using System . Linq ;
44using System . Text ;
55using System . Threading . Tasks ;
6+ using Microsoft . Build . Locator ;
67using Nerdbank . GitVersioning . Tasks ;
78using Xunit ;
89
910namespace NerdBank . GitVersioning . Tests
1011{
1112 public class AssemblyInfoTest
1213 {
14+ public AssemblyInfoTest ( )
15+ {
16+ MSBuildLocator . RegisterDefaults ( ) ;
17+ }
18+
1319 [ Fact ]
1420 public void FSharpGenerator ( )
1521 {
Original file line number Diff line number Diff line change 1414using Microsoft . Build . Evaluation ;
1515using Microsoft . Build . Execution ;
1616using Microsoft . Build . Framework ;
17+ using Microsoft . Build . Locator ;
1718using Microsoft . CodeAnalysis ;
1819using Microsoft . CodeAnalysis . CSharp ;
1920using Microsoft . CodeAnalysis . CSharp . Syntax ;
@@ -46,9 +47,15 @@ public class BuildIntegrationTests : RepoTestBase
4647 } ;
4748 private Random random ;
4849
50+ static BuildIntegrationTests ( )
51+ {
52+ MSBuildLocator . RegisterDefaults ( ) ;
53+ }
54+
4955 public BuildIntegrationTests ( ITestOutputHelper logger )
5056 : base ( logger )
5157 {
58+
5259 int seed = ( int ) DateTime . Now . Ticks ;
5360 this . random = new Random ( seed ) ;
5461 this . Logger . WriteLine ( "Random seed: {0}" , seed ) ;
Original file line number Diff line number Diff line change 3333 <PackageReference Include =" System.Collections.Immutable" Version =" 1.5.0" />
3434 <PackageReference Include =" Microsoft.Build" Version =" 15.1.548" ExcludeAssets =" runtime" />
3535 <PackageReference Include =" Microsoft.Build.Utilities.Core" Version =" 15.1.548" ExcludeAssets =" runtime" />
36+ <PackageReference Include =" Microsoft.Build.Locator" Version =" 1.2.2" />
3637 <PackageReference Include =" System.Threading.Tasks.Dataflow" Version =" 4.9.0" />
3738 <PackageReference Include =" Xunit.Combinatorial" Version =" 1.2.7" />
3839 <PackageReference Include =" xunit" Version =" 2.4.1" />
You can’t perform that action at this time.
0 commit comments