admin管理员组

文章数量:1350113

I'm creating a 8 application template following the official MS documentation with the later intention to create a VSIX extension to redistribute the template on my company. I have everything I need, and I know the steps. In fact, I've created a template for this project before, but since a few weeks ago I just can't. Visual Studio tells me that the output folder does not exists or is readonly.

I have no problem building the project, 0 errors, just 1 warning. If I build it, the output folder is bin\Debug\net8.0\ and everything is there.

First of all, the folder does exists and I'm the owner, so I have all the needed permissions. In fact, I can create and delete files and folders.

On my other laptop I have no problems with the same settings.

Setup:

  • Visual Studio Enterprise 2022 (17.13.5) Running as Administrator (the same happens when running as a normal user)
  • Windows 10 Pro 22H2

Anyone has an idea???

I'm creating a 8 application template following the official MS documentation with the later intention to create a VSIX extension to redistribute the template on my company. I have everything I need, and I know the steps. In fact, I've created a template for this project before, but since a few weeks ago I just can't. Visual Studio tells me that the output folder does not exists or is readonly.

I have no problem building the project, 0 errors, just 1 warning. If I build it, the output folder is bin\Debug\net8.0\ and everything is there.

First of all, the folder does exists and I'm the owner, so I have all the needed permissions. In fact, I can create and delete files and folders.

On my other laptop I have no problems with the same settings.

Setup:

  • Visual Studio Enterprise 2022 (17.13.5) Running as Administrator (the same happens when running as a normal user)
  • Windows 10 Pro 22H2

Anyone has an idea???

Share Improve this question edited Apr 2 at 12:21 tommat208 1511 silver badge11 bronze badges asked Apr 1 at 22:27 Angelo BernardiAngelo Bernardi 12110 bronze badges 2
  • Check Visual Studios output path settings by going to: Project Properties > Build Check the Output Path here. It might be a relative path that doesn't work and you might need to adjust it. Also check in your .csproj file what is set in <OutputPath>. Could you please provide those information? – AztecCodes Commented Apr 1 at 23:34
  • hi @AztecCodes, thanks for your reply, but I don'y have problems compiling/building it. I have problems exporting the project as a Template to include it on a VSIX. Answering your question, the ouput path is bin\ as in any other project. – Angelo Bernardi Commented Apr 2 at 11:44
Add a comment  | 

1 Answer 1

Reset to default 0

I think it's NOT a real answer, but a workaround. MS should work on this.

This article helped me. Basically, I had to delete the "My Exported Templates" folder and now Visual Studio created the Folder and the Template.

本文标签: visual studioReadonly Folder Issue Exporting a Project TemplateStack Overflow