Skip to content

Update from 3.3.0 to 3.3.1 causes build server error #40

@lilmidnit

Description

@lilmidnit

I am using net462 and web application.

When packaging a web application using PackageReference and msbuild - it attemps to copy files to a temp location for deploy and it thinks it should copy the App_Start/Ninject.Web.Common.cs but it also thinks it should delete it. So it deletes it from the nuget folder, then later it tries to copy it to the deploy folder based on the file list it generated earlier.

This is all defined in Microsoft.Web.Publishing.targets

<!--Force Copy Of all file to the $(WPPAllFilesInSingleFolder) if needed-->
<CopyPipelineFiles PipelineItems="@(FilesForPackagingFromProject)"
                       SourceDirectory="$(WebPublishPipelineProjectDirectory)"
                       TargetDirectory="$(WPPAllFilesInSingleFolder)"
                       SkipMetadataExcludeTrueItems="True"
                       UpdateItemSpec="True"
                       DeleteItemsMarkAsExcludeTrue ="True"
                   Condition="'@(FilesForPackagingFromProject)' != ''">
  <Output TaskParameter="ResultPipelineItems" ItemName="_FilesForPackagingFromProjectTempory"/>
</CopyPipelineFiles>

Perhaps the bug is in the targets - but I had to roll back to 3.3.0 as I havent figured out a workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions