Skip to content

Could not load file or assembly 'Microsoft.CodeAnalysis.CSharp, access code invalid #5502

@RickJWagner

Description

@RickJWagner

Steps to reproduce

docker run -it microsoft/dotnet:latest
mkdir hello_world
cd hello_world
dotnet new
dotnet restore
dotnet run

Expected behavior

A running 'Hello World' CLI app.

Actual behavior

dotnet run brings:

Compiling �hello_world� for
NXCore,Version=v5.0�
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis.CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The access code is invalid.

Environment data

dotnet --version output:

root@a706975625ca:/hello_world# dotnet --version
.NET Command Line Tools (1.0.0-beta-001598)

Product Information:
Version: 1.0.0-beta-001598
Commit Sha: N/A

Runtime Environment:
OS Name: ubuntu
OS Version: 14.04
OS Platform: Linux
Runtime Id: ubuntu.14.04-x64

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions