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

Upgraded project could not load file or assembly #4390

Closed
TehWardy opened this issue Mar 12, 2020 · 3 comments
Closed

Upgraded project could not load file or assembly #4390

TehWardy opened this issue Mar 12, 2020 · 3 comments

Comments

@TehWardy
Copy link

Just upgraded my solution to .Net Core 3.1 and now i'm getting error ...

Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

... Directly adding a reference to the "missing" assembly doesn't resolve the issue.

From previous issues of this nature raised i've seen that updating VS (i'm running 2019) often helped / fixed the issue and running the latest SDK installer was also an option. None of these appeared to have worked for me.

I figured it might be some "rogue junk" so I flushed my nuget cache, deleted the entire repo from my HDD and then fetched the latest from source control and rebuilt but hit the same exception.

Any ideas what I could do next?

@TehWardy
Copy link
Author

Weirdly, setting the project to build against .Net Core 2.2 again doesn't resolve it either.

@TehWardy
Copy link
Author

Ok from what I can tell this is some issue in the azure functions stack of references.

@carlossanlop
Copy link
Member

Seems the question was answered in the roslyn repo so I'll close this.

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

No branches or pull requests

2 participants