Closed guardrex closed 4 years ago
@piotrpMSFT Any idea on this one ...
Error: assembly specified in the dependencies manifest was not found --
package: 'Microsoft.CSharp', version: '4.0.1-rc3-24201-00',
path: 'lib/netstandard1.3/Microsoft.CSharp.dll'
My portable test app (without changes) was publishing and running a week or two ago; but over successive dotnet cli
versions recently, it's failing with this request for CSharp.
It's a very simple little MVC portable test app. Here's the entire project.json
...
{
"authors": [ "GuardRex" ],
"buildOptions": {
"preserveCompilationContext": true,
"emitEntryPoint": true,
"warningsAsErrors": true,
"debugType": "portable",
"compile": {
"exclude": [
"wwwroot"
]
},
"copyToOutput": {
"include": [ "Views", "wwwroot", "Logs" ]
}
},
"dependencies": {
"Microsoft.AspNetCore.Diagnostics": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-*"
}
},
"frameworks": {
"netcoreapp1.0": {
"imports": [ "portable-dnxcore50+net45+win8+wp8+wpa81" ]
}
},
"publishOptions": {
"include": [ "Views", "wwwroot", "Logs" ]
},
"scripts": {
"postpublish": "guardrex-publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
},
"version": "1.0.0"
}
I've been playing with this a bit, and there is some kind of mis-match between the dep graph of published output and the installed SDK. This is in spite of downloading the latest SDK and installing it. If I run the VS Code debugger, the app runs. If I try to run it manually dotnet .\testshared.dll
it breaks with this exception. Anyway ... no other complaints, so I think this is a local problem here.
Steps to reproduce
My portable test app won't run this evening. I'm getting a missing assembly exception.
If you need a repro, let me know, but this app is akin to the cli-samples MVC app.
I noted that the build was failing for
dotnet cli
, but that shouldn't matter, correct? I mean theDownload
link is going to link last good build ofdotnet cli
, right? [EDIT] I rolled back mydotnet cli
to -2851, and the problem persists.Expected behavior
Compiles/publishes + runs
Actual behavior
The
rc3-24128-00
version appears when using theaspnetvnext
feed. When using other feeds, I get the same exception, just with a different version of the package requested.[EDIT] Suspiciously similar: With a
dotnet new
project, merely adding a dep on"Microsoft.AspNetCore.Diagnostics": "1.0.0-*"
produces a ...... so it looks like some kind of general regression.
The problem is isolated to portable apps. Self-contained apps are :rocket:, as usual.
Environment data
[EDIT] Continues to occur with -002983. [EDIT] Continues to occur with -002966.