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

Allow compileTimeTarget.Libraries.Count == _runtimeTarget.Libraries.Count #2504

Closed
wants to merge 1 commit into from

Conversation

cshung
Copy link
Member

@cshung cshung commented Aug 29, 2018

I am creating this pull request as an attempt to fix issue #2503.

I am not sure what is the underlying rationale to requires

compileTimeTarget.Libraries.Count **strictly ** less than _runtimeTarget.Libraries.Count

So I relaxed the condition to allow equals as well.

@cshung
Copy link
Member Author

cshung commented Aug 29, 2018

@nguerrera

@nguerrera
Copy link
Contributor

As demonstrated by the failed test, this isn't a valid change. We are catching the case where you've specified a RID and haven't gotten any RID specific assets. The common case for this is a typo in the RID. Without this check, you just get a self contained app without any runtime bits.

See also @dsplaisted's comment on the issue. Let's first understand why you don't expect any runtime specific assets in your case with RID set and then we can discuss the right change.

@nguerrera nguerrera closed this Aug 30, 2018
@nguerrera
Copy link
Contributor

This change is also equivalent to removing the error unconditionally because the runtime library set is never a strict subset of the compile time library set.

@cshung cshung deleted the dev/andrewau/2503 branch September 7, 2018 03:34
GangWang01 pushed a commit to GangWang01/sdk that referenced this pull request Jun 7, 2022
* fixes dotnet/templating dotnet#2503 dotnet/templating dotnet#2014:
- corrects error message when value provided for parameter is incorrect: it should show the input paramater as enterd by user and not canonical name
- when  when value provided for parameter is incorrect: do not show generic help and help for template, just error message
GangWang01 pushed a commit to GangWang01/sdk that referenced this pull request Jul 11, 2022
* fixes dotnet/templating dotnet#2503 dotnet/templating dotnet#2014:
- corrects error message when value provided for parameter is incorrect: it should show the input paramater as enterd by user and not canonical name
- when  when value provided for parameter is incorrect: do not show generic help and help for template, just error message
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.

2 participants