Skip to content

NuGetPackageRoot doesn't always have a trailing slash#33

Merged
sharwell merged 1 commit into
tunnelvisionlabs:masterfrom
jnm2:nuget_root_can_be_without_trailing_slash
Oct 1, 2019
Merged

NuGetPackageRoot doesn't always have a trailing slash#33
sharwell merged 1 commit into
tunnelvisionlabs:masterfrom
jnm2:nuget_root_can_be_without_trailing_slash

Conversation

@jnm2

@jnm2 jnm2 commented Sep 30, 2019

Copy link
Copy Markdown
Contributor

As evidenced by:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="globalPackagesFolder" value="packages" />
  </config>
</configuration>

MSBuild Structured Log Viewer:

image

image

The result is that all reference assemblies go silently unannotated:

AnnotateReferenceAssemblies:
Skipping target "AnnotateReferenceAssemblies" because it has no inputs.


<PropertyGroup>
<AnnotatedReferenceAssemblyDirectory Condition="'$(AnnotatedReferenceAssemblyDirectory)' == ''">$(NuGetPackageRoot)microsoft.netcore.app.ref\$(AnnotatedReferenceAssemblyVersion)\ref\netcoreapp3.0\</AnnotatedReferenceAssemblyDirectory>
<AnnotatedReferenceAssemblyDirectory Condition="'$(AnnotatedReferenceAssemblyDirectory)' == ''">$(NuGetPackageRoot)\microsoft.netcore.app.ref\$(AnnotatedReferenceAssemblyVersion)\ref\netcoreapp3.0\</AnnotatedReferenceAssemblyDirectory>

@jnm2 jnm2 Sep 30, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Everywhere else $(NuGetPackageRoot) appeared in the preprocessed project, it was followed with a trailing slash.

@sharwell
sharwell merged commit 681877d into tunnelvisionlabs:master Oct 1, 2019
@jnm2
jnm2 deleted the nuget_root_can_be_without_trailing_slash branch October 1, 2019 01:12
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