Global Data Management Forum

 View Only

IBM.EntityFrameworkCore (6.0.0.200) in .NET 6.0 ClickOnce Deployment Error

  • 1.  IBM.EntityFrameworkCore (6.0.0.200) in .NET 6.0 ClickOnce Deployment Error

    Posted Mon August 15, 2022 11:23 AM
    I developed a new .NET6 Windows Desktop application that is using the IBM.EntityFrameworkCore (6.0.0.200) package from NuGet to connect to the Informix Database. I can compile and run the application and everything works as expected. 

    We need to Deploy this app (Using Visual Studio 2022 ClickOnce Deployment) to a shared location on out internal network. When we run the Publish function within VS2022 it fails every time with the following error...


    The following is what is in the output window...

    This is what is in the TMP File referenced above
    ======================================
    8/13/2022 7:34:57 AM
    System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
    --- End of inner exception stack trace ---
    ---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---

    Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.

    ===================
    And this is what is in the VS2022 Output window


    The point of failure is the fact that there appears to be multiple MANIFEST files being passed into the Microsoft.Build.Framework.ITaskItem see below

    ==========================
    5>"C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\DB2xml4c_cli64_5_8.dll.2.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.APP64.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.CLI64.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.CLIXML4C64.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.SEC64.manifest" is an invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".
    ==========================
    I'm not sure if all the manifest files are needed but i looking to see if anyone else has seen this issue??

    Other than being able to Deploy using ClickOnce this all builds and works great for both DEBUG and RELEASE builds

    Regards
    ---------------------------------
    Michael
    ---------------------------------





    ------------------------------
    Michael Bouhuys
    ------------------------------

    #DataManagementGlobal
    #DataServerDrivers