Repository navigation
Closed
Description
Repro: .\build.cmd -vs System.Text.RegularExpressions
Run a test in the Test Explorer and see the errors in the Test Explorer Output Window:
[4/7/2020 11:05:23.856 PM] ---------- Starting test run ----------
[4/7/2020 11:05:23.875 PM] TelemetrySession: Creating the event: VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection
[4/7/2020 11:05:23.875 PM] Event:VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection key: VS.UnitTest.TestWindow.RunSettingsProvider.UserFile value:False
[4/7/2020 11:05:23.875 PM] Event:VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection key: VS.UnitTest.TestWindow.RunSettingsProvider.SolutionFile value:False
[4/7/2020 11:05:23.875 PM] Event:VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection key: VS.UnitTest.TestWindow.RunSettingsProvider.AutoDetect value:False
[4/7/2020 11:05:24.059 PM] TelemetrySession: Creating the event: VS/UnitTest/TestWindow/Ext/RunSettingsService
[4/7/2020 11:05:24.059 PM] Event:VS/UnitTest/TestWindow/Ext/RunSettingsService key: VS.UnitTest.TestWindow.RunSettingsService.Name value:VSTest Run Configuration
[4/7/2020 11:05:24.060 PM] TelemetrySession: Creating the event: VS/UnitTest/TestWindow/Ext/RunSettingsService
[4/7/2020 11:05:24.060 PM] Event:VS/UnitTest/TestWindow/Ext/RunSettingsService key: VS.UnitTest.TestWindow.RunSettingsService.Name value:Fakes
[4/7/2020 11:05:24.076 PM] TelemetrySession: Creating the event: VS/UnitTest/TestWindow/Ext/RunSettingsService
[4/7/2020 11:05:24.076 PM] Event:VS/UnitTest/TestWindow/Ext/RunSettingsService key: VS.UnitTest.TestWindow.RunSettingsService.Name value:Dynamic Code Coverage
[4/7/2020 11:05:24.077 PM] TelemetrySession: Creating the event: VS/UnitTest/TestWindow/Ext/RunSettings
[4/7/2020 11:05:24.077 PM] Event:VS/UnitTest/TestWindow/Ext/RunSettings key: VS.UnitTest.TestWindow.RunSettings.Services value:3
[4/7/2020 11:05:24.079 PM] TelemetrySession: Creating the event: VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection
[4/7/2020 11:05:24.079 PM] Event:VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection key: VS.UnitTest.TestWindow.RunSettingsProvider.ProjectFileCount value:0
[4/7/2020 11:05:24.079 PM] Event:VS/UnitTest/TestWindow/RunSettingsProvider/FileSelection key: VS.UnitTest.TestWindow.RunSettingsProvider.ContainerCount value:1
[4/7/2020 11:05:24.130 PM] Some tests from the test run selection will be executed by name.
[4/7/2020 11:05:24.265 PM] Tests run settings for C:\git\runtime3\artifacts\bin\System.Text.RegularExpressions.Tests\Debug\System.Text.RegularExpressions.Tests.dll:
<RunSettings>
<RunConfiguration>
<ResultsDirectory>C:\git\runtime3\src\libraries\System.Text.RegularExpressions\TestResults</ResultsDirectory>
<SolutionDirectory>C:\git\runtime3\src\libraries\System.Text.RegularExpressions\</SolutionDirectory>
<CollectSourceInformation>False</CollectSourceInformation>
</RunConfiguration>
</RunSettings>.
[4/7/2020 11:05:24.555 PM] Trying to update view -962344839
[4/7/2020 11:05:24.555 PM] Updating view -962344839
[4/7/2020 11:05:24.558 PM] Updating view -962344839
[4/7/2020 11:05:24.576 PM] UpdateSummary Detail Unchanged: SKIPPED
[4/7/2020 11:05:24.834 PM] UpdateSummary Detail Unchanged: SKIPPED
[4/7/2020 11:05:24.938 PM] Logging TestHost Diagnostics in file: C:\Users\vihofer\AppData\Local\Temp\TestPlatformLogs\15428_04_07_2020_23_04_18\logs.host.20-04-07_23-05-24_50967_6.txt
[4/7/2020 11:05:25.986 PM] Could not find file C:\git\runtime3\artifacts\bin\System.Text.RegularExpressions.Tests\Debug\System.Text.RegularExpressions.Tests.dll.
[4/7/2020 11:05:25.987 PM] None of the specified source(s) 'C:\git\runtime3\artifacts\bin\System.Text.RegularExpressions.Tests\Debug\System.Text.RegularExpressions.Tests.dll' is valid. Fix the above errors/warnings and then try again.
[4/7/2020 11:05:26.371 PM] ========== Test run finished: 0 Tests run in 2.5 sec (0 Passed, 0 Failed, 0 Skipped) ==========
Additional logs indicate that the OutputPath is read incorrectly:
===
Id: 2c58640b-5bed-4e83-9554-cd2b9762643f
ProjectFilePath: C:\git\runtime3\src\libraries\System.Text.RegularExpressions\src\System.Text.RegularExpressions.csproj
DefaultOutputPath: C:\git\runtime3\artifacts\bin\System.Text.RegularExpressions\Debug\System.Text.RegularExpressions.dll
DefaultTargetFramework: net5.0
ProjectName: System.Text.RegularExpressions
Capabilities: UseFileGlobs,AppDesigner,AssemblyReferences,Managed,SupportAvailableItemName,FolderPublish,CPS,ProjectConfigurationsDeclaredDimensions,RelativePathDerivedDefaultNamespace,OpenProjectFile,UserSourceItems,VisualStudioWellKnownOutputGroups,DynamicDependentFile,NoGeneralDependentFileIcon,CSharp,IntegratedConsoleDebugging,SharedProjectReferences,Publish,EditAndContinue,Microsoft.VisualStudio.ProjectSystem.RetailRuntime,AllTargetOutputGroups,SingleFileGenerators,ProjectReferences,HostSetActiveProjectConfiguration,ClassDesigner,PackageReferences,GenerateDocumentationFile,HandlesOwnReload,RunningInVisualStudio,WinRTReferences,Pack,LaunchProfiles,SharedImports,LanguageService,PersistDesignTimeDataOutOfProject,DependenciesTree,DeclaredSourceItems,PreserveFormatting,.NET,DataSourceWindow,OutputGroups,COMReferences,ProjectImportsTree
IsAppContainer: False
IsCpsProject: True
IsMiscellaneous: False
HasTestContainerCapability: False
IsCSharpOrVBProject: True
This likely broke with 9a14b86.
Removing the DesignTimeBuild condition in
runtime/src/libraries/Directory.Build.props
Line 173 in c4507d7
| <Import Project="$(MSBuildThisDirectory)targetframework.props" Condition="'$(DesignTimeBuild)' != 'true'" /> |
Activity
ViktorHofer commentedon Apr 7, 2020
@Anipik I shared the offline conversation with the Test Explorer team with you. As I'll be out the next days please prioritize this issue. Thanks 👍