We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a project looking like this:
<Project Sdk="MSBuild.Sdk.Extras"> <PropertyGroup> <ExtrasBuildEachRuntimeIdentifier>true</ExtrasBuildEachRuntimeIdentifier> <IsPackable>true</IsPackable> <NoWarn>$(NoWarn);NU5131</NoWarn> <RuntimeIdentifiers>@(SupportedRuntimes)</RuntimeIdentifiers> <TargetFrameworks>net6.0</TargetFrameworks> </PropertyGroup> <ItemGroup> <ReferenceAssemblyProjectReference Include="../ref/runtime.ref.csproj" /> </ItemGroup> </Project>
It builds/packs fine on its own.
I reference it from another project like this:
<ProjectReference Include="../runtime/src/runtime.src.csproj" SkipGetTargetFrameworkProperties="true" ReferenceOutputAssembly="false" />
However, running dotnet pack from this project results in:
dotnet pack
runtime.src.csproj : error MSB4057: The target "GetCopyToPublishDirectoryItems" does not exist in the project.
A workaround I'm using for now is adding this at the bottom of the first project:
<Target Name="GetCopyToPublishDirectoryItems" />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a project looking like this:
It builds/packs fine on its own.
I reference it from another project like this:
However, running
dotnet pack
from this project results in:A workaround I'm using for now is adding this at the bottom of the first project:
The text was updated successfully, but these errors were encountered: