зеркало из https://github.com/dotnet/tye.git
a4cf135c08
* Fixed issue #620 * Produce a useful error message if the path of a project file is incorrect in tye.yaml. * Added a test. * Fixed test on Linux and OSX. * Check full exception message in test and fixed test name. * More deterministic behavior considering directory check and test execution. Moved directory check one level higher from EnsureMSBuildRegistered() to the caller ReadProjectDetailsAsync(). This means that this code is always executed. In EnsureMSBuildRegistered() it was only executed once per proces because of the static field "registered". The placement of the check after evaluation of the the field "registered" was the reason why the test WrongProjectPathProducesCorrectErrorMessage worked when executed alone but not when any other test that called EnsureMSBuildRegistered() was executed before. With this change the directory check is always executed now, even if the EnsureMSBuildRegistered() was already executed successfully. But the performance impact should not be significant while the type of generated error message is more deterministic and not dependent on execution order. |
||
---|---|---|
.. | ||
E2ETest | ||
Microsoft.Tye.Extensions.Configuration.Tests | ||
Test.Infrastructure | ||
UnitTests | ||
Directory.Build.props |