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

[Workaround] Fallback folder workaround for multi tfm #1431

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, as a workaround for a fix we need from NuGet, use the TargetFrameworks to set the NuGet configuration, thus enabling fallback folders for multi-tfm projects.

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

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.
…or multi-tfm projects. The change is to run a contains from TargetFrameworks.
@livarcocc livarcocc added this to the 2.0.0 milestone Jul 20, 2017
@livarcocc
Copy link
Contributor Author

I validated these changes in VS and it was picking up the fallback folder and source appropriately.

@nguerrera
Copy link
Contributor

We don't need the workaround as the real fix in nuget got approved. :)

@nguerrera nguerrera closed this Jul 25, 2017
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.

3 participants