Skip to content
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

System.IO.IOException: Access to the path - nuget when creating a nulink #32

Open
MeaningOfLights opened this issue May 17, 2023 · 3 comments

Comments

@MeaningOfLights
Copy link

MeaningOfLights commented May 17, 2023

Hi Felix,

I'm hitting an Access Denied issue similar to #24 except it occurs when running in Admin!

I've given Everyone full control of the folder and it still fails.

Any suggestions?

image

@MeaningOfLights
Copy link
Author

MeaningOfLights commented May 17, 2023

I quickly checked the code as the stacktrace indicates the error occurred Moving a folder.

Then I decided to create the folder for the backup, I then ran the command and it worked:

image

image

@MeaningOfLights
Copy link
Author

I'll see if I can design something open source to add to this project. It'd be handly to specify a directory to recursively iterate through looking for csprojs and particular NuGet Refs and then doing the SymLinks. It would be great to create a small file of what directoies have been short-cut so the old/current SymLinks can be easily removed. There's also an issue where I noticed the pdb file isn't copied along with the proj DLL and you have to do that manually.

@MeaningOfLights
Copy link
Author

When you have an instance of Visual Studio open that is locking the NuGet package then this problem occurs. Simply close any instance that could cause a FileLock and retry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant