I have created a visual studio template which worked fine. But as soon I try to add a new project to my solution by using this new template I get the following error:
"The imported project "c:\users\xy\AppData\Local\Temp\Common\Shared\XY.projitems" was not found. Confirm
that the expression in the import declaration "..\..\Common\Shared\XY.projitems" is correct and that the
file exists on disk."c:\users\xy\AppData\Local\Temp\qfuczw4e.apk\Temp\MyTemplate1.csproj"
Background info:
My solution contains a shared project which is referenced in my project template
The import statement in *.csproj of my project template looks like this:
<Import Project="..\..\Common\Shared\XY.projitems" Label="Shared" />
- The *.projitems file exists related to the above relative path.
- The file does NOT exist in the above mentioned path "c:\users\xy\AppData\Local\Temp\qfuczw4e.apk\Temp\"
The error message is very confusing to me. Anybody have a hint for me?
UPDATE
The project structure in which a new project will be created with the template is as follows:
Solution_XY
- SharedProject
- PluginsFolder
- Project_1
- Project_2
- Project_3
The projects created are located in a special project folder within the solution. So Project_1 to Project_3 need to have a reference to the SharedProject when created by the template.