Fixes: #575
Tye was missing code to set DAPR_HTTP_PORT when launching a project.
This variable is normally set by dapr when using `dapr run ...` to
launch a project. However Tye doesn't use `dapr run ...` so we need to
emulate this behavior.
We already had code to set up DAPR_GRPC_PORT which is used by the
`DaprClient` class. DAPR_HTTP_PORT is used by the actor runtime in
addition to behing available for arbitrary use (as reported in the
issue).
* Update dependencies from https://github.com/dotnet/arcade build 20200917.6
Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.SwaggerGenerator.MSBuild
From Version 5.0.0-beta.20465.7 -> To Version 5.0.0-beta.20467.6
* Update dependencies from https://github.com/dotnet/arcade build 20200921.1
Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.SwaggerGenerator.MSBuild
From Version 5.0.0-beta.20465.7 -> To Version 5.0.0-beta.20471.1
* Update dependencies from https://github.com/dotnet/arcade build 20200922.36
Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.SwaggerGenerator.MSBuild
From Version 5.0.0-beta.20465.7 -> To Version 5.0.0-beta.20472.36
* Update dependencies from https://github.com/dotnet/arcade build 20200924.4
Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.SwaggerGenerator.MSBuild
From Version 5.0.0-beta.20465.7 -> To Version 5.0.0-beta.20474.4
* Fix nullability issues
* Add more debug log
* Parse tfm name
* Mark testing packages as non-shipping
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: John Luo <johluo@microsoft.com>
* Use out-of-proc MSBuild evaluation
This allows for support for new SDKs/TFMs without needing tye to target those TFMs
* Combine restore and metadata evaluation
* Batch process projects
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20426.6 to 5.0.0-beta.20427.5
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20426.6 to 5.0.0-beta.20427.5
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20426.6 to 5.0.0-beta.20427.5
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20426.6 to 5.0.0-beta.20427.5
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20426.6 to 5.0.0-beta.20427.5
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20426.1 to 5.0.0-beta.20426.6
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20426.1 to 5.0.0-beta.20426.6
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20426.1 to 5.0.0-beta.20426.6
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20426.1 to 5.0.0-beta.20426.6
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20426.1 to 5.0.0-beta.20426.6
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20424.23 to 5.0.0-beta.20426.1
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20424.23 to 5.0.0-beta.20426.1
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20424.23 to 5.0.0-beta.20426.1
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20424.23 to 5.0.0-beta.20426.1
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20424.23 to 5.0.0-beta.20426.1
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20411.8 to 5.0.0-beta.20419.21
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20411.8 to 5.0.0-beta.20419.21
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20411.8 to 5.0.0-beta.20419.21
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20411.8 to 5.0.0-beta.20419.21
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20411.8 to 5.0.0-beta.20419.21
* 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.
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20407.3 to 5.0.0-beta.20411.8
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20407.3 to 5.0.0-beta.20411.8
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20407.3 to 5.0.0-beta.20411.8
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20407.3 to 5.0.0-beta.20411.8
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20407.3 to 5.0.0-beta.20411.8
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20374.1 to 5.0.0-beta.20407.3
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20374.1 to 5.0.0-beta.20407.3
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20374.1 to 5.0.0-beta.20407.3
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20374.1 to 5.0.0-beta.20407.3
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20374.1 to 5.0.0-beta.20407.3
[master] Update dependencies from dotnet/arcade
- Updates:
- Microsoft.DotNet.Build.Tasks.Feed: from 5.0.0-beta.20330.3 to 5.0.0-beta.20374.1
- Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20330.3 to 5.0.0-beta.20374.1
- Microsoft.DotNet.SignTool: from 5.0.0-beta.20330.3 to 5.0.0-beta.20374.1
- Microsoft.DotNet.SwaggerGenerator.MSBuild: from 5.0.0-beta.20330.3 to 5.0.0-beta.20374.1
- Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20330.3 to 5.0.0-beta.20374.1