-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error creating optimised runtime package store #21551
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/runtime-infrastructure Issue DetailsDescriptionGetting error during execution of a command. All errors connected to "Error: Could not load file or assembly". dotnet store -m bad.xml -f netcoreapp3.1 -r linux-x64 manifest contains the next setup
Execution logs are here. Configuration
|
This appears to be an issue executing the The errors in attached log point to issues cross-gen'ing
I would expect cross-gen to unify to framework assemblies here. |
This looks like it's mostly the same as #10973. I was able to successfully run <Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<!--Bad packs-->
<PackageReference Include="NEST" Version="7.10.1" />
<PackageReference Include="NEST.JsonNetSerializer" Version="7.10.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.7">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<!--<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.7" />-->
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
</ItemGroup>
<Target Name="AddPackagesToPrune" AfterTargets="PrepforRestoreForComposeStore">
<ItemGroup>
<PackagesToPrune Include="Microsoft.CSharp" />
<PackagesToPrune Include="System.Collections" />
<PackagesToPrune Include="System.Collections.Concurrent" />
<PackagesToPrune Include="System.Collections.Nongeneric" />
<PackagesToPrune Include="System.Collections.Specialized" />
<PackagesToPrune Include="System.ComponentModel" />
<PackagesToPrune Include="System.ComponentModel.Primitives" />
<PackagesToPrune Include="System.ComponentModel.TypeConverter" />
<PackagesToPrune Include="System.Diagnostics.Debug" />
<PackagesToPrune Include="System.Dynamic.Runtime" />
<PackagesToPrune Include="System.Globalization" />
<PackagesToPrune Include="System.IO" />
<PackagesToPrune Include="System.Linq" />
<PackagesToPrune Include="System.Linq.Expressions" />
<PackagesToPrune Include="System.Net.Primitives" />
<PackagesToPrune Include="System.Net.NameResolution" />
<PackagesToPrune Include="System.ObjectModel" />
<PackagesToPrune Include="System.Reflection" />
<PackagesToPrune Include="System.Reflection.Extensions" />
<PackagesToPrune Include="System.Resources.ResourceManager" />
<PackagesToPrune Include="System.Runtime" />
<PackagesToPrune Include="System.Runtime.Extensions" />
<PackagesToPrune Include="System.Runtime.Numerics" />
<PackagesToPrune Include="System.Runtime.Serialization.Formatters" />
<PackagesToPrune Include="System.Runtime.Serialization.Json" />
<PackagesToPrune Include="System.Runtime.Serialization.Primitives" />
<PackagesToPrune Include="System.Security.Cryptography.Cng" />
<PackagesToPrune Include="System.Security.Cryptography.Primitives" />
<PackagesToPrune Include="System.Text.Encoding" />
<PackagesToPrune Include="System.Text.Encoding.Extensions" />
<PackagesToPrune Include="System.Text.RegularExpressions" />
<PackagesToPrune Include="System.Threading" />
<PackagesToPrune Include="System.Threading.Tasks" />
<PackagesToPrune Include="System.Xml.ReaderWriter" />
<PackagesToPrune Include="System.Xml.XDocument" />
<PackagesToPrune Include="runtime.win.system.net.primitives" />
</ItemGroup>
<PropertyGroup>
<PackagesToPrune>$(PackagesToPrune);@(PackagesToPrune)</PackagesToPrune>
</PropertyGroup>
</Target>
</Project> However, if I uncomment the package reference to
I'm not sure what's going on there. |
Old issue triage: please let us know if this is still an issue. |
Description
Getting error during execution of a command. All errors connected to "Error: Could not load file or assembly".
dotnet store -m bad.xml -f netcoreapp3.1 -r linux-x64
manifest contains the next setup
Execution logs are here.
logsDN.txt
Configuration
The text was updated successfully, but these errors were encountered: