Open Closed

Pro Error: Found Multiple publish file - ABP 8.0.1 - Replace package with source code #6439


User avatar
0
rohit.jadhav created
  • ABP Framework version: 8.0.1
  • UI Type: MVC
  • Database System: EF Core (PostgreSQL.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5):

Error NETSDK1152: Found multiple publish output files with the same relative path: D:\Projects\MyProject\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web.Shared\Pages\Account_ViewImports.cshtml, D:\Projects\MyProject\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web\Pages\Account_ViewImports.cshtml, D:\Projects\MyProject\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Admin.Web\Pages\Account_ViewImports.cshtml, D:\Projects\MyProject\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web\Pages\Account_ViewStart.cshtml, D:\Projects\MyProject\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Admin.Web\Pages\Account_ViewStart.cshtml, D:\Projects\MyProject\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web.IdentityServer\Pages_ViewImports.cshtml, D:\Projects\MyProject\modules\Volo.OpenIddict.Pro\src\Volo.Abp.OpenIddict.Pro.Web\Pages_ViewImports.cshtml, D:\Projects\MyProject\modules\Volo.Saas\src\Volo.Saas.Host.Web\Pages_ViewImports.cshtml.

  • Steps to reproduce the issue: When we publish the my web project in release mode. getting above issue. || Debugging is working fine...

10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a project to reproduce this? A startup template project or your project

    liming.ma@volosoft.com

  • User Avatar
    0
    rohit.jadhav created

    liming.ma@volosoft.com

    I am sharing the code via email ...

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, Thanks

  • User Avatar
    0
    rohit.jadhav created

    ok, Thanks

    I have sent an email with project code.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can't reproduce.

    Sustainium/src/Sustainium.Web > dotnet publish -c Release
    

  • User Avatar
    0
    rohit.jadhav created

    hi

    I can't reproduce.

    Sustainium/src/Sustainium.Web > dotnet publish -c Release 
    

    I am getting error, which .NET version you are using ..?

    On my machine it's 8.0.100

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It works on macos, I will test it on windows.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Windows also work

    PS C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web> dotnet publish -c Release
    MSBuild version 17.8.3+195e7f5a3 for .NET
      Determining projects to restore...
      All projects are up-to-date for restore.
    
      p.Account.Pro.Public.Web.OpenIddict.dll
      Sustainium.Web -> C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web\bin\Release\net8.0\Sustainium.Web.dll
      Sustainium.Web -> C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web\bin\Release\net8.0\publish\
    PS C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web>
    
    
  • User Avatar
    0
    rohit.jadhav created

    hi

    Windows also work

    PS C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web> dotnet publish -c Release 
    MSBuild version 17.8.3+195e7f5a3 for .NET 
      Determining projects to restore... 
      All projects are up-to-date for restore. 
     
      p.Account.Pro.Public.Web.OpenIddict.dll 
      Sustainium.Web -> C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web\bin\Release\net8.0\Sustainium.Web.dll 
      Sustainium.Web -> C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web\bin\Release\net8.0\publish\ 
    PS C:\Users\malim\Downloads\Sustainium\src\Sustainium.Web> 
     
    

    On my machine, it was creating a problem, I have followed the stack overflow answer. https://stackoverflow.com/questions/69919664/publish-error-found-multiple-publish-output-files-with-the-same-relative-path

    <PropertyGroup> <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> </PropertyGroup>

    added in web app .csproj file.

    Please suggest if any other way to fix it.

    Thanks for your help and support.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can try to change to a new folder, then check out the git code, and try to publish again.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11