Skip to content

PackageReference not importing the props file dropped into the NuGet package's build folder #1250

Closed
@mavasani

Description

We have a PackageReference to Microsoft.Net.Compilers in the roslyn analyzers repo for the toolset compiler NuGet package (see here) and this ensures this package is downloaded on restore. However, this package contains a build folder with a Microsoft.Net.Compilers.props file, and I would have assumed this gets automatically imported into a project that has this PackageReference. That doesn’t seem to be happening and the repo is still being built with the compilers toolset that ships with VS in the box. If I explicitly add the following Import to our common targets, then it does cause the correct toolset compiler to be used:

<Import Project="<%USER_FOLDER%>\.nuget\packages\microsoft.net.compilers\2.3.0-beta2-61719-05\build\Microsoft.Net.Compilers.props" />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions