File tree 4 files changed +5
-3
lines changed
Build.UnitTests/Evaluation
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ stages:
57
57
cloudBuildResourceName : ComponentBuildUnderTest
58
58
testLabPoolName : VS-Platform # The test lab pool to run your tests in
59
59
testMachineCleanUpStrategy : ${{parameters.testMachineCleanUpStrategy}}
60
- testMachineImageName : Windows-11-Enterprise-23H2
61
60
visualStudioSigning : Test
62
61
variables :
63
62
- name : branchName # The branch in the VS repo the bootstrapper was based on
Original file line number Diff line number Diff line change @@ -933,6 +933,7 @@ This import was added implicitly because the Project element's Sdk attribute spe
933
933
}
934
934
935
935
[ Fact ]
936
+ [ ActiveIssue ( "https://github.com/dotnet/msbuild/issues/11498" ) ]
936
937
public void SdkResolverItemsAndPropertiesAreInPreprocessedOutput ( )
937
938
{
938
939
using ( TestEnvironment env = TestEnvironment . Create ( ) )
Original file line number Diff line number Diff line change @@ -329,6 +329,8 @@ public override string Condition
329
329
/// </summary>
330
330
public ICollection < ProjectImportElement > Imports => new ReadOnlyCollection < ProjectImportElement > ( GetAllChildrenOfType < ProjectImportElement > ( ) ) ;
331
331
332
+ internal bool IsEphemeral => _isEphemeral ;
333
+
332
334
/// <summary>
333
335
/// Get a read-only collection of the child property groups, if any.
334
336
/// Does not include any that may not be at the root, i.e. inside Choose elements.
Original file line number Diff line number Diff line change @@ -2257,7 +2257,7 @@ public override IList<ResolvedImport> Imports
2257
2257
2258
2258
foreach ( ResolvedImport import in _data . ImportClosure )
2259
2259
{
2260
- if ( import . ImportingElement != null ) // Exclude outer project itself
2260
+ if ( import . ImportingElement != null && ! import . ImportedProject . IsEphemeral ) // Exclude outer project itself and SDK-resolver synthesized imports
2261
2261
{
2262
2262
imports . Add ( import ) ;
2263
2263
}
@@ -2280,7 +2280,7 @@ public override IList<ResolvedImport> ImportsIncludingDuplicates
2280
2280
2281
2281
foreach ( var import in _data . ImportClosureWithDuplicates )
2282
2282
{
2283
- if ( import . ImportingElement != null ) // Exclude outer project itself
2283
+ if ( import . ImportingElement != null && ! import . ImportedProject . IsEphemeral ) // Exclude outer project itself and SDK-resolver synthesized imports
2284
2284
{
2285
2285
imports . Add ( import ) ;
2286
2286
}
You can’t perform that action at this time.
0 commit comments