Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Making Project Tools use the CLI shared runtime #4814

Merged
merged 4 commits into from
Nov 26, 2016

Conversation

livarcocc
Copy link

Making Project Tools use the CLI shared runtime if they have the prefercliruntime in the root of their package. This allows for project tools to not have to change when a new runtime comes up as long as they are compatible with the runtime that the CLI is using.

@piotrpMSFT @krwq @jgoshi

Copy link

@TheRealPiotrP TheRealPiotrP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test should be updated. I'd be satisfied if we at least capture the because of why the test proves what it proves. If you can easily find a non-RTM but named version of Microsoft.NetCore.App I'd love to use that as the test case Fx, but wouldn't lose much sleep if we can't...

new DotnetCommand()
.WithWorkingDirectory(testInstance.Root)
.ExecuteWithCapturedOutput("prefercliruntime")
.Should()

This comment was marked as spam.

.Should()
.Pass()
.And
.HaveStdOutContaining("Hello I prefer the cli runtime World!");;

This comment was marked as spam.

{
get
{
return new DirectoryInfo(Path.GetDirectoryName(GetDataFromAppDomain("FX_DEPS_FILE"))).Name;

This comment was marked as spam.

$"packagedcommandspecfactory: Looking for prefercliruntime file at `{preferCliRuntimePath}`");

return File.Exists(preferCliRuntimePath);
}

This comment was marked as spam.

@@ -17,7 +17,8 @@ namespace Microsoft.DotNet.Tests
{
public class GivenAProjectToolsCommandResolver : TestBase
{
private static readonly NuGetFramework s_toolPackageFramework = FrameworkConstants.CommonFrameworks.NetCoreApp10;
private static readonly NuGetFramework s_toolPackageFramework =
FrameworkConstants.CommonFrameworks.NetCoreApp10;

This comment was marked as spam.

{
var projectToolsCommandResolver = SetupProjectToolsCommandResolver();

var testInstance = TestAssetsManager

This comment was marked as spam.

This comment was marked as spam.

{
var projectToolsCommandResolver = SetupProjectToolsCommandResolver();

var testInstance = TestAssetsManager

This comment was marked as spam.

This comment was marked as spam.


result.Should().NotBeNull();

result.Args.Should().NotContain("-fx-version");

This comment was marked as spam.

This comment was marked as spam.

…ercliruntime in the root of their package. This allows for project tools to not have to change when a new runtime comes up as long as they are compatible with the runtime that the CLI is using.
…er structure and missing the version part of it.
@livarcocc
Copy link
Author

@dotnet-bot Test Debian8.2 x64 Debug Build
@dotnet-bot Test Ubuntu16.04 x64 Debug Build

@livarcocc
Copy link
Author

@MattGertz and @srivatsn for approval.

@livarcocc
Copy link
Author

@dotnet-bot Test CentOS7.1 x64 Debug Build

@TheRealPiotrP
Copy link

Ping @MattGertz @srivatsn for approval

@TheRealPiotrP
Copy link

@srivatsn @MattGertz

@livarcocc livarcocc merged commit 325b849 into dotnet:rel/1.0.0 Nov 26, 2016
@livarcocc livarcocc deleted the invoke_tool_cli_fx branch November 26, 2016 00:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants