We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I execute this code it raises FileLoadException, the issue can be reproduced also in a Docker container.
FileLoadException
#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
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
docker build -t dotnet-script .
docker run --rm dotnet-script
The text was updated successfully, but these errors were encountered:
Try adding --isolated-load-context when executing the script 👍
--isolated-load-context
Sorry, something went wrong.
It works thanks. I attach an interesting article about the --isolated-load-context flag
No branches or pull requests
When I execute this code it raises
FileLoadException
, the issue can be reproduced also in a Docker container.And the
Dockerfile
For building the image
docker build -t dotnet-script .
for rundocker run --rm dotnet-script
The text was updated successfully, but these errors were encountered: