Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .NET Core CLI commands #4381

Merged
merged 1 commit into from
Feb 10, 2016
Merged

Add .NET Core CLI commands #4381

merged 1 commit into from
Feb 10, 2016

Conversation

bricelam
Copy link
Contributor

Part of #3925

This commit puts a stake in the ground. I'm still getting assembly resolution errors locally that may or may not be related to CoreCLR/CLI issues. Most negative cases aren't handled very well. Etc. I'll continue to test and iterate on this, but I think it's at a good point to merge.

For reference, here's ye olde DNX Program.cs.

@@ -2,6 +2,8 @@
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="dotnet-cli" value="https://www.myget.org/F/dotnet-cli/api/v3/index.json" />
<add key="nugetbuild" value="https://www.myget.org/F/nugetbuild/api/v3/index.json" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Eilon @pranavkm @victorhurdugaci It might be a chicken-and-egg problem, but are we going to add the CLI packages to our feed?

Choose a reason for hiding this comment

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

For the xunit runner I actually manually pushed some CLI packages to our feed. If you need something from there, I think we should do the same thing as we do for CLR: gated-clone with some sort of verification.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup! They had some issues with their packaging which was why I was avoiding pulling their packages in, but I could set up the CoreCLR configuration to clone the CLI packages.

Choose a reason for hiding this comment

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

There's another problem. Since we don't always have the latest CLR, the packages in the dotnet-cli feed might require never versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure mismatched versions will be an issue. The common utility libraries are rather self-contained, so using different versions in different tools should be fine.

Choose a reason for hiding this comment

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

My worry is that you'll not be able to restore because the packages on the CLI feed reference a newer version of the CLR which is not part of their feed and we only have the older version on aspnetcidev/volatile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So what's the course of action here? I assume other tools are also starting to need these...

@smitpatel
Copy link
Contributor

👍

{
"version": "1.0.0-*",
"description": "Entity Framework Core Commands for .NET Core CLI.",
"repository": {

Choose a reason for hiding this comment

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

Not used anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like you added these in f2a1c5d. We're free to remove them now?

@lajones
Copy link
Contributor

lajones commented Jan 23, 2016

:shipit: As you mention more error handling would be good, but this is a great first step.

@bricelam bricelam merged commit 05a5ffd into dotnet:dev Feb 10, 2016
@bricelam bricelam deleted the ef branch February 10, 2016 17:31
@bricelam bricelam changed the title Add (non-working) .NET Core CLI commands Add .NET Core CLI commands Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants