-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
net46 referencing netstandard1.3: 'Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0' #20239
Comments
btw: something similar has been reported here: dotnet/efcore#6831 and aspnet/Hosting#801 |
@discostu105 can you add a reference to NETStandard.Library package to your net46 console application? It is needed to get the System.IO.FileSystem assembly that is missing. |
@weshaggard great, that solved my problem. thanks for super-fast response! just for the record: when doing the ConsoleApp in the new csproj format (still net46), it did work without adding a reference. |
Yes in the new project system we are able to flow the NETStandard.Library package reference automatically so you don't need to do in manually but in the old system the manual referencing is still needed. |
* * added appinsights support * made paths configurable * made PathHelper a service * made x86 only build targets (azure only has 32-bit coreclr, o_O) * removed unnecessary RuntimeIdentifiers * remove AI key * solved problem with netstandard change (see https://github.com/dotnet/corefx/issues/16206)
adding a reference to NETStandard.Library doesn't work for me. The problem may be slightly different. The exception looks like this:
and double-clicking on the exception message takes one to these lines in
where it says that "MSBuildThisFileFullPath is not defined". |
@weshaggard I am getting the same error as Discostu105, I saw your response to 'can you add a reference to NETStandard.Library package to your net46 console application?' but as I am very new to Visual Studio and coding I'm not sure how to do this... Any help would be very much appreciated! Error: Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. |
Ran into a strange problem and isolated it to the following:
System.IO.File
When executed, this exception flies:
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'
Repro:
ConsoleApp:
ClassLib:
ClassLib: (csproj):
The text was updated successfully, but these errors were encountered: