Build issues after updating to visual studio 15.8.5

后端 未结 1 443
旧巷少年郎
旧巷少年郎 2021-01-16 06:52

Does anyone have experience with this error?

Severity Code Description Project File Line Suppression State Error The item \"C:\\Prog

相关标签:
1条回答
  • 2021-01-16 07:29

    I've fixed this error by removing the following code in my .csproj file.

    <Target Name="FixClickOnceDependencies" BeforeTargets="_DeploymentComputeClickOnceManifestInfo">
    <ItemGroup>
      <_noCopyRefs Include="@(ReferencePath)" Condition="'%(ReferencePath.Private)' == 'false'" />
      <_noCopyRefsByFileName Include="@(_noCopyRefs->'%(FileName)')">
        <OriginalItem>%(Identity)</OriginalItem>
      </_noCopyRefsByFileName>
      <_libByFileName Include="@(ReferenceCopyLocalPaths->'%(FileName)')">
        <OriginalItem>%(Identity)</OriginalItem>
      </_libByFileName>
      <_overlappingRefByFileName Include="@(_noCopyRefsByFileName)" Condition="'@(_noCopyRefsByFileName)' == '@(_libByFileName)' AND '%(Identity)' != ''" />
      <_overlappingLibByFileName Include="@(_libByFileName)" Condition="'@(_noCopyRefsByFileName)' == '@(_libByFileName)' AND '%(Identity)' != ''" />
      <_overlappingRef Include="@(_overlappingRefByFileName->'%(OriginalItem)')" />
      <_overlappingLib Include="@(_overlappingLibByFileName->'%(OriginalItem)')" />
    </ItemGroup>
    <ItemGroup Condition="'@(_overlappingRef)' != ''">
      <ReferencePath Remove="@(_overlappingRef)" />
      <ReferencePath Include="@(_overlappingLib)">
        <Private>True</Private>
      </ReferencePath>
    </ItemGroup>
    

    I added this code in order to fix an error with Click Once, as described here: https://github.com/dotnet/standard/issues/529

    0 讨论(0)
提交回复
热议问题