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

Adds fallback folder for full framework projects. #1409

Merged
merged 3 commits into from
Jul 26, 2017

Conversation

livarcocc
Copy link
Contributor

Customer scenario

Fallback folders were not being set for full framework projects nor multi-tfm projects. Adds fallback folder for full framework projects by removing the condition on the project being netstandard or netcore. Also, sets RestoreAdditionalProjectFallbackFoldersExcludes that NuGet needs to aggregate over in order to remove fallback folders whenever a 1.x project is used.

Bugs this fixes:

Fixes #1389

Workarounds, if any

Don't use the offline cache. Instead, we will hit the web during restore for Multi-tfm projects.

Risk

Low

Performance impact

None.

Is this a regression from a previous update?

Yes.

Root cause analysis:

We were only setting the property for NuGet in the inner-loop.

How was the bug found?

Partner team.

@dotnet/dotnet-cli for review

@srivatsn for approval

@livarcocc livarcocc added this to the 2.0.0 milestone Jul 13, 2017
@srivatsn
Copy link
Contributor

Don't you need to target the 1.1 branch?

@livarcocc
Copy link
Contributor Author

@srivatsn No, we only have this for 2.0 CLI. For 1.0 packages, VS still carries its own offline feed.

// https://github.com/NuGet/Home/issues/5596 and https://github.com/dotnet/project-system/issues/2605
//[InlineData("netcoreapp2.0;net461", "multiTFM20app", false)]
//[InlineData("netcoreapp1.0;netcoreapp2.0", "multiTFM1020app", true)]
//[InlineData("netcoreapp1.0;net461", "multiTFM1046app", true)]
Copy link
Contributor

Choose a reason for hiding this comment

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

These can be enabled now, right?

Setting RestoreAdditionalProjectFallbackFoldersExcludes when the TFM is 1.x to prevent fallback folders from being used in that case. Note that NuGet will have to do the aggregation of these properties in order for this to work.
@nguerrera
Copy link
Contributor

@MattGertz for approval. The corresponding nuget change was approved.

@livarcocc livarcocc force-pushed the improve_fallback_folder branch from 77f0332 to ac3c196 Compare July 26, 2017 00:59
@livarcocc livarcocc merged commit 417b675 into dotnet:release/2.0.0 Jul 26, 2017
@livarcocc livarcocc deleted the improve_fallback_folder branch July 26, 2017 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants