Fails to build #30

Closed
opened 2021-09-18 01:32:51 +00:00 by Jayman2000 · 2 comments
Jayman2000 commented 2021-09-18 01:32:51 +00:00 (Migrated from github.com)

I’m using Arch Linux. When I try to build Jobs, Jobs, Jobs, I get two errors:

[jayman@Jason-Desktop-Linux jobs-jobs-jobs]$ msbuild src/JobsJobsJobs.sln 
Microsoft (R) Build Engine version 16.10.1 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 9/17/2021 9:31:43 PM.
Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Any CPU".
Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (1) is building "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj" (2) on node 1 (default targets).
/usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj]
Done Building Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj" (default targets) -- FAILED.
Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (1) is building "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj" (3) on node 1 (default targets).
/usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj]
Done Building Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj" (default targets) -- FAILED.
Done Building Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (default targets) -- FAILED.

Build FAILED.

"/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (default target) (1) ->
"/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj" (default target) (2) ->
(_CollectTargetFrameworkForTelemetry target) -> 
  /usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj]


"/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (default target) (1) ->
"/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj" (default target) (3) ->
  /usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:00.44
[jayman@Jason-Desktop-Linux jobs-jobs-jobs]$
I’m using Arch Linux. When I try to build Jobs, Jobs, Jobs, I get two errors: ``` [jayman@Jason-Desktop-Linux jobs-jobs-jobs]$ msbuild src/JobsJobsJobs.sln Microsoft (R) Build Engine version 16.10.1 for Mono Copyright (C) Microsoft Corporation. All rights reserved. Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. Build started 9/17/2021 9:31:43 PM. Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Debug|Any CPU". Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (1) is building "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj" (2) on node 1 (default targets). /usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj] Done Building Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj" (default targets) -- FAILED. Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (1) is building "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj" (3) on node 1 (default targets). /usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj] Done Building Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj" (default targets) -- FAILED. Done Building Project "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (default targets) -- FAILED. Build FAILED. "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (default target) (1) -> "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj" (default target) (2) -> (_CollectTargetFrameworkForTelemetry target) -> /usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Domain/Domain.fsproj] "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs.sln" (default target) (1) -> "/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj" (default target) (3) -> /usr/lib/mono/msbuild/Current/bin/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(103,5): error MSB4181: The "Telemetry" task returned false but did not log an error. [/hdd/home/jayman/VC/jobs-jobs-jobs/src/JobsJobsJobs/Api/Api.fsproj] 0 Warning(s) 2 Error(s) Time Elapsed 00:00:00.44 [jayman@Jason-Desktop-Linux jobs-jobs-jobs]$ ```
danieljsummers commented 2021-09-21 18:30:05 +00:00 (Migrated from github.com)

It probably won't build with Mono; it using .NET (AKA ".NET Core"). You'll need .NET 6 RC 1 and NodeJS v16. Once you clone the repo, go into src/JobsJobsJobs/App and run npm i, then npm run build to build the app. Then, change to ../Api and execute dotnet build. If you're wanting to run it, you'll need to have a RethinkDB server handy, then put this in appsettings.json

{
  "Rethink": {
    "Hostname": "[your-host]",
    "Db": "[the-database-name]"
  }
}

You can then run npm run apiserve from the /App directory, and it will build both parts then start the app. Without API keys, though, there's probably not a whole lot you could do once you get that going.

It probably won't build with Mono; it using .NET (AKA ".NET Core"). You'll need .NET 6 RC 1 and NodeJS v16. Once you clone the repo, go into `src/JobsJobsJobs/App` and run `npm i`, then `npm run build` to build the app. Then, change to `../Api` and execute `dotnet build`. If you're wanting to run it, you'll need to have a RethinkDB server handy, then put this in `appsettings.json` ```json { "Rethink": { "Hostname": "[your-host]", "Db": "[the-database-name]" } } ``` You can then run `npm run apiserve` from the `/App` directory, and it will build both parts then start the app. Without API keys, though, there's probably not a whole lot you could do once you get that going.
danieljsummers commented 2022-07-12 02:26:31 +00:00 (Migrated from github.com)

While this still requires .NET 6 and NodeJS 16, there is now a script that uses FAKE to perform the build. If you clone the repo, make sure fake.sh is executable, then you can run ./fake.sh build to build the front end and the back end. There is still some configuration that it needs to run, but is not a part of this repository (plus a RethinkDB server), but this should make it easier to build. I used ./fake.sh build --target Publish to make version 2.2.2.

I'll close this issue shortly.

While this still requires .NET 6 and NodeJS 16, there is now a script that uses [FAKE](https://fake.build) to perform the build. If you clone the repo, make sure `fake.sh` is executable, then you can run `./fake.sh build` to build the front end and the back end. There is still some configuration that it needs to run, but is not a part of this repository (plus a RethinkDB server), but this should make it easier to build. I used `./fake.sh build --target Publish` to make version 2.2.2. I'll close this issue shortly.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bit-badger/jobs-jobs-jobs#30
No description provided.