Skip to content

Disallow usage of $(NetCoreAppCurrent) in projects that don't exclude such configuration and generate a package #48311

@ViktorHofer

Description

@ViktorHofer

With 6.0 Preview 1 there were a few packages that unintentionally contain a net6.0 configuration:

Reason for that is that these packages use the $(NetCoreAppCurrent) msbuild property which maps to .NETCoreApp version which is currently in development (i.e. net6.0) instead of a fixed version which doesn't automatically rev forward.

What makes it tricky to prohibit the usage of $(NetCoreAppCurrent) in packages that don't exclude it and generate package is that this would need to happen before msbuild evaluation, as the $(NetCoreAppCurrent) token gets replaced with the property value.

cc @Anipik @ericstj

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions