Content Management and Capture

 View Only

How to solve build error of Datacap custom action code (C#) in VS for Mac? [.NET Framework][Datacap]

  • 1.  How to solve build error of Datacap custom action code (C#) in VS for Mac? [.NET Framework][Datacap]

    Posted Fri January 20, 2023 09:40 AM

    Hi,

    Build error of Datacap custom action code (C#) occurred in VS for Mac.

    It seems that they need .NET Framework but only .NET is available in VS for Mac.

    And I guess .NET Framework works on only Windows.

    This custom action needs .NET Framework4.6.1.

    Do you have any solution for this? I need to build on Mac.

    Building solution IBMDemoUtil (Debug)
    Build started 2023/01/20 17:16:25.
    __________________________________________________
    Project "/Users/ibm435644760/IBMDemoUtil/IBMDemoUtil.csproj" (Build target(s)):
    
    Target ResolveComReferences:
        /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2842,5): warning MSB3084: タスクは 2 つの場所で "AxImp.exe" を探しました。1) SdkToolsPath に基づいて生成された "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/" プロセッサ固有のディレクトリ 2) SDKToolsPath プロパティで指定された "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/" の下にある x86 固有のディレクトリ。次のいずれかを行うことによって問題を解決できる可能性があります。1) "SDKToolsPath" プロパティを Microsoft Windows SDK の場所に設定する。
        /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2842,5): error MSB3086: タスクは SdkToolsPath "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/" またはレジストリ キー "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.8\WinSDK-NetFx40Tools-x86" を使用して "AxImp.exe" を見つけられませんでした。SdkToolsPath が設定されていること、SdkToolsPath の下の適切なプロセッサ固有の場所にツールが存在すること、および Microsoft Windows SDK がインストールされていることを確認してください。
    
      Done building project "IBMDemoUtil.csproj" -- FAILED.
    
      Build FAILED.
    
      /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2842,5): warning MSB3084: タスクは 2 つの場所で "AxImp.exe" を探しました。1) SdkToolsPath に基づいて生成された "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/" プロセッサ固有のディレクトリ 2) SDKToolsPath プロパティで指定された "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/" の下にある x86 固有のディレクトリ。次のいずれかを行うことによって問題を解決できる可能性があります。1) "SDKToolsPath" プロパティを Microsoft Windows SDK の場所に設定する。
      /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2842,5): error MSB3086: タスクは SdkToolsPath "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/" またはレジストリ キー "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.8\WinSDK-NetFx40Tools-x86" を使用して "AxImp.exe" を見つけられませんでした。SdkToolsPath が設定されていること、SdkToolsPath の下の適切なプロセッサ固有の場所にツールが存在すること、および Microsoft Windows SDK がインストールされていることを確認してください。
        1 Warning(s)
        1 Error(s)
    
      Time Elapsed 00:00:00.36
    
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    
    Build: 1 error, 1 warning



    ------------------------------
    KOTARO OHIRA
    ------------------------------