Error while compiling custom package

Hello community,



After successfully importing my custom package from file system, I tried to compile it and I got the following error:

 

After checking the Build.log I found the following error:

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build BuildConfigurationProjects - WorkspaceCompiler.Build started at 00:00:09.0206194

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build SetCustomProperties - UseSourceCodeSchemaGenerator = True

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build SetCustomProperties - OldUI = False

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build SetCustomProperties - NetStandardCompatibilityMode = True

2022-02-01 03:44:23,653 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core

2022-02-01 03:44:23,653 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Copyright (C) Microsoft Corporation. All rights reserved.

2022-02-01 03:44:24,325 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput -   Determining projects to restore...

2022-02-01 03:45:00,886 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,886 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error :   No such host is known. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,917 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Build FAILED.

2022-02-01 03:45:00,917 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error :   No such host is known. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput -     0 Warning(s)

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput -     1 Error(s)

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Time Elapsed 00:00:37.16

 

Can someone explain why is this error happening, because I am not using any nuget library on my package and it is .Net framework version not .Net core. 

 

Thank you

Like 0

Like

2 comments

Hi Erald, 

this problems happens because .net Core SDK 2.2 is not installed in the server. Please try downloading it from here (please note that you don't need to delete the .net Core SDK 3.1 which is already installed) https://dotnet.microsoft.com/en-us/download/dotnet/2.2 and let us know if the problem persists. Once installed please restart the server and try compiling the app again.

developer,

 

We see that you have created a separate post (https://community.creatio.com/questions/problem-while-compiling-packages) and provided more details in it, we will work on your question there.

Show all comments