Visual studio 2022 community will not export templates

Doug Hoffman 11 Reputation points
2022-06-10T19:12:24.493+00:00

When I try to export a project template I get the following error dialog box

I tried a couple different projects and it's a no go
The drive path seems kind of weird
It is looking for a runtimes folder under the main project folder?

I know this worked ok on VS 2019, but I upgraded to 2022 recently

210330-exporttemplate.png

Developer technologies | Visual Studio | Other
{count} vote

3 answers

Sort by: Most helpful
  1. William Bernal Sanchez 10 Reputation points
    2023-01-31T10:36:24.55+00:00

    You should create an empty folder in the same path, and with the same name as the message error shows.

    For the example, just create a folder like:

    c:\Users\hoffm\documents\Visual Studio 2022\Projects\File Scan\runtimes

    In this case, runtimes will be the empty folder.

    And try again.

    2 people found this answer helpful.

  2. Doug Hoffman 11 Reputation points
    2022-06-12T17:17:50.037+00:00

    No good
    I am not satisfied with 2022 community
    It should not be that difficult to do the simple things I did with previous versions
    It seems that are other problems also
    Things that were not installed and there was not the FIX THIS PROBLEM link in the code

    I am un-installing 2022 now and going back to 2019

    1 person found this answer helpful.
    0 comments No comments

  3. Hans Kesting 0 Reputation points
    2025-06-24T10:01:53.8766667+00:00

    Workaround that worked for me when I hit this same issue on the second export:

    • Copy that target folder (so you don't loose your previous templates)
    • Delete that folder, don't just empty it
    • Exporting your project now works!
    • Copy everything from the copy back to the correct place
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.