visual studio – ASP.NET application doesn’t work after cloning project


C# ASP.NET project made with Visual Studio.

I cloned it copying the folder project in another place. Dependencies with relative paths were broken and I carefully added them again. I can build the project but it generates an exception and doesn’t work. The Myapp.deps.json generated by Visual Studio is slightly different from the original project, it lacks two .dll

...  
"DnsClient/1.3.1.0": {
    "runtime": {
      "DnsClient.dll": {
        "assemblyVersion": "1.3.1.0",
        "fileVersion": "1.3.1.0"
      }
    }
  },
  "SharpCompress/0.23.0.0": {
    "runtime": {
      "SharpCompress.dll": {
        "assemblyVersion": "0.23.0.0",
        "fileVersion": "0.23.0.0"
      }
    }
 ...
"libraries": {
...
"DnsClient/1.3.1.0": {
  "type": "reference",
  "serviceable": false,
  "sha512": ""
},
"SharpCompress/0.23.0.0": {
  "type": "reference",
  "serviceable": false,
  "sha512": ""
}

The file is automatically generated and I cannot find any reason because they are different.
The missing dll above are not listed in the dependencies and I don’t know where they come from.

Leave a Reply

Your email address will not be published. Required fields are marked *