You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my situation, there are two network paths available:
\\server-dev\SHARE\Projects\app\start.csx
\\server-prod\SHARE\Projects\app\start.csx
But there's only one in the cache folder:
C:\Users\orange\AppData\Local\Temp\dotnet-script\UNC\Projects\app...
The start.csx script runs without mounting the disk.
The folders have different configurations, but the same cache is used during the call, which makes the script work incorrectly.
The path "\\server-dev" and "\\server-prod" is lost in the cache.
The text was updated successfully, but these errors were encountered:
Normally the drive letter would be part of the cache path, but for network paths we indeed normalize them UNC
As a workaround, you can set DOTNET_SCRIPT_CACHE_LOCATION environment variable to have a custom cache path. If that path is not rooted, it will be used as relative path from the perspective of the script, which would allow you to avoid collisions.
In my situation, there are two network paths available:
But there's only one in the cache folder:
C:\Users\orange\AppData\Local\Temp\dotnet-script\UNC\Projects\app...
The start.csx script runs without mounting the disk.
The folders have different configurations, but the same cache is used during the call, which makes the script work incorrectly.
The path "\\server-dev" and "\\server-prod" is lost in the cache.
The text was updated successfully, but these errors were encountered: