-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
deps.json has a bug when dll version is end with zero #3522
Comments
Can you please answer some of these questions to help us better understand the problem?
|
ok,i try it again. how I do that ? I replace all the path lib/netstardardxxxx to my path. so it work well at Microsoft.AspNetCore.All 2.0.3 version. but my question is :when i update to 2.2.0 version,it dose not work. if i change the version to anything like 2.2.x,it will work well. I find it have the same bug on linux and windows. now ,you kown what i say ? |
Thanks a lot for the detailed description. About the error: About the problem with lot of files in the output: |
OK,I try it again. and you replace 2.2.0 to 2.2.1 at Taurus.View.deps.json like this,and run again,it will be ok. you you need the source code for building, you can download on (917K) : http://mvc.taurus.cyqdata.com/SourceCode.rar |
Thanks a lot. The immediate failure is caused by a missing file. The If you change the version you effectively corrupt the The app runs without the assembly just fine, at least the startup as I assume it doesn't need it. If it would run into code which needs it, it would fail at runtime. Note that when I built it from source, it worked without any modifications (as the file was present). As for the number of additional files in the app. I took your solution, changed all projects to target netcoreapp2.2 (since you're trying to use ASP.NET Core 2.2, it makes sense to target 2.2 for everything). And then I added this line to the <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup> Now when I publish the solution, I get only about 20 files in the output. Basically just the application plus 2 additional System.* assemblies. |
To facilitate the presentation of the problem, Version number is no problem, after all, it is automatically generated by the system. In addition, the 2.2.0 I mentioned above refers to the Nuget version package of ASPNET Core. It is not. NetApp version upgraded to 2.2. App version is still using 2.1. |
I'm sorry - I don't understand your comment about the version number not being a problem. It is by design that the run fails if As for ASPNET Core versioning - I'm honestly surprised you can even run ASP.NET 2.2 on .NET Core 2.1, but I'm no expert in ASP.NET deployment. To explain why you get so many files in the output:
|
i mean,when you down from http://mvc.taurus.cyqdata.com/WebPublish.rar |
Sorry I didn't understand your original concern. I see what you mean now. I don't think there's a way to simply redirect some assemblies into a different location. It can be done if the alternative location mimics NuGet cache folder structure. But a flat list is not possible right now (I think). Please note that if you change the version to 2.2.1 as you mention in your screenshot, it will NOT be OK. The assembly is simply ignored, but if it is actually needed at runtime, the runtime won't find it. |
I have to tell you, It' work on ASPNETCore 2.0.3 version。 I put all the dll to a new folder,so the runtime will use it. ------------------------- at this demo, i just put one dll for showing the problem. the only different is to use version 2.0.3 or verson 2.2.0. if you still have some question,maybe i have to make a ok demo on version 2.0.3 of the same way. |
Can you please just show me the Once the app is published via |
Yes - that will make it look for packages in those directories and as long as those directories have the right structure it will work. Regardless, if you plan to update to ASP.NET 2.2, I would highly recommend you update to NETCore 2.2 as well and use the shared frameworks as I mentioned above. |
I created dotnet/core-setup#5643 for the "not failing on invalid |
I created dotnet/core-setup#5645 for the "ignore relative path" problem. |
It seems this is now resolved. The uncovered problems were filed as separate issues. |
Steps to reproduce
I try to put the Microsoft..dll and System..dll togather to a new folder.
以便把(第三方或)系统的和应用的dll分开。
之前花了很长的一段时间研究之后:
I find xxx.deps.json can make it work.
之后我还特意写了篇文章介绍它:https://www.cnblogs.com/cyq1162/p/10542832.html
but today,when i update the Microsoft. Aspnetcore to 2.2.0 version.
it dose not work, and make me crazy.
because it always show me the msg like this:
F:\Code\OpenSource\Aries-GitHub\trunk\Aries.DevFramework\Web.UI_NetCore\bin\Rele ase\PublishOutput>dotnet Web.UI.dll Error: **An assembly specified in the application dependencies manifest (Web.UI.deps.js on) was not found**: package: 'Microsoft.AspNetCore.Authentication.Abstractions', version: '2.2.0 ' path: 'lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.d ll'
and the json like this:
我花了N长的时间在检测配置和确定路径的正确性,但结果,却依旧很悲催。
it take me much time to find out the question what it's.
when i try to maike it like this:
Microsoft.AspNetCore.Authentication.Abstractions
Microsoft.AspNetCore.Authentication.Abstractions/2.2.xxx
it work.
就是这样,只要版本号不是2.2.0,它就一切正常。
之后又几次测试,发现版本号是4.6.0也同样有问题。
and then i find the version on /4.6.0 ,it does not work also.
就是这样,版本号三位数,尾数是0的,就提示找不到dll。
how ugly this bug it's.
The text was updated successfully, but these errors were encountered: