Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet build on .net standard projects not working for ubuntu-latest #37

Closed
Rickedb opened this issue Sep 17, 2019 · 15 comments
Closed
Labels
bug Something isn't working

Comments

@Rickedb
Copy link

Rickedb commented Sep 17, 2019

I've been trying to build my .net standard 2.0 project with github actions, tried many times with ubuntu-latest and mac-latest but couldn't achieve anything.

ubuntu throw me weird errors like missing assemblies and mac seems to not even run.
Fortunately, could run it with windows image.

My current .yml file:

on:
  push:
    branches:
    - github-actions

jobs:
  build:
    runs-on: windows-latest
    
    steps:
    - uses: actions/checkout@master
    - name: Setup .NET Core
      uses: actions/setup-dotnet@master
      with:
        dotnet-version: '3.0.100-rc1-014190'
    - name: build library (.net core)
      run: dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
    - name: build and run .net core tests
      run: |
        dotnet build src/MIDTesters.Core/MIDTesters.Core.csproj
        dotnet test src/MIDTesters.Core/MIDTesters.Core.csproj

Running with ubuntu output:

2019-09-17T23:02:05.2620428Z ##[group]Run dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
2019-09-17T23:02:05.2620691Z �[36;1mdotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release�[0m
2019-09-17T23:02:05.2662422Z shell: /bin/bash -e {0}
2019-09-17T23:02:05.2662584Z env:
2019-09-17T23:02:05.2662703Z   DOTNET_ROOT: /opt/hostedtoolcache/dncs
2019-09-17T23:02:05.2662827Z ##[endgroup]
2019-09-17T23:02:05.4180582Z 
2019-09-17T23:02:05.4217683Z Welcome to .NET Core 3.0!
2019-09-17T23:02:05.4220300Z ---------------------
2019-09-17T23:02:05.4221302Z SDK Version: 3.0.100-rc1-014190
2019-09-17T23:02:05.4221652Z 
2019-09-17T23:02:05.4221946Z Telemetry
2019-09-17T23:02:05.4222433Z ---------
2019-09-17T23:02:05.4223775Z The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
2019-09-17T23:02:05.4224879Z 
2019-09-17T23:02:05.4225645Z Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
2019-09-17T23:02:05.4225904Z 
2019-09-17T23:02:05.4226392Z ----------------
2019-09-17T23:02:05.4226990Z Explore documentation: https://aka.ms/dotnet-docs
2019-09-17T23:02:05.4227390Z Report issues and find source on GitHub: https://github.com/dotnet/core
2019-09-17T23:02:05.4228011Z Find out what's new: https://aka.ms/dotnet-whats-new
2019-09-17T23:02:05.4228881Z Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
2019-09-17T23:02:05.4242823Z Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
2019-09-17T23:02:05.4243783Z Write your first app: https://aka.ms/first-net-core-app
2019-09-17T23:02:05.4245113Z --------------------------------------------------------------------------------------
2019-09-17T23:02:05.8242698Z Microsoft (R) Build Engine version 16.3.0-preview-19455-02+4a2d77107 for .NET Core
2019-09-17T23:02:05.8243643Z Copyright (C) Microsoft Corporation. All rights reserved.
2019-09-17T23:02:05.8244449Z 
2019-09-17T23:02:07.5566234Z   Restore completed in 992.31 ms for /home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj.
2019-09-17T23:02:07.6952221Z   You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
2019-09-17T23:02:09.5788368Z ##[error]Job/JobMessages.cs(17,19): error CS0103: The name 'Mid0034' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5802250Z ##[error]Job/JobMessages.cs(17,63): error CS0246: The type or namespace name 'Mid0034' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5804023Z ##[error]Job/JobMessages.cs(18,19): error CS0103: The name 'Mid0035' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5806304Z ##[error]Job/JobMessages.cs(18,63): error CS0246: The type or namespace name 'Mid0035' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5807773Z ##[error]Job/JobMessages.cs(19,19): error CS0103: The name 'Mid0036' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5809512Z ##[error]Job/JobMessages.cs(19,63): error CS0246: The type or namespace name 'Mid0036' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5810835Z ##[error]Job/JobMessages.cs(20,19): error CS0103: The name 'Mid0037' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5812225Z ##[error]Job/JobMessages.cs(20,63): error CS0246: The type or namespace name 'Mid0037' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5813491Z ##[error]Job/JobMessages.cs(21,19): error CS0103: The name 'Mid0038' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5815830Z ##[error]Job/JobMessages.cs(21,63): error CS0246: The type or namespace name 'Mid0038' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5817272Z ##[error]Job/Advanced/AdvancedJobMessages.cs(20,19): error CS0103: The name 'Mid0127' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5819055Z ##[error]Job/Advanced/AdvancedJobMessages.cs(20,63): error CS0246: The type or namespace name 'Mid0127' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5820437Z ##[error]MidInterpreter.cs(113,22): error CS0103: The name 'KeepAlive' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5821914Z ##[error]MidInterpreter.cs(114,32): error CS0246: The type or namespace name 'KeepAlive' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5823263Z ##[error]Tightening/TighteningMessages.cs(13,19): error CS0103: The name 'Mid0060' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5825514Z ##[error]Tightening/TighteningMessages.cs(13,63): error CS0246: The type or namespace name 'Mid0060' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5826949Z ##[error]Tightening/TighteningMessages.cs(14,19): error CS0103: The name 'Mid0061' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5829152Z ##[error]Tightening/TighteningMessages.cs(14,63): error CS0246: The type or namespace name 'Mid0061' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5832063Z ##[error]Tightening/TighteningMessages.cs(15,19): error CS0103: The name 'Mid0062' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5833777Z ##[error]Tightening/TighteningMessages.cs(15,63): error CS0246: The type or namespace name 'Mid0062' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5837652Z ##[error]Tightening/TighteningMessages.cs(17,19): error CS0103: The name 'Mid0064' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5844424Z ##[error]Tightening/TighteningMessages.cs(17,63): error CS0246: The type or namespace name 'Mid0064' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5846080Z ##[error]Tightening/TighteningMessages.cs(18,19): error CS0103: The name 'Mid0065' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5856755Z ##[error]Tightening/TighteningMessages.cs(18,63): error CS0246: The type or namespace name 'Mid0065' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5872793Z 
2019-09-17T23:02:09.5873024Z Build FAILED.
2019-09-17T23:02:09.5873079Z 
2019-09-17T23:02:09.5874322Z ##[error]Job/JobMessages.cs(17,19): error CS0103: The name 'Mid0034' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5876375Z ##[error]Job/JobMessages.cs(17,63): error CS0246: The type or namespace name 'Mid0034' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5877883Z ##[error]Job/JobMessages.cs(18,19): error CS0103: The name 'Mid0035' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5879409Z ##[error]Job/JobMessages.cs(18,63): error CS0246: The type or namespace name 'Mid0035' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5881021Z ##[error]Job/JobMessages.cs(19,19): error CS0103: The name 'Mid0036' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5882705Z ##[error]Job/JobMessages.cs(19,63): error CS0246: The type or namespace name 'Mid0036' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5884000Z ##[error]Job/JobMessages.cs(20,19): error CS0103: The name 'Mid0037' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5886153Z ##[error]Job/JobMessages.cs(20,63): error CS0246: The type or namespace name 'Mid0037' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5887843Z ##[error]Job/JobMessages.cs(21,19): error CS0103: The name 'Mid0038' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5889401Z ##[error]Job/JobMessages.cs(21,63): error CS0246: The type or namespace name 'Mid0038' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5890865Z ##[error]Job/Advanced/AdvancedJobMessages.cs(20,19): error CS0103: The name 'Mid0127' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5892330Z ##[error]Job/Advanced/AdvancedJobMessages.cs(20,63): error CS0246: The type or namespace name 'Mid0127' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5893960Z ##[error]MidInterpreter.cs(113,22): error CS0103: The name 'KeepAlive' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5896349Z ##[error]MidInterpreter.cs(114,32): error CS0246: The type or namespace name 'KeepAlive' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5897781Z ##[error]Tightening/TighteningMessages.cs(13,19): error CS0103: The name 'Mid0060' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5899419Z ##[error]Tightening/TighteningMessages.cs(13,63): error CS0246: The type or namespace name 'Mid0060' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5901017Z ##[error]Tightening/TighteningMessages.cs(14,19): error CS0103: The name 'Mid0061' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5902458Z ##[error]Tightening/TighteningMessages.cs(14,63): error CS0246: The type or namespace name 'Mid0061' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5904688Z ##[error]Tightening/TighteningMessages.cs(15,19): error CS0103: The name 'Mid0062' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5906397Z ##[error]Tightening/TighteningMessages.cs(15,63): error CS0246: The type or namespace name 'Mid0062' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5908268Z ##[error]Tightening/TighteningMessages.cs(17,19): error CS0103: The name 'Mid0064' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5910514Z ##[error]Tightening/TighteningMessages.cs(17,63): error CS0246: The type or namespace name 'Mid0064' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5911860Z ##[error]Tightening/TighteningMessages.cs(18,19): error CS0103: The name 'Mid0065' does not exist in the current context [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5913228Z ##[error]Tightening/TighteningMessages.cs(18,63): error CS0246: The type or namespace name 'Mid0065' could not be found (are you missing a using directive or an assembly reference?) [/home/runner/work/OpenProtocolInterpreter/OpenProtocolInterpreter/src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj]
2019-09-17T23:02:09.5913674Z     0 Warning(s)
2019-09-17T23:02:09.5913798Z     24 Error(s)
2019-09-17T23:02:09.5913848Z 
2019-09-17T23:02:09.5913999Z Time Elapsed 00:00:03.68

Also running on windows output:

2019-09-17T23:03:41.1151413Z ##[group]Run dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
2019-09-17T23:03:41.1151832Z �[36;1mdotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release�[0m
2019-09-17T23:03:41.1156477Z shell: C:\windows\system32\cmd.exe /D /E:ON /V:OFF /S /C "CALL "{0}""
2019-09-17T23:03:41.1156631Z env:
2019-09-17T23:03:41.1156735Z   DOTNET_ROOT: C:\hostedtoolcache\windows\dncs
2019-09-17T23:03:41.1156843Z ##[endgroup]
2019-09-17T23:03:47.0289618Z 
2019-09-17T23:03:47.0337013Z Welcome to .NET Core 3.0!
2019-09-17T23:03:47.0337558Z ---------------------
2019-09-17T23:03:47.0337957Z SDK Version: 3.0.100-rc1-014190
2019-09-17T23:03:47.0338151Z 
2019-09-17T23:03:47.0338385Z Telemetry
2019-09-17T23:03:47.0338603Z ---------
2019-09-17T23:03:47.0339229Z The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
2019-09-17T23:03:47.0339634Z 
2019-09-17T23:03:47.0339956Z Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
2019-09-17T23:03:47.0340171Z 
2019-09-17T23:03:47.0340510Z ----------------
2019-09-17T23:03:47.0341091Z Explore documentation: https://aka.ms/dotnet-docs
2019-09-17T23:03:47.0341458Z Report issues and find source on GitHub: https://github.com/dotnet/core
2019-09-17T23:03:47.0341658Z Find out what's new: https://aka.ms/dotnet-whats-new
2019-09-17T23:03:47.0342266Z Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
2019-09-17T23:03:47.0342527Z Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
2019-09-17T23:03:47.0342716Z Write your first app: https://aka.ms/first-net-core-app
2019-09-17T23:03:47.0437470Z --------------------------------------------------------------------------------------
2019-09-17T23:03:48.5768526Z Microsoft (R) Build Engine version 16.3.0-preview-19455-02+4a2d77107 for .NET Core
2019-09-17T23:03:48.5811521Z Copyright (C) Microsoft Corporation. All rights reserved.
2019-09-17T23:03:48.5814862Z 
2019-09-17T23:03:51.6231437Z   Restore completed in 1.31 sec for D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\OpenProtocolInterpreter\OpenProtocolInterpreter.csproj.
2019-09-17T23:03:51.7568082Z   You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
2019-09-17T23:03:54.1003545Z   OpenProtocolInterpreter -> D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\OpenProtocolInterpreter\bin\release\netstandard2.0\OpenProtocolInterpreter.dll
2019-09-17T23:03:54.3738575Z   Successfully created package 'D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\OpenProtocolInterpreter\bin\release\OpenProtocolInterpreter.3.0.1.nupkg'.
2019-09-17T23:03:54.3995087Z 
2019-09-17T23:03:54.3996256Z Build succeeded.
2019-09-17T23:03:54.3996816Z     0 Warning(s)
2019-09-17T23:03:54.3997284Z     0 Error(s)
2019-09-17T23:03:54.3997765Z 
2019-09-17T23:03:54.3998730Z Time Elapsed 00:00:05.50
2019-09-17T23:03:54.4630218Z ##[group]Run dotnet build src/MIDTesters.Core/MIDTesters.Core.csproj
2019-09-17T23:03:54.4630470Z �[36;1mdotnet build src/MIDTesters.Core/MIDTesters.Core.csproj�[0m
2019-09-17T23:03:54.4630587Z �[36;1mdotnet test src/MIDTesters.Core/MIDTesters.Core.csproj�[0m
2019-09-17T23:03:54.4630772Z shell: C:\windows\system32\cmd.exe /D /E:ON /V:OFF /S /C "CALL "{0}""
2019-09-17T23:03:54.4630877Z env:
2019-09-17T23:03:54.4630969Z   DOTNET_ROOT: C:\hostedtoolcache\windows\dncs
2019-09-17T23:03:54.4631069Z ##[endgroup]
2019-09-17T23:03:54.8694287Z Microsoft (R) Build Engine version 16.3.0-preview-19455-02+4a2d77107 for .NET Core
2019-09-17T23:03:54.8695224Z Copyright (C) Microsoft Corporation. All rights reserved.
2019-09-17T23:03:54.8696153Z 
2019-09-17T23:03:55.5908468Z   Restore completed in 27.91 ms for D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\OpenProtocolInterpreter\OpenProtocolInterpreter.csproj.
2019-09-17T23:04:48.9035401Z   Restore completed in 53.3 sec for D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\MIDTesters.Core\MIDTesters.Core.csproj.
2019-09-17T23:04:49.0177870Z   You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
2019-09-17T23:04:50.2825575Z   OpenProtocolInterpreter -> D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\OpenProtocolInterpreter\bin\Debug\netstandard2.0\OpenProtocolInterpreter.dll
2019-09-17T23:04:50.5405212Z   Successfully created package 'D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\OpenProtocolInterpreter\bin\Debug\OpenProtocolInterpreter.3.0.1.nupkg'.
2019-09-17T23:04:51.5821959Z   MIDTesters.Core -> D:\a\OpenProtocolInterpreter\OpenProtocolInterpreter\src\MIDTesters.Core\bin\Debug\netcoreapp2.0\MIDTesters.Core.dll
2019-09-17T23:04:51.5907956Z 
2019-09-17T23:04:51.5908658Z Build succeeded.
2019-09-17T23:04:51.5909128Z     0 Warning(s)
2019-09-17T23:04:51.5909362Z     0 Error(s)
2019-09-17T23:04:51.5910544Z 
2019-09-17T23:04:51.5910887Z Time Elapsed 00:00:56.66

mac not running:
image

Any thoughts on it? Am I missing something?

@inhifistereo
Copy link

I am seeing the same.

@ZEisinger ZEisinger added the bug Something isn't working label Jan 7, 2020
@ZEisinger
Copy link
Contributor

@Rickedb and @inhifistereo is your build working locally on a linux machine?

For mac, could you try macos-latest instead? I was able to get the project working on macos-latest.

@inhifistereo
Copy link

I'll have to set it up.

@Rickedb
Copy link
Author

Rickedb commented Jan 8, 2020

@ZEisinger Haven't tried locally on linux, I'll try it out and update you ASAP.

Tried macos-latest using the same yaml. Could setup and build project but could not test my .net core 2.0 test project. (I'm using version 3.0.100-rc1-014190)

Do I need to get .net core 2.0 SDK too when running action when on macos?

macos-latest try:
https://github.com/Rickedb/OpenProtocolInterpreter/commit/df5db7248d6739541aa28ef0084e03eb3be951f5/checks?check_suite_id=389147108

My tests:
https://github.com/Rickedb/OpenProtocolInterpreter/actions?query=branch%3Agithub-actions-test

@Rickedb
Copy link
Author

Rickedb commented Feb 4, 2020

@ZEisinger Same behaviour when running on a Linux environment (tried on Ubuntu 19.04)

Maybe .Net Standard references some .net framework library when building?? Any clue on it ?
Going to check .Net CLI GitHub if I can figure out something, if not, I might open this issue right there.

@rainersigwald
Copy link
Contributor

@Rickedb the 3.0 SDK can build .NET Core 2.0 projects, but it can't run them if the .NET Core 2.0 runtime isn't also available on the test machine.

To build with 3.x but run on 2.x you might need #25.

@Rickedb
Copy link
Author

Rickedb commented Feb 16, 2020

@rainersigwald I've made 2 tests:

  1. Switched in GitHub Actions to build with .NET Core 2.2 Here
  2. Switched my .NET Standard project to 2.1 and .NET Core (tests project) to 3.0 Here

Both of them haven't worked on Ubuntu.
Also, I`m not having problem with .NET Core but with the .NET Standard project.

@coderpatros
Copy link
Contributor

coderpatros commented Jun 28, 2020

@Rickedb are you still hitting this issue? If so can you share the repo that is hitting it? I'm using this without issue (except the SxS install workaround).

Edit: just realised you did share the repo. I'll try to do some digging over the next couple of days. If you are still hitting it?

@Rickedb
Copy link
Author

Rickedb commented Jun 28, 2020

@coderpatros I've just set it to build in Windows environment and never tried again to work with Ubuntu or Mac. Probably still running the same issues.

Feel free to fork the repo and contact me if any help needed!

@coderpatros
Copy link
Contributor

@Rickedb this isn't an issue with this action.

Your MIDTesters project targets full framework 4.6.1. The github hosted runners have that targeting pack installed out of the box for Windows which is why it works.

If you want you could look at using mono for non-Windows platforms. But I think, just from personal experience, it is probably better to attempt to migrate that project to standard or core if you can.

@Rickedb
Copy link
Author

Rickedb commented Jun 29, 2020

@coderpatros I don't remember how the workflow file was, since every log is now gone because I deleted the branch which I was testing it.

Looking at my file now, I use dotnet test src/MIDTesters.Core/MIDTesters.Core.csproj which is a .Net Core project not Framework.

Checking https://github.com/ZEisinger/OpenProtocolInterpreter/blob/master/.github/workflows/build.yml, this was when @ZEisinger forked it, seems like it was targeting .Net Core too and build runs only on OpenProtocolInterpreter.csproj, which is a .Net Standard project.

Also, I remember using mono to achieve publishing nuget packages.

Btw I need try again to validate if it still happens or if it was my dumb mistake of trying to build a .net framework in a Unix environment, everything points to the opposite, but you know, we do these mistakes all the time 😂

@coderpatros
Copy link
Contributor

Oh, I thought I saw a reference to MIDTesters from OpenProtocolInterpreter project. But think I was mistaken.

@coderpatros
Copy link
Contributor

Ah... I think I've found the problem. I'll raise a PR on your project soon hopefully

@Rickedb
Copy link
Author

Rickedb commented Jun 29, 2020

Checking https://github.com/Rickedb/OpenProtocolInterpreter/actions/runs/40249169, seems that it's really problem with the filename, since all errors are popping in the files that you changed for the pull request.

Going to check it at night and bring some news here...

@Rickedb
Copy link
Author

Rickedb commented Jun 30, 2020

The problem really was extension in uppercase. GitHub actions build is working as expected now.

@Rickedb Rickedb closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants