Skip to content

Question: why does publish pull binaries from $(IntermediateAssembly) instead of $(OutDir) #3236

Open
@shhsu

Description

@shhsu

Hi dotnet:

I am wondering why publish pull binaries from $(IntermediateAssembly) instead of $(OutDir)

<ResolvedFileToPublish Include="@(IntermediateAssembly)"

Background:
I created a VSTS pipeline that calls msbuild to build/sign/publish my application (publish to file). However, I am finding that a bunch of binaries in my publish directory is not signed.

After some investigations I have found out that all bits in my $(OutDir) are signed, but the files got copied to publish directory are not from $(OutDir), instead they are from obj\Release\ directory. After looking at the target file I finally found the line that indicates this behavior.

I have yet to find a good around for this issue. I was wondering why is the reason for this behavior and if there is a workaround for this.

thanks
Peter

Metadata

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