-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
CoreRT feed and version update #1606
Conversation
…reRT compiler and old NuGet feed, only .NET5+ should use the new version
Thank you! Maybe the old compiler reference could just be removed in favor of latest? The old compiler and runtime is a snapshot from somewhere halfway between .NET Core 3.0 and 5.0 anyway. The NuGet feed is going to be retired at some point. |
I agree with Michal. The experimental project does not have packages synchronized with .NET release. We always point everybody to latest. |
I wanted to keep the old TFMs ( <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net5.0;netcoreapp2.1</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="6.0.0-*" />
</ItemGroup>
</Project> dotnet publish -r win-x64 -c Release -f netcoreapp2.1
But it turns out that it's just a warning and the .exe is produced anyway. So I am going to ignore the warning and use new compiler everywhere. |
Update: the .exe is produced, but not in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Conflicts: # tests/BenchmarkDotNet.IntegrationTests/CoreRtTests.cs # tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs
…d might help with CoreRT build errors
@MichalStrehovsky we have updated our CI to use .NET 5 SDK (previously we have been using 2.1) and with the latest CoreRT packages (from the new feed) our AzureDevops Ubuntu 16.04 CI leg fails with the following error:
Is it a known problem? How can I solve it? |
Sigh. Not known. Apparently dotnet/runtime#34633 introduced new dependencies that we need to compensate for. Could you please try if dropping <ItemGroup>
<LinkerArg Include="-lanl" />
</ItemGroup> into the project file that is invoking the compiler fixes it? We'll need to put that into the targets that the compiler carries with it. Apparently we don't test anything that uses networking in the CI. |
@MichalStrehovsky thanks a lot! |
@AndreyAkinshin CoreRT has moved from https://github.com/dotnet/corert/ to https://github.com/dotnet/runtimelab/tree/feature/NativeAOT and we need to update the default compiler version and nuget feed address to avoid issue like #1605
Fixes #1605
/cc @MichalStrehovsky @jkotas