question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Assembly not found: Microsoft.CSharp

See original GitHub issue

After publishing my .net web app throws an exception when I try to start it:

Error: assembly specified in the dependencies manifest was not found -- package: 'Microsoft.CSharp', version: '4.0.1-rc3-24209-08', path: 'lib/netstandard1.3/Microsoft.CSharp.dll'

I use the ‘latest’ cli from github dotnet/cli on Debian 8.2: 1.0.0-preview2-003032

This seems to be the same issue @GuardRex has: https://github.com/dotnet/cli/issues/3379

I am using the https://www.myget.org/F/aspnetcidev/api/v3/index.json feed. My dependencies in project.json are -rc3-*. I use the same dotnet version to publish and start the application.

In the dotnet folder, there is a Microsoft.CSharp.dll at ./shared/Microsoft.NETCore.App/1.0.0-rc3-004449-00/Microsoft.CSharp.dll.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
eerhardtcommented, Jun 15, 2016

This is now fixed with dotnet/cli#3574.

0reactions
TheRealPiotrPcommented, Jun 14, 2016

@pakrym let me know if we can help. It would be great to get a first pass at this change today… it’ll probably be a bit destabilizing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet core : Can not find assembly file Microsoft.CSharp.dll
Expand your project, right click on References , click Add Reference , search Microsoft.CSharp , check the box, click OK . Select Microsoft....
Read more >
MSB3644: The reference assemblies for 'version' were not ...
The reference assemblies for 'version' were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework ...
Read more >
Could Not Load File Or Assembly 'System.Runtime, ...
Could Not Load File Or Assembly 'System.Runtime, Version=6.0.0.0 · Right-click on the project and select Properties. · In the Properties window, ...
Read more >
Could not load file or assembly class library " ...
First, I am creating for the first time a C# class library in .Net 6 that is a data access layer for other...
Read more >
Cannot add assembly in VS 2022 C# - Microsoft Q&A
I get this error CS1069 The type name 'SqlConnection' could not be found in the namespace 'System.Data.SqlClient'. This type has been forwarded ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found