-
-
Notifications
You must be signed in to change notification settings - Fork 26
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.UnauthorizedAccessException #154
Comments
Definitely looks like windows is complaining with the target directory. Does it actually exist (normally it should create it for you automatically...)? Do you get the same error when launching VS as admin just to see if it helps? |
Hi
Target directory exists, I created it manually, when it didn't exist a not found exception was throw, I suppose that creation fails for same rights reason but be ignored.
I'm tried lounching VS as administrator and I have same issue, both with or without existent folder.
If it ca be usefuss, in the same project I added after build call to swagger dotnet tool for generate a swagger yaml file, and it work successfully also in non administrative mode. This confirm that VS process have rights to write to solution folder.
Regards
F
…________________________________
Da: Paillat Laszlo ***@***.***>
Inviato: mercoledì 20 marzo 2024 23:59
A: Doraku/DefaultDocumentation ***@***.***>
Cc: MrWolfPST ***@***.***>; Author ***@***.***>
Oggetto: Re: [Doraku/DefaultDocumentation] System.UnauthorizedAccessException (Issue #154)
Definitely looks like windows is complaining with the target directory. Does it actually exist (normally it should create it for you automatically...)? Do you get the same error when launching VS as admin just to see if it helps?
—
Reply to this email directly, view it on GitHub<#154 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABEJ3P3AEF5IMEUHXWJOXB3YZIIE7AVCNFSM6AAAAABEURX5OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJQHA2DEOJWGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Pretty late reply but any reason you are calling the dotnet tool yourself instead of using the msbuild task package? wondering if you have the same issue with it. |
Hi |
It shouldn't but who knows with windows... I'll try to see if I can replicate your error when I'm back from the week end 🤔 for now I've only tested by:
|
ok I think I got it, you are using the wrong command line argument for |
I added this target to my proj file
When task is run throws an System.UnauthorizedAccessException.
I don't run VS as administrator, but obsully my windows user have full access to solution folder.
I use default configurations, no one defaultdocumentation.json is present in my project.
At time not all project members is documented.
output logs:
The text was updated successfully, but these errors were encountered: