dotnet / buildtools

Build tools that are necessary for building the .NET Core projects
477 stars 240 forks source link

A netcoreapp2.1 target binary can't have a build-only depenency on a netcoreapp3.0 dependency, but should be able to #2263

Closed jhudsoncedaron closed 5 years ago

jhudsoncedaron commented 5 years ago

We have:

<PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
</ProperyGroup>

<ItemGroup>
    <ProjectReference Include="..\CreateAssemblyInfo\CreateAssemblyInfo.csproj" Properties="RuntimeIdentifier=">
         <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
     </ProjectReference>
</ItemGroup>

The netcoreapp3.0 assembly is a tooling dependency. This reference is actually fine and everything would work if the check were knocked out.

jhudsoncedaron commented 5 years ago

My that was inane. Need <SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> which appears to be undocumented.