Remco;9887 wrote:Before I put v3.5 up, I'd like to learn a bit more about the other bug report you just submitted.
The project you have that NCrunch is failing to analyse is falling over because of a missing dependency, System.Diagnostics.TraceSource v4.0.0.0.
Are you able to identify how this package is being referenced from your project? Is it being referenced directly? If the project is built, does the reference show in the generated .deps.json file in the build output directory?
Also, is the package installed on your machine?
NCrunch should usually identify all these references and flag them up so they can be found in the runtime environment. It's expected that VS would have automatically restored them if they are being used.
Regarding System.Diagnostics.TraceSource
Remco;9887 wrote:Is it being referenced directly?
No
(PM> get-package System.Diagnostics.TraceSource => "No packages installed.")
Remco;9887 wrote: If the project is built, does the reference show in the generated .deps.json file in the build output directory?
Yes, it seems to be related to NLog:
Quote:
"nlog/5.0.0-beta03": {
"dependencies": {
"Microsoft.Extensions.PlatformAbstractions": "1.0.0",
"NETStandard.Library": "1.6.0",
"System.Collections.NonGeneric": "4.0.1",
"System.ComponentModel.TypeConverter": "4.1.0",
"System.Data.Common": "4.1.0",
"System.Diagnostics.Contracts": "4.0.1",
"System.Diagnostics.StackTrace": "4.0.1",
"System.Diagnostics.TraceSource": "4.0.0",
"System.IO.FileSystem.Watcher": "4.0.0",
"System.Net.NameResolution": "4.0.0",
"System.Net.Requests": "4.0.11",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Security.AccessControl": "4.0.0",
"System.Security.Principal": "4.0.1",
"System.Threading": "4.0.11",
"System.Threading.AccessControl": "4.0.0",
"System.Threading.Thread": "4.0.0",
"System.Threading.ThreadPool": "4.0.10",
"System.Xml.XmlDocument": "4.0.1"
},
"runtime": {
"lib/netstandard1.5/NLog.dll": {}
}
},
Remco;9887 wrote:Also, is the package installed on your machine?
It exists at C:\Users\<user>\.nuget\packages\system.diagnostics.tracesource (both 4.0.0 and 4.3.0).