Is there a way to not create a lock file when using RestoreCommand?
#13360
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is more relevant for what I'm trying to do and way less hackish - #13363
Initial question body
I have an application that installs a NuGet package once, executes something using that package and exits. This runs in a container, so having a lock file doesn't make much sense in my case. However, I do want
nuget.cachesince I need to take a look atexpectedPackageFiles, so I need to callCommitAsync(unless there is a way I can bypass this?).Taking a look here, it seems one simple solution would be to just set
res.LockFilePathtonullbefore callingCommitAsync, but it feels a bit hackish (but then again, so is what I'm trying to do). Is there a better way to achieve this than doing this?Beta Was this translation helpful? Give feedback.
All reactions