Skip to content

Conversation

@KevinRansom
Copy link
Contributor

  1. The #r "nuget" has an issue, when the referenced assembly is a ref assembly.
  2. The #r "nuget" package root code was unable to discover package roots for dependent assemblies

This PR contains some black belt Msbuild Fu that fixes both. As well as a test case.

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

I can't say I understand the MSBuild target that's written in there, but I understand the test and it is a good one.

<IsPackable>false</IsPackable>
<!-- Temporary fix some sdks, shipped internally with broken parameterization -->
<FSharpCoreImplicitPackageVersion Condition=""'$(FSharpCoreImplicitPackageVersion)' == '{{FSharpCoreShippedPackageVersion}}'"">4.7.0</FSharpCoreImplicitPackageVersion>
Copy link
Member

Choose a reason for hiding this comment

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

This isn't going to do what you think. At this point you're inside a string in a .fs file; you need to have already computed the variable expansion {{FSharpCoreShippedPackageVersion}}.

@KevinRansom KevinRansom merged commit d2158a1 into dotnet:master Jan 22, 2020
@KevinRansom KevinRansom deleted the fixnugetrefs branch January 31, 2020 21:39
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* Fix nuget and ref assemblies

* Packaging fixes

* tweaks

* use substring rather than remove

* Removed unused md

* -1 means not found
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.

4 participants