Closed
Description
When I execute this code it raises FileLoadException
, the issue can be reproduced also in a Docker container.
#r "nuget: NuGet.Packaging, 6.7.0"
#r "nuget: NuGet.Protocol, 6.7.0"
using System.Threading;
using NuGet.Common;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;
using NuGet.Versioning;
Console.WriteLine("Start");
ILogger logger = NullLogger.Instance;
CancellationToken cancellationToken = CancellationToken.None;
SourceCacheContext cache = new();
And the Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:7.0
# https://www.nuget.org/packages/dotnet-script/
RUN dotnet tool install dotnet-script --tool-path /usr/bin
WORKDIR /app
COPY main.csx .
ENTRYPOINT [ "dotnet", "script", "main.csx" ]
For building the image docker build -t dotnet-script .
for run docker run --rm dotnet-script
Metadata
Metadata
Assignees
Labels
No labels