Skip to content

Conversation

nickfloyd
Copy link
Contributor

@nickfloyd nickfloyd commented Sep 28, 2022

When spinning up a code spaces instance with this repo the dev still has to install and configure the .NET and omnisharp aspects so that things like dotnet run and dotnet test operate as expected.

I missed this in my initial pass on all of the SDK repos.

Copy link
Member

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configuration seems reasonable to me. I've confirmed that starting a codespace on this branch and running dotnet test properly and successfully executes the test suite. On main, we get output like the following:

Testhost process exited with error: You must install or update .NET to run this application.
App: /home/codespace/.nuget/packages/microsoft.testplatform.testhost/16.5.0/lib/netcoreapp2.1/testhost.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '3.1.0' (x64)
.NET location: /usr/local/dotnet/6/
The following frameworks were found:
  6.0.9 at [/usr/local/dotnet/6/shared/Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
. Please check the diagnostic logs for more information.

Test Run Aborted.
  Octokit.GraphQL.UnitTests -> /workspaces/octokit.graphql.net/Octokit.GraphQL.UnitTests/bin/Debug/netcoreapp3.1/Octokit.GraphQL.UnitTests.dll
Test run for /workspaces/octokit.graphql.net/Octokit.GraphQL.UnitTests/bin/Debug/netcoreapp3.1/Octokit.GraphQL.UnitTests.dll (.NETCoreApp,Version=v3.1)
Microsoft (R) Test Execution Command Line Tool Version 17.3.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process exited with error: You must install or update .NET to run this application.
App: /home/codespace/.nuget/packages/microsoft.testplatform.testhost/16.5.0/lib/netcoreapp2.1/testhost.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '3.1.0' (x64)
.NET location: /usr/local/dotnet/6/
The following frameworks were found:
  6.0.9 at [/usr/local/dotnet/6/shared/Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
. Please check the diagnostic logs for more information.

Test Run Aborted.

@nickfloyd nickfloyd merged commit 60d3f81 into master Sep 28, 2022
@nickfloyd nickfloyd deleted the create-devcontainer branch September 28, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants